Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

/* Decoded by unphp.net */ <?php goto vN0mI; SX7mc: require "config.php"; goto SLznq..

Decoded Output download

/* Decoded by unphp.net */ 
 
<?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

/* Decoded by unphp.net */

<?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; ?>

Function Calls

None

Variables

None

Stats

MD5 c870573a0fd1d94de1c4f0f7341016e8
Eval Count 0
Decode Time 42 ms