|
|
|
|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 76
Members: 0
Total: 76
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
help decoding a file |
|
Posted: Tue Feb 03, 2009 5:37 pm |
|
|
bern |
Beginner |
|
|
Joined: Feb 03, 2009 |
Posts: 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Tue Feb 03, 2009 6:33 pm |
|
|
zerobytes |
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 © <?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 © <?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 |
|
|
|
|
|
|
|
|
Posted: Tue Feb 03, 2009 7:08 pm |
|
|
bern |
Beginner |
|
|
Joined: Feb 03, 2009 |
Posts: 3 |
|
|
|
|
|
|
|
thanks much! could you help me learn to decode files such as you just have? thanks |
|
|
|
|
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
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|
|