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 oxQL0; HKWAC: header("\103\x6f\156\164\x65\x6e\x74\x2d\x54\x79\160\x65\72\x20..
Decoded Output download
<?php
goto oxQL0; HKWAC: header("Content-Type: text/event-stream"); goto zpJYz; oxQL0: include "admin/db/db_conn.php"; goto cFTef; yGRcC: if (!isset($_COOKIE["mac"])) { die; } goto KrSly; zpJYz: header("Cache-Control: no-cache"); goto yGRcC; cFTef: include "admin/lib/routeros_api.class.php"; goto HKWAC; KrSly: while (true) { $voucher = $_COOKIE["voucher"]; $mac = $_COOKIE["mac"]; $ip = $_COOKIE["ip"]; $status = "Disconnected"; $tbl_user = mysqli_query($conn, "SELECT * FROM `tbl_user` WHERE `user`='{$voucher}'")->fetch_assoc(); $reload = $tbl_user["reload"]; if ($reload == "1") { mysqli_query($conn, "UPDATE `tbl_user` SET `reload`='0' WHERE `user`='{$voucher}'"); } echo "event: user\xa"; echo "data: {$voucher}
\xa"; echo "event: chat\xa"; echo "data: " . $tbl_user["chat"] . "\xa\xa"; echo "event: reload\xa"; echo "data: {$reload}
\xa"; ob_end_flush(); flush(); if (connection_aborted()) { break; } sleep(1); } ?>
Did this file decode correctly?
Original Code
<?php
goto oxQL0; HKWAC: header("\103\x6f\156\164\x65\x6e\x74\x2d\x54\x79\160\x65\72\x20\x74\145\x78\164\x2f\x65\166\145\x6e\164\x2d\163\164\x72\x65\141\155"); goto zpJYz; oxQL0: include "\x61\x64\x6d\151\156\57\144\x62\57\x64\142\137\143\157\156\156\56\x70\150\x70"; goto cFTef; yGRcC: if (!isset($_COOKIE["\155\141\143"])) { die; } goto KrSly; zpJYz: header("\x43\141\x63\x68\x65\55\103\x6f\156\x74\x72\157\x6c\x3a\40\x6e\x6f\x2d\143\x61\143\x68\145"); goto yGRcC; cFTef: include "\x61\x64\155\151\156\57\x6c\151\142\x2f\162\157\165\164\x65\162\x6f\163\x5f\x61\x70\x69\56\143\154\141\x73\163\x2e\x70\x68\160"; goto HKWAC; KrSly: while (true) { $voucher = $_COOKIE["\x76\157\165\143\x68\x65\162"]; $mac = $_COOKIE["\x6d\141\x63"]; $ip = $_COOKIE["\x69\x70"]; $status = "\104\x69\163\143\157\x6e\156\x65\143\164\x65\x64"; $tbl_user = mysqli_query($conn, "\x53\105\114\105\103\x54\x20\x2a\40\x46\x52\x4f\x4d\x20\140\164\142\x6c\x5f\165\163\145\162\140\40\127\110\105\122\105\40\140\165\x73\x65\x72\x60\75\47{$voucher}\47")->fetch_assoc(); $reload = $tbl_user["\162\145\154\157\x61\x64"]; if ($reload == "\61") { mysqli_query($conn, "\x55\x50\x44\x41\124\x45\40\x60\164\142\154\x5f\165\163\x65\x72\140\40\123\105\x54\40\x60\x72\145\x6c\157\x61\x64\140\x3d\47\x30\x27\x20\127\110\105\x52\105\x20\x60\165\163\145\x72\x60\75\x27{$voucher}\x27"); } echo "\145\166\x65\156\164\72\40\165\x73\145\x72\xa"; echo "\x64\141\164\141\72\40{$voucher}\12\xa"; echo "\x65\166\145\x6e\164\x3a\40\143\150\141\x74\xa"; echo "\144\141\x74\x61\x3a\x20" . $tbl_user["\x63\150\141\x74"] . "\xa\xa"; echo "\145\x76\x65\156\164\x3a\x20\x72\145\x6c\x6f\x61\144\xa"; echo "\x64\141\x74\x61\x3a\40{$reload}\12\xa"; ob_end_flush(); flush(); if (connection_aborted()) { break; } sleep(1); }
Function Calls
None |
Stats
MD5 | 14ab03d41295826f4af27820bd5f36a5 |
Eval Count | 0 |
Decode Time | 62 ms |