Waraxe IT Security Portal
Login or Register
November 2, 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: 78
Members: 0
Total: 78
Full disclosure
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
SEC Consult SA-20241024-0 :: Unauthenticated Path Traversal Vulnerability in Lawo AG - vsm LTC Time Sync (vTimeSync) (CVE-2024-6049)
[RESEARCH] DTLS 'ClientHello' Race Conditions in WebRTCImplementations
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> decode this plezz?
Post new topicReply to topic View previous topic :: View next topic
decode this plezz?
PostPosted: Tue Feb 24, 2009 1:03 pm Reply with quote
Kingz
Beginner
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=='));

?>
View user's profile Send private message Send e-mail
PostPosted: Fri Jul 27, 2012 11:52 am Reply with quote
demon
Moderator
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.");
}
?>
View user's profile Send private message
decode this plezz?
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.045 Seconds