Waraxe IT Security Portal
Login or Register
November 5, 2024
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: 62
Members: 0
Total: 62
Full disclosure
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
APPLE-SA-10-28-2024-3 macOS Sequoia 15.1
APPLE-SA-10-28-2024-2 iOS 17.7.1 and iPadOS 17.7.1
APPLE-SA-10-28-2024-1 iOS 18.1 and iPadOS 18.1
Open Redirect / Reflected XSS - booked-schedulerv2.8.5
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



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
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.036 Seconds