Waraxe IT Security Portal
Login or Register
January 14, 2026
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 121
Members: 0
Total: 121
Full disclosure
Defense in depth -- the Microsoft way (part 95): the (shared)"Start Menu" is dispensable
Re: Multiple Security Misconfigurations and CustomerEnumeration Exposure in Convercent Whistleblowing Platform(EQS Group)
RIOT OS 2026.01-devel-317 Stack-Based Buffer Overflow in RIOT ethos Serial Frame Parser
RIOT OS 2026.01-devel-317 Stack-Based Buffer Overflow in tapslip6 Utility via Unbounded Device Path Construction
TinyOS 2.1.2 Stack-Based Buffer Overflow in mcp2200gpio
TinyOS 2.1.2 printfUART Global Buffer Overflow via UnboundedFormat Expansion
KL-001-2026-01: yintibao Fun Print Mobile Unauthorized Access via Context Hijacking
Multiple Security Misconfigurations and Customer Enumeration Exposure in Convercent Whistleblowing Platform (EQS Group)
Panda3d v1.10.16 Uncontrolled Format String in Panda3D egg-mkfont Allows Stack Memory Disclosure
Panda3d v1.10.16 egg-mkfont Stack Buffer Overflow
Panda3d v1.10.16 deploy-stub Unbounded Stack Allocation Leading to Uninitialized Memory
MongoDB v8.3.0 Integer Underflow in LMDB mdb_load
Bioformats v8.3.0 Untrusted Deserialization of Bio-Formats Memoizer Cache Files
Bioformats v8.3.0 Improper Restriction of XML External Entity Reference in Bio-Formats Leica Microsystems XML Parser
MongoDB v8.3.0 Heap Buffer Underflow in OpenLDAP LMDB mdb_load
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> help decoding a file
Post new topicReply to topic View previous topic :: View next topic
help decoding a file
PostPosted: Tue Feb 03, 2009 5:37 pm Reply with quote
bern
Beginner
Beginner
Joined: Feb 03, 2009
Posts: 3




Hi there,

i need help decoding a php file, and would also like tips on how to un-encode further files like the one im posting here. any help would be appreciated.


http://rapidshare.com/files/193434194/index.php.html

Thanks,

Bern
View user's profile Send private message
PostPosted: Tue Feb 03, 2009 6:33 pm Reply with quote
zerobytes
Valuable expert
Valuable expert
Joined: Aug 30, 2008
Posts: 199




Code:


<?php
require('includes/auth.php');
include "includes/config.php";
include "includes/database.class.php";
$add_url = $_POST['add_url'];
$url = $_POST['url'];
$alias = $_POST['alias'];
$db = new database();
$alias = preg_replace('/\s+/', '_', $alias);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>HotLink Cloaker</title>
</head>

<body>
<center>

<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="40%" bgcolor="#3366CC">
<tr>
<td width="100%">
<p align="center"><font face="Tahoma" size="6" color="#FFFFFF">HOT LINK
CLOAKER</a></font></td>
</tr>
</table>
<p align="center">
<br>
<tr>
<td rowspan="2" valign="top" class="form_insert">
<form method="POST" action="index.php">
<font face="Tahoma" size="2"><b>Original URL:</b><input type="text" value="http://" name="url" size="60"><br />
<font face="Tahoma" size="2"><b>Hotlink Name:<input type="text" value="" name="alias" size="60"><br /><br /></b>
<input type="submit" name="add_url" value="Create This Hotlink" />
</form>
</td>
<td height="45"></td>
</tr>
<td><center><font face="Tahoma" size="1"><b>Tip - Right Click on the Link In The Frames or Redirect Column<br>And Choose Copy Shortcut or Copy Link Shortcut To Put The Link URL In Your ClipBoard</font></td>
</tr>
<tr>
<td colspan="2" valign="top">
<table align="center">
<div id="form_validation">
<?php
$url_path = 'http://' . $_SERVER['HTTP_HOST'] . '/go' ;
$url_recpath = 'http://' . $_SERVER['HTTP_HOST'] . '/recommends' ;
if ($add_url){
// Check to be sure the varibles are set.
if(empty($url)){
echo '<div style="color: #BA1400;background: #E4E5E6;">Original URL is empty you must enter a value.</div>';
exit;
}

if(empty($alias)){
echo '<div id="form_alias">Hotlink URL is empty you must enter a value.</div>';
}
// Check to make sure the alias does not already exist.
$q = "select aliasurl from hotlinks where aliasurl='$alias'";
$r = $db->get_a_line($q);
@extract($r);

if($aliasurl == $alias){
echo '<div id="form_aliasurl">That Hotlink Already Exists<br />Please Click the Back Button To Try Again</div>';
}
else
{
$set = "aliasurl = '$alias'," ;
$set .= "originalurl = '$url'";
$db->insert_data_id("insert into hotlinks set $set") ;

echo '<div id="form_inserted">New Hotlink Has Been <b>Added Successfully</b></div>';
}
}
?>
</div>
<?php
$query = 'SELECT * FROM hotlinks order by aliasurl';
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
?>

