Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /**/eval(base64_decode('SWYgKCRhY3Rpb249PSJteXNxbCIpew0KLy9HcmFiIGVtYWlsIGFkZHJlc3Nl..
Decoded Output download
If ($action=="mysql"){
//Grab email addresses from MySQL
include "./mysql.info.php";
if (!$sqlhost || !$sqllogin || !$sqlpass || !$sqldb || !$sqlquery){
print "Please configure mysql.info.php with your MySQL information. All settings in this config file are required.";
exit;
}
$db = mysql_connect($sqlhost, $sqllogin, $sqlpass) or die("Connection to MySQL Failed.");
mysql_select_db($sqldb, $db) or die("Could not select database $sqldb");
$result = mysql_query($sqlquery) or die("Query Failed: $sqlquery");
$numrows = mysql_num_rows($result);
for($x=0; $x<$numrows; $x++){
$result_row = mysql_fetch_row($result);
$oneemail = $result_row[0];
$emaillist .= $oneemail."
";
}
}
if ($action=="send"){ $message = urlencode($message);
$message = ereg_replace("%5C%22", "%22", $message);
$message = urldecode($message);
$message = stripslashes($message);
$subject = stripslashes($subject);
}
Did this file decode correctly?
Original Code
<?php /**/eval(base64_decode('SWYgKCRhY3Rpb249PSJteXNxbCIpew0KLy9HcmFiIGVtYWlsIGFkZHJlc3NlcyBmcm9tIE15U1FMDQppbmNsdWRlICIuL215c3FsLmluZm8ucGhwIjsNCg0KICBpZiAoISRzcWxob3N0IHx8ICEkc3FsbG9naW4gfHwgISRzcWxwYXNzIHx8ICEkc3FsZGIgfHwgISRzcWxxdWVyeSl7DQogICAgcHJpbnQgIlBsZWFzZSBjb25maWd1cmUgbXlzcWwuaW5mby5waHAgd2l0aCB5b3VyIE15U1FMIGluZm9ybWF0aW9uLiBBbGwgc2V0dGluZ3MgaW4gdGhpcyBjb25maWcgZmlsZSBhcmUgcmVxdWlyZWQuIjsNCiAgICBleGl0Ow0KICB9DQoNCiAgJGRiID0gbXlzcWxfY29ubmVjdCgkc3FsaG9zdCwgJHNxbGxvZ2luLCAkc3FscGFzcykgb3IgZGllKCJDb25uZW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