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 vN0mI; SX7mc: require "\x63\x6f\156\146\151\x67\x2e\160\x68\160"; goto SLznq;..

Decoded Output download

<?php 
 goto vN0mI; SX7mc: require "config.php"; goto SLznq; Gb_QI: if (isset($matches[1])) { $result["active"] = $matches[1]; } goto S0SIh; IMo6b: if (isset($matches[1])) { $result["download"] = $matches[1]; } goto kV7Fd; dm1TW: preg_match($pattern, $latestMessage, $matches); goto IMo6b; xn6sk: if (isset($matches[1])) { $result["expire_in"] = $matches[1]; } goto qaX0f; oSfQG: preg_match($pattern, $latestMessage, $matches); goto exfC5; oBJog: $pattern = "/: ([^
]+)/"; goto X68sk; JI1Mi: if (isset($matches[1])) { $result["total"] = $matches[1]; } goto C2Lwv; kPwLd: preg_match($pattern, $latestMessage, $matches); goto Qb9fB; A0Aud: $pattern = "/: ([^
]+)/"; goto oSfQG; V21iA: $pattern = "/Total: ([^
]+)/"; goto xVw7o; vN0mI: session_write_close(); goto gdDPM; aAUAS: preg_match($pattern, $latestMessage, $matches); goto qYHNV; rTsvI: if (isset($matches[1])) { $result["email"] = $matches[1]; } goto yxZON; QX2Pc: if ($uuid == null) { header("Content-Type: application/json"); echo json_encode(array("ok" => false, "result" => array("error" => "UUID not sent.")), 448); die; } goto lkhBr; yxZON: $pattern = "/: ([^
]+)/"; goto A7fgT; wyP9c: sleep(1); goto Q_IL9; Rat5H: if (isset($matches[1])) { $result["expire_in"] = $matches[1]; } goto TP2jU; lfdr9: require "config.php"; goto QX2Pc; qaX0f: if (count($result) >= 6) { header("Content-Type: application/json"); $MadelineProto->echo(json_encode(array("ok" => true, "result" => array("data" => (array) $result)), 448)); } else { header("Content-Type: application/json"); $MadelineProto->echo(json_encode(array("ok" => false, "result" => array("message" => (string) $latestMessage)), 448)); } goto ZClCB; HKXei: $uuid = $_GET["uuid"]; goto lfdr9; kV7Fd: $pattern = "/Download: ([^
]+)/"; goto aAUAS; is22I: preg_match($pattern, $latestMessage, $matches); goto Rat5H; qYHNV: if (isset($matches[1])) { $result["download"] = $matches[1]; } goto A0Aud; zWa59: preg_match($pattern, $latestMessage, $matches); goto rTsvI; wawXs: $directory = __DIR__; goto JmBk3; GPerk: $pattern = "/Refreshed On: ([^
]+)/"; goto DOqdO; eENDI: $matchedFolders = glob($directory . "/" . $pattern, GLOB_ONLYDIR); goto udZ11; JmBk3: $pattern = "session.madeline-*"; goto eENDI; DOqdO: preg_match($pattern, $latestMessage, $matches); goto waSeb; gdDPM: require_once "values.php"; goto D4Pzh; TP2jU: $pattern = "/Expire In: ([^
]+)/"; goto YqYag; C2Lwv: $pattern = "/  : ([^
]+)/"; goto is22I; jD0hH: $pattern = "/Email: ([^
]+)/"; goto zWa59; qhhtc: CheckTimeApi($randomFolder, 2); goto HKXei; s1wze: if (isset($matches[1])) { $result["email"] = $matches[1]; } goto jD0hH; Bey4H: function CheckTimeApi($section, $delay) { $time = time(); $time2 = $time + $delay; $req_time = sql_array("SELECT time FROM time WHERE section='{$section}'", "time"); $req_time_s = $req_time - $time; if ($req_time == $time2) { } else { if ($req_time > $time) { sleep($req_time_s); } } usleep(rand(1, 250)); } goto wawXs; S0SIh: $pattern = "/Active: ([^
]+)/"; goto o39VH; bKEss: $messages = $MadelineProto->messages->sendMessage(array("peer" => $bot, "message" => $message)); goto wyP9c; udZ11: $randomFolder = basename($matchedFolders[array_rand($matchedFolders)]); goto SX7mc; cShhM: $pattern = "/Upload: ([^
]+)/"; goto bPKl8; ZI_1H: if (isset($matches[1])) { $result["upload"] = $matches[1]; } goto lftaO; D4Pzh: function SetTimeApi($section, $delay, $db) { usleep(rand(1, 250)); $time = time(); $req_time = sql_array("SELECT time FROM time WHERE section='{$section}'", "time"); if ($req_time == null) { mysqli_query($db, "INSERT INTO time(section,time) values('" . mysqli_real_escape_string($db, $section) . "','0')"); $req_time = 0; } if ($req_time > $time) { $req_time = $req_time + $delay; mysqli_query($db, "UPDATE time SET time='{$req_time}' WHERE section='{$section}'"); } else { $time = time(); $req_time = $time + $delay; mysqli_query($db, "UPDATE time SET time='{$req_time}' WHERE section='{$section}'"); } } goto Bey4H; SLznq: $account = $_GET["account"]; goto r26rD; lftaO: $pattern = "/: ([^
]+)/"; goto dm1TW; lkhBr: require_once "madeline_config.php"; goto bKEss; Q0Ugi: if (isset($matches[1])) { $result["active"] = $matches[1]; } goto oBJog; waSeb: if (isset($matches[1])) { $result["refreshed_on"] = $matches[1]; } goto McDdn; Jacpz: if (isset($matches[1])) { $result["upload"] = $matches[1]; } goto cShhM; A7fgT: preg_match($pattern, $latestMessage, $matches); goto Jacpz; ubbwe: SetTimeApi($randomFolder, 2, $db); goto qhhtc; X68sk: preg_match($pattern, $latestMessage, $matches); goto s1wze; Q_IL9: $update = $MadelineProto->messages->getHistory(array("peer" => $bot, "limit" => 1)); goto LHN0r; bPKl8: preg_match($pattern, $latestMessage, $matches); goto ZI_1H; D024x: $result = array(); goto UCj0Q; r26rD: if (!is_null($account)) { $randomFolder = $account; } goto ubbwe; o39VH: preg_match($pattern, $latestMessage, $matches); goto Q0Ugi; UCj0Q: $pattern = "/  : ([^
]+)/"; goto kPwLd; Qb9fB: if (isset($matches[1])) { $result["refreshed_on"] = $matches[1]; } goto GPerk; McDdn: $pattern = "/: ([^
]+)/"; goto lRSVQ; lRSVQ: preg_match($pattern, $latestMessage, $matches); goto Gb_QI; LHN0r: $latestMessage = end($update["messages"])["message"]; goto D024x; exfC5: if (isset($matches[1])) { $result["total"] = $matches[1]; } goto V21iA; YqYag: preg_match($pattern, $latestMessage, $matches); goto xn6sk; xVw7o: preg_match($pattern, $latestMessage, $matches); goto JI1Mi; ZClCB: die; ?>