<?php
echo "<table border='2' width='800' id='table1' style='border-collapse: collapse' bordercolor='#000000'>";
echo "<td align='center'><font face=arial size=1><b>Hot Link Name</b></td>";
echo "<td align='center'><font face=arial size=1><b>Original URL</b></td>";
echo "<td align='center'><font face=arial size=1><b>Uses Frames</b></td>";
echo "<td align='center'><font face=arial size=1><b>Uses Redirect</b></td>";
echo "<td align='center'><font face=arial size=1><b></b></td>";
echo "<td align='center'><font face=arial size=1><b></b></td>";


while($row = mysql_fetch_array($result))
{
$originalurl=$row["originalurl"];
$aliasurl=$row["aliasurl"];
echo "<tr><td align='center'>";
echo "<font face=arial size=2>";
echo "<a href='$url_path/$aliasurl' target='_blank' style='text-decoration: none'><font face=arial size=1 color ='#000099'>$aliasurl</a></font></td>";
echo "<td align='center'><font face=arial size=1>$originalurl</b></td> " ;
echo "<td align='center'><a href='$url_path/$aliasurl' target='_blank' style='text-decoration: none'><font face=arial size=1 color ='#000099'>Go</a></font></td>";
echo "<td align='center'><a href='$url_recpath/$aliasurl' target='_blank' style='text-decoration: none'><font face=arial size=1 color ='#000099'>Recommends</a></font></td>";
echo "<td align='center'> ;;<a href='edit.php?LinkID=$aliasurl' style='text-decoration: none'><font face=arial size=1 color = green>Edit</a> ;;</font></td>";
echo "<td align='center'> ;;<a href='delete.php?LinkID=$aliasurl' style='text-decoration: none'><font face=arial size=1 color ='#FF0000'>Delete</a> ;;</font></td>";
}

echo "</table>";
echo "<font face=tahoma size=2><br><br><b><a href='index.php'>Return to Main Menu</a></b><br><br>";
echo "<font face=tahoma size=2><br><b><a href='logout.php'>Logout</a></b><br><br>";
echo "<font face=tahoma size=2><a href='javascript:window.print()'>Print Hardcopy</a><br><br>";
echo "<br><br>";

?>
</tr>
</table>
</td>
<td></td>
</tr>
<tr>
<td colspan="2" valign="top">Copyright &copy; <?php echo date( 'Y' ) ?> Hotlink Cloaker<br> All rights reserved.</td>
<td></td>
</tr>
</table>
</center>
<script src="http://www.hotlinkcloaker.com/admincpads/rotatingpeels.js" type="text/javascript"></script>
</body>
</html><?php
require('includes/auth.php');
include "includes/config.php";
include "includes/database.class.php";
$add_url = $_POST['add_url'];
$url = $_POST['url'];
$alias = $_POST['alias'];
$db = new database();
$alias = preg_replace('/\s+/', '_', $alias);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>HotLink Cloaker</title>
</head>

<body>
<center>

