|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 68
Members: 0
Total: 68
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
decode this plezz? |
|
Posted: Tue Feb 24, 2009 1:03 pm |
|
|
Kingz |
Beginner |
|
|
Joined: Jan 20, 2009 |
Posts: 4 |
|
|
|
|
|
|
|
Code: | <?php
/*****
AnonShout 1.2
(C) 2008 NZ's Finest
www.nzsfinest.com
HOW TO USE -
1. Change the configuration options below if needed.
2. Upload "anonshout.php" to your server.
3. Chmod the directory you uploaded "anonshout.php" to, to 777.
Then include it on your website by using the code:
include("anonshout.php");
If you want to delete/edit shouts you can do so by editing the file set in the configuration below (by default, "shouts.txt").
NOTE -
You may not remove or change the default copyright.
*****/
// Configuration (you can change these)
$filename = "shouts.txt"; // The file to store shouts in
$date = "jS M, g:i A"; // Date format for shouts (see http://php.net/date)
$timemod = 0; // Time modifier, in hours, use this to adjust the time
$amount = 5; // Amount of shouts to show (0 = all)
$direction = 0; // Direction to show shouts in (0 = newest at top, 1 = oldest at top)
/*****
ATTENTION -
Do not edit below this line unless you know what you are doing.
*****/
// HTML
$shouthtml = <<<HTML
{date}
<br />
{message}
<p />
HTML;
$html = <<<HTML
{shouts}
<form method="post">
{errors}
<p />
Message: <input type="text" name="message" />
<p />
<input type="submit" name="submit" value="Shout" />
</form>
HTML;
// Code
if (!file_exists($filename))
{
// File does not exist, create it
$f = @fopen($filename, "w") or die("Cannot access $filename, please chmod the directory to 777.");
fclose($f);
}
if (isset($_POST['submit']))
{
// User has clicked the "Shout" button
// Make safe all posted data, also store other data
if (get_magic_quotes_gpc())
{
$postmessage = trim(stripslashes(htmlspecialchars($_POST['message'])));
}
else
{
$postmessage = trim(htmlspecialchars($_POST['message']));
}
$postdate = time();
if ($postmessage == "")
{
$error .= "<span style=\"color: #FF0000;\">Please enter a message.</span> <br />";
}
if (isset($error))
{
// An error has occurred
// Format "error" part of HTML
$html = str_replace("{errors}", $error . "<p />", $html);
}
else
{
// No errors :)
// Add the shout
$f = fopen($filename, "a");
fwrite($f, "[Date] $postdate\n[Msg] $postmessage\n");
fclose($f);
header("Location: " . $_SERVER['PHP_SELF']);
die();
}
}
// Below: Handle all "shout" formatting
$i = 0;
$f = file($filename);
foreach ($f as $val)
{
// Loop through every line in $filename
if (preg_match("/\[Date\] [^A-Za-z ][0-9].*/", $val))
{
// Date line
$shout[$i]['date'] = str_replace("[Date]", "", $val);
}
if (preg_match("/\[Msg\] .*/", $val))
{
// Message line
$shout[$i]['message'] = str_replace("[Msg]", "", $val);
$i++;
}
}
$i = 0;
if ($direction == 0)
{
// Have shouts going from the top-down
$shout = @array_reverse($shout);
}
if (isset($shout))
{
// If shouts exist
foreach ($shout as $val => $key)
{
// Limit shouts according to $amount
if ($i == $amount && $i != 0)
{
}
else
{
// Create shout HTML
$timeadd = (3600 * $timemod);
$moddate = date($date, $key['date'] + $timeadd); // Add time modifier to date
$temphtml = str_replace("{date}", $moddate, $shouthtml);
$temphtml = str_replace("{message}", $key['message'], $temphtml);
$allshouts .= $temphtml;
$i++;
}
}
}
// Below: Handle all formatting
// Required for operation
$_F=__FILE__;$_X='Pz48P3BocA0KDQokaHRtbCAuPSA8PDxIVE1MDQo8cCAvPg0KPHNwMW4gc3R5bDU9ImYybnQtczR6NTogNjBweDsiPlAydzVyNWQgYnkgPDEgaHI1Zj0iaHR0cDovL3d3dy5uenNmNG41c3QuYzJtIj5BbjJuU2gyM3Q8LzE+PC9zcDFuPg0KSFRNTDsNCiRjMnB5cjRnaHQgPSA2Ow0KDQo/Pg==';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));
// Format HTML to be output
$html = str_replace("{shouts}", $allshouts, $html);
$html = str_replace("{errors}", "", $html);
// Required for operation
$_F=__FILE__;$_X='Pz48P3BocA0KDQo0ZiAoJGMycHlyNGdodCA9PSA2KQ0Kew0KCTVjaDIgJGh0bWw7DQp9DQo1bHM1DQp7DQoJZDQ1KCJFcnIycjogSDUxZDVyIGMyZDUgNmEuIik7DQp9DQoNCj8+';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));
?>
|
|
|
|
|
|
|
|
|
|
Posted: Fri Jul 27, 2012 11:52 am |
|
|
demon |
Moderator |
|
|
Joined: Sep 22, 2010 |
Posts: 485 |
|
|
|
|
|
|
|
Code: | <?php
/*****
AnonShout 1.2
(C) 2008 NZ's Finest
www.nzsfinest.com
HOW TO USE -
1. Change the configuration options below if needed.
2. Upload "anonshout.php" to your server.
3. Chmod the directory you uploaded "anonshout.php" to, to 777.
Then include it on your website by using the code:
include("anonshout.php");
If you want to delete/edit shouts you can do so by editing the file set in the configuration below (by default, "shouts.txt").
NOTE -
You may not remove or change the default copyright.
*****/
// Configuration (you can change these)
$filename = "shouts.txt"; // The file to store shouts in
$date = "jS M, g:i A"; // Date format for shouts (see http://php.net/date)
$timemod = 0; // Time modifier, in hours, use this to adjust the time
$amount = 5; // Amount of shouts to show (0 = all)
$direction = 0; // Direction to show shouts in (0 = newest at top, 1 = oldest at top)
/*****
ATTENTION -
Do not edit below this line unless you know what you are doing.
*****/
// HTML
$shouthtml = <<<HTML
{date}
<br />
{message}
<p />
HTML;
$html = <<<HTML
{shouts}
<form method="post">
{errors}
<p />
Message: <input type="text" name="message" />
<p />
<input type="submit" name="submit" value="Shout" />
</form>
HTML;
// Code
if (!file_exists($filename))
{
// File does not exist, create it
$f = @fopen($filename, "w") or die("Cannot access $filename, please chmod the directory to 777.");
fclose($f);
}
if (isset($_POST['submit']))
{
// User has clicked the "Shout" button
// Make safe all posted data, also store other data
if (get_magic_quotes_gpc())
{
$postmessage = trim(stripslashes(htmlspecialchars($_POST['message'])));
}
else
{
$postmessage = trim(htmlspecialchars($_POST['message']));
}
$postdate = time();
if ($postmessage == "")
{
$error .= "<span style=\"color: #FF0000;\">Please enter a message.</span> <br />";
}
if (isset($error))
{
// An error has occurred
// Format "error" part of HTML
$html = str_replace("{errors}", $error . "<p />", $html);
}
else
{
// No errors :)
// Add the shout
$f = fopen($filename, "a");
fwrite($f, "[Date] $postdate\n[Msg] $postmessage\n");
fclose($f);
header("Location: " . $_SERVER['PHP_SELF']);
die();
}
}
// Below: Handle all "shout" formatting
$i = 0;
$f = file($filename);
foreach ($f as $val)
{
// Loop through every line in $filename
if (preg_match("/\[Date\] [^A-Za-z ][0-9].*/", $val))
{
// Date line
$shout[$i]['date'] = str_replace("[Date]", "", $val);
}
if (preg_match("/\[Msg\] .*/", $val))
{
// Message line
$shout[$i]['message'] = str_replace("[Msg]", "", $val);
$i++;
}
}
$i = 0;
if ($direction == 0)
{
// Have shouts going from the top-down
$shout = @array_reverse($shout);
}
if (isset($shout))
{
// If shouts exist
foreach ($shout as $val => $key)
{
// Limit shouts according to $amount
if ($i == $amount && $i != 0)
{
}
else
{
// Create shout HTML
$timeadd = (3600 * $timemod);
$moddate = date($date, $key['date'] + $timeadd); // Add time modifier to date
$temphtml = str_replace("{date}", $moddate, $shouthtml);
$temphtml = str_replace("{message}", $key['message'], $temphtml);
$allshouts .= $temphtml;
$i++;
}
}
}
// Below: Handle all formatting
// Required for operation
$html .= <<<HTML
<p />
<span style="font-size: 10px;">Powered by <a href="http://www.nzsfinest.com">AnonShout</a></span>
HTML;
$copyright = 1;
// Format HTML to be output
$html = str_replace("{shouts}", $allshouts, $html);
$html = str_replace("{errors}", "", $html);
// Required for operation
if ($copyright == 1)
{
echo $html;
}
else
{
die("Error: Header code 12.");
}
?> |
|
|
|
|
|
|
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
|
|
|
|
|
|