Did this file decode correctly?

Original Code

<?php
 goto vN0mI; SX7mc: require "\x63\x6f\156\146\151\x67\x2e\160\x68\160"; goto SLznq; Gb_QI: if (isset($matches[1])) { $result["\x61\143\x74\x69\166\145"] = $matches[1]; } goto S0SIh; IMo6b: if (isset($matches[1])) { $result["\x64\x6f\x77\x6e\x6c\x6f\x61\144"] = $matches[1]; } goto kV7Fd; dm1TW: preg_match($pattern, $latestMessage, $matches); goto IMo6b; xn6sk: if (isset($matches[1])) { $result["\x65\x78\160\x69\x72\x65\x5f\151\x6e"] = $matches[1]; } goto qaX0f; oSfQG: preg_match($pattern, $latestMessage, $matches); goto exfC5; oBJog: $pattern = "\x2f\xd8\247\xdb\214\331\x85\xdb\214\331\x84\x3a\40\50\x5b\136\x5c\156\x5d\x2b\51\57"; goto X68sk; JI1Mi: if (isset($matches[1])) { $result["\x74\157\x74\141\x6c"] = $matches[1]; } goto C2Lwv; kPwLd: preg_match($pattern, $latestMessage, $matches); goto Qb9fB; A0Aud: $pattern = "\x2f\xda\xa9\xd9\204\x3a\40\x28\x5b\136\134\156\135\53\51\x2f"; goto oSfQG; V21iA: $pattern = "\x2f\x54\157\x74\x61\x6c\x3a\40\x28\x5b\136\x5c\156\x5d\x2b\x29\57"; goto xVw7o; vN0mI: session_write_close(); goto gdDPM; aAUAS: preg_match($pattern, $latestMessage, $matches); goto qYHNV; rTsvI: if (isset($matches[1])) { $result["\x65\155\141\x69\x6c"] = $matches[1]; } goto yxZON; QX2Pc: if ($uuid == null) { header("\x43\157\156\x74\145\x6e\x74\x2d\124\x79\x70\x65\x3a\40\141\x70\160\x6c\x69\143\141\x74\151\157\x6e\57\152\x73\157\x6e"); echo json_encode(array("\157\153" => false, "\x72\x65\163\165\154\x74" => array("\x65\162\162\157\162" => "\125\125\x49\x44\x20\156\x6f\164\x20\163\145\x6e\164\56")), 448); die; } goto lkhBr; yxZON: $pattern = "\x2f\330\xa2\331\276\xd9\204\xd9\210\xd8\xaf\xe2\x86\221\x3a\40\50\133\136\x5c\x6e\135\x2b\x29\57"; goto A7fgT; wyP9c: sleep(1); goto Q_IL9; Rat5H: if (isset($matches[1])) { $result["\x65\170\160\x69\162\x65\137\151\156"] = $matches[1]; } goto TP2jU; lfdr9: require "\x63\x6f\x6e\146\151\x67\x2e\x70\150\160"; goto QX2Pc; qaX0f: if (count($result) >= 6) { header("\103\x6f\x6e\164\x65\x6e\x74\55\124\x79\160\145\72\40\x61\160\160\x6c\151\143\x61\164\151\x6f\x6e\57\152\x73\157\x6e"); $MadelineProto->echo(json_encode(array("\x6f\x6b" => true, "\x72\x65\163\165\154\164" => array("\x64\141\164\x61" => (array) $result)), 448)); } else { header("\x43\x6f\x6e\164\x65\156\164\55\x54\x79\160\145\72\40\x61\160\160\x6c\151\143\141\164\x69\157\x6e\57\152\x73\x6f\x6e"); $MadelineProto->echo(json_encode(array("\157\x6b" => false, "\162\145\163\165\154\164" => array("\x6d\145\163\x73\x61\147\145" => (string) $latestMessage)), 448)); } goto ZClCB; HKXei: $uuid = $_GET["\165\x75\x69\144"]; goto lfdr9; kV7Fd: $pattern = "\57\x44\157\x77\x6e\x6c\x6f\141\144\xe2\206\223\x3a\40\x28\133\x5e\134\156\135\x2b\x29\57"; goto aAUAS; is22I: preg_match($pattern, $latestMessage, $matches); goto Rat5H; qYHNV: if (isset($matches[1])) { $result["\144\x6f\x77\x6e\154\x6f\x61\144"] = $matches[1]; } goto A0Aud; zWa59: preg_match($pattern, $latestMessage, $matches); goto rTsvI; wawXs: $directory = __DIR__; goto JmBk3; GPerk: $pattern = "\57\122\x65\x66\162\x65\x73\x68\x65\144\x20\x4f\x6e\72\40\x28\133\x5e\x5c\156\135\53\x29\x2f"; goto DOqdO; eENDI: $matchedFolders = glob($directory . "\57" . $pattern, GLOB_ONLYDIR); goto udZ11; JmBk3: $pattern = "\163\x65\x73\x73\x69\157\156\56\155\141\x64\145\154\151\x6e\145\x2d\x2a"; goto eENDI; DOqdO: preg_match($pattern, $latestMessage, $matches); goto waSeb; gdDPM: require_once "\x76\141\x6c\165\x65\163\56\x70\x68\160"; goto D4Pzh; TP2jU: $pattern = "\x2f\105\x78\160\x69\162\145\40\111\156\72\40\50\x5b\136\134\x6e\135\x2b\51\57"; goto YqYag; C2Lwv: $pattern = "\57\xd8\250\330\247\331\202\333\x8c\xd9\205\xd8\247\xd9\206\xd8\257\331\x87\40\330\xa7\xd8\xb2\x20\xd8\xa7\xd9\x86\xd9\x82\330\xb6\330\247\72\40\x28\133\x5e\134\x6e\x5d\x2b\51\57"; goto is22I; jD0hH: $pattern = "\57\x45\x6d\141\151\154\72\x20\x28\133\x5e\x5c\x6e\135\x2b\51\57"; goto zWa59; qhhtc: CheckTimeApi($randomFolder, 2); goto HKXei; s1wze: if (isset($matches[1])) { $result["\145\x6d\x61\x69\x6c"] = $matches[1]; } goto jD0hH; Bey4H: function CheckTimeApi($section, $delay) { $time = time(); $time2 = $time + $delay; $req_time = sql_array("\123\105\x4c\105\x43\124\x20\164\151\155\145\x20\x46\x52\x4f\115\x20\x74\151\x6d\x65\x20\127\x48\105\122\105\40\163\145\x63\164\x69\x6f\156\75\47{$section}\x27", "\164\x69\155\x65"); $req_time_s = $req_time - $time; if ($req_time == $time2) { } else { if ($req_time > $time) { sleep($req_time_s); } } usleep(rand(1, 250)); } goto wawXs; S0SIh: $pattern = "\x2f\101\143\164\151\166\x65\x3a\40\x28\x5b\x5e\x5c\156\135\53\51\x2f"; goto o39VH; bKEss: $messages = $MadelineProto->messages->sendMessage(array("\160\x65\x65\x72" => $bot, "\x6d\x65\163\x73\141\147\x65" => $message)); goto wyP9c; udZ11: $randomFolder = basename($matchedFolders[array_rand($matchedFolders)]); goto SX7mc; cShhM: $pattern = "\x2f\125\160\x6c\157\141\144\342\x86\x91\72\x20\50\133\x5e\x5c\x6e\x5d\x2b\x29\57"; goto bPKl8; ZI_1H: if (isset($matches[1])) { $result["\x75\160\154\157\141\x64"] = $matches[1]; } goto lftaO; D4Pzh: function SetTimeApi($section, $delay, $db) { usleep(rand(1, 250)); $time = time(); $req_time = sql_array("\x53\105\114\x45\103\x54\40\164\151\x6d\145\x20\x46\x52\x4f\115\x20\x74\151\x6d\x65\x20\127\110\x45\x52\x45\x20\x73\145\x63\164\151\157\156\75\47{$section}\47", "\164\x69\155\145"); if ($req_time == null) { mysqli_query($db, "\x49\116\x53\x45\122\x54\x20\111\116\124\117\40\x74\151\155\145\x28\163\145\143\164\151\157\156\54\x74\151\155\x65\x29\40\x76\x61\x6c\165\145\163\50\x27" . mysqli_real_escape_string($db, $section) . "\x27\x2c\x27\60\x27\x29"); $req_time = 0; } if ($req_time > $time) { $req_time = $req_time + $delay; mysqli_query($db, "\x55\x50\104\101\x54\x45\x20\164\x69\x6d\x65\40\x53\105\x54\40\x74\151\x6d\x65\75\47{$req_time}\47\x20\x57\110\105\122\x45\x20\x73\145\143\x74\x69\x6f\156\75\47{$section}\47"); } else { $time = time(); $req_time = $time + $delay; mysqli_query($db, "\125\x50\x44\101\x54\105\40\x74\x69\155\x65\40\123\x45\x54\x20\x74\151\155\x65\x3d\47{$req_time}\x27\40\x57\x48\x45\x52\105\x20\x73\145\143\x74\x69\x6f\x6e\75\47{$section}\47"); } } goto Bey4H; SLznq: $account = $_GET["\x61\143\x63\x6f\165\156\x74"]; goto r26rD; lftaO: $pattern = "\x2f\330\257\xd8\247\xd9\206\xd9\x84\xd9\210\330\xaf\342\x86\x93\72\x20\x28\133\x5e\x5c\x6e\135\53\51\57"; goto dm1TW; lkhBr: require_once "\155\x61\144\x65\x6c\x69\156\145\x5f\x63\157\156\146\151\x67\x2e\160\150\x70"; goto bKEss; Q0Ugi: if (isset($matches[1])) { $result["\x61\x63\164\x69\166\145"] = $matches[1]; } goto oBJog; waSeb: if (isset($matches[1])) { $result["\162\x65\x66\162\x65\163\x68\x65\x64\137\x6f\156"] = $matches[1]; } goto McDdn; Jacpz: if (isset($matches[1])) { $result["\x75\x70\x6c\157\141\x64"] = $matches[1]; } goto cShhM; A7fgT: preg_match($pattern, $latestMessage, $matches); goto Jacpz; ubbwe: SetTimeApi($randomFolder, 2, $db); goto qhhtc; X68sk: preg_match($pattern, $latestMessage, $matches); goto s1wze; Q_IL9: $update = $MadelineProto->messages->getHistory(array("\160\x65\145\162" => $bot, "\154\151\155\x69\x74" => 1)); goto LHN0r; bPKl8: preg_match($pattern, $latestMessage, $matches); goto ZI_1H; D024x: $result = array(); goto UCj0Q; r26rD: if (!is_null($account)) { $randomFolder = $account; } goto ubbwe; o39VH: preg_match($pattern, $latestMessage, $matches); goto Q0Ugi; UCj0Q: $pattern = "\57\330\252\330\xa7\xd8\xb2\331\207\342\x80\214\330\263\330\247\xd8\xb2\xdb\214\x20\330\264\330\257\331\x87\x20\xd8\xaf\330\xb1\x3a\x20\x28\133\136\134\156\x5d\x2b\51\57"; goto kPwLd; Qb9fB: if (isset($matches[1])) { $result["\162\x65\146\162\x65\x73\x68\145\x64\137\157\x6e"] = $matches[1]; } goto GPerk; McDdn: $pattern = "\57\331\201\330\xb9\330\247\xd9\x84\72\40\50\133\x5e\x5c\156\x5d\53\51\57"; goto lRSVQ; lRSVQ: preg_match($pattern, $latestMessage, $matches); goto Gb_QI; LHN0r: $latestMessage = end($update["\155\x65\x73\163\x61\x67\x65\x73"])["\x6d\145\163\163\141\147\145"]; goto D024x; exfC5: if (isset($matches[1])) { $result["\x74\x6f\x74\x61\x6c"] = $matches[1]; } goto V21iA; YqYag: preg_match($pattern, $latestMessage, $matches); goto xn6sk; xVw7o: preg_match($pattern, $latestMessage, $matches); goto JI1Mi; ZClCB: die;

Function Calls

None

Variables

None

Stats

MD5 d9e782e91d4d9c07af255dcb19459719
Eval Count 0
Decode Time 35 ms