<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="40%" bgcolor="#3366CC">
<tr>
<td width="100%">
<p align="center"><font face="Tahoma" size="6" color="#FFFFFF">HOT LINK
CLOAKER</a></font></td>
</tr>
</table>
<p align="center">
<br>
<tr>
<td rowspan="2" valign="top" class="form_insert">
<form method="POST" action="index.php">
<font face="Tahoma" size="2"><b>Original URL:</b><input type="text" value="http://" name="url" size="60"><br />
<font face="Tahoma" size="2"><b>Hotlink Name:<input type="text" value="" name="alias" size="60"><br /><br /></b>
<input type="submit" name="add_url" value="Create This Hotlink" />
</form>
</td>
<td height="45"></td>
</tr>
<td><center><font face="Tahoma" size="1"><b>Tip - Right Click on the Link In The Frames or Redirect Column<br>And Choose Copy Shortcut or Copy Link Shortcut To Put The Link URL In Your ClipBoard</font></td>
</tr>
<tr>
<td colspan="2" valign="top">
<table align="center">
<div id="form_validation">
<?php
$url_path = 'http://' . $_SERVER['HTTP_HOST'] . '/go' ;
$url_recpath = 'http://' . $_SERVER['HTTP_HOST'] . '/recommends' ;
if ($add_url){
// Check to be sure the varibles are set.
if(empty($url)){
echo '<div style="color: #BA1400;background: #E4E5E6;">Original URL is empty you must enter a value.</div>';
exit;
}

if(empty($alias)){
echo '<div id="form_alias">Hotlink URL is empty you must enter a value.</div>';
}
// Check to make sure the alias does not already exist.
$q = "select aliasurl from hotlinks where aliasurl='$alias'";
$r = $db->get_a_line($q);
@extract($r);

if($aliasurl == $alias){
echo '<div id="form_aliasurl">That Hotlink Already Exists<br />Please Click the Back Button To Try Again</div>';
}
else
{
$set = "aliasurl = '$alias'," ;
$set .= "originalurl = '$url'";
$db->insert_data_id("insert into hotlinks set $set") ;

echo '<div id="form_inserted">New Hotlink Has Been <b>Added Successfully</b></div>';
}
}
?>
</div>
<?php
$query = 'SELECT * FROM hotlinks order by aliasurl';
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
?>

<?php
echo "<table border='2' width='800' id='table1' style='border-collapse: collapse' bordercolor='#000000'>";
echo "<td align='center'><font face=arial size=1><b>Hot Link Name</b></td>";
echo "<td align='center'><font face=arial size=1><b>Original URL</b></td>";
echo "<td align='center'><font face=arial size=1><b>Uses Frames</b></td>";
echo "<td align='center'><font face=arial size=1><b>Uses Redirect</b></td>";
echo "<td align='center'><font face=arial size=1><b></b></td>";
echo "<td align='center'><font face=arial size=1><b></b></td>";


while($row = mysql_fetch_array($result))
{
$originalurl=$row["originalurl"];
$aliasurl=$row["aliasurl"];
echo "<tr><td align='center'>";
echo "<font face=arial size=2>";
echo "<a href='$url_path/$aliasurl' target='_blank' style='text-decoration: none'><font face=arial size=1 color ='#000099'>$aliasurl</a></font></td>";
echo "<td align='center'><font face=arial size=1>$originalurl</b></td> " ;
echo "<td align='center'><a href='$url_path/$aliasurl' target='_blank' style='text-decoration: none'><font face=arial size=1 color ='#000099'>Go</a></font></td>";
echo "<td align='center'><a href='$url_recpath/$aliasurl' target='_blank' style='text-decoration: none'><font face=arial size=1 color ='#000099'>Recommends</a></font></td>";
echo "<td align='center'> ;;<a href='edit.php?LinkID=$aliasurl' style='text-decoration: none'><font face=arial size=1 color = green>Edit</a> ;;</font></td>";
echo "<td align='center'> ;;<a href='delete.php?LinkID=$aliasurl' style='text-decoration: none'><font face=arial size=1 color ='#FF0000'>Delete</a> ;;</font></td>";
}

echo "</table>";
echo "<font face=tahoma size=2><br><br><b><a href='index.php'>Return to Main Menu</a></b><br><br>";
echo "<font face=tahoma size=2><br><b><a href='logout.php'>Logout</a></b><br><br>";
echo "<font face=tahoma size=2><a href='javascript:window.print()'>Print Hardcopy</a><br><br>";
echo "<br><br>";

?>
</tr>
</table>
</td>
<td></td>
</tr>
<tr>
<td colspan="2" valign="top">Copyright &copy; <?php echo date( 'Y' ) ?> Hotlink Cloaker<br> All rights reserved.</td>
<td></td>
</tr>
</table>
</center>
<script src="http://www.hotlinkcloaker.com/admincpads/rotatingpeels.js" type="text/javascript"></script>
</body>
</html>


ZeroBytes
View user's profile Send private message Visit poster's website
PostPosted: Tue Feb 03, 2009 7:08 pm Reply with quote
bern
Beginner
Beginner
Joined: Feb 03, 2009
Posts: 3




thanks much! could you help me learn to decode files such as you just have? thanks
View user's profile Send private message
help decoding a file
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



PCWizardHub - Helping you fix, build, and optimize your PC life
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.041 Seconds