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 eval(base64_decode('CiBnb3RvIHZXc1Z5OyBaSGVwTDogaWYgKCRwdyA9PSAnJykgeyAkcHcgPSBpc3Nl..
Decoded Output download
goto vWsVy; ZHepL: if ($pw == '') { $pw = isset($_POST["passwd"]) ? $_POST["passwd"] : ''; } goto OJhRq; F_P7x: include_once "req__sqlconn.php"; goto zZpuq; pgfjx: $hpdo = $curdb->prepare("SELECT * FROM [RohanUser].[dbo].[TUserControl] WHERE login_id = ?"); goto ugEWG; z1IRF: $curusergrade = 0; goto MzvlP; vWsVy: include_once "req__uninjection.php"; goto F_P7x; FuIS7: if (userisban($curdb, $id, $ip) != "100") { die("-5"); } goto pgfjx; Cy0f0: $recMT = $hpdoMT->fetch(PDO::FETCH_ASSOC); goto duQGH; zZpuq: $id = isset($_GET["id"]) ? $_GET["id"] : ''; goto MOmku; mK971: if ($curuser == $id && $reset_pw == "isneed") { die("-22"); } goto QXB_f; ldlJD: $hpdo->execute(); goto Kxqlf; XqrB8: if ($id == '') { die(-99); } goto FuIS7; pVLQc: $hpdoMT = $curdb->prepare("SELECT * FROM [RohanUser].[dbo].[TDownFlag]"); goto WFX8u; ugEWG: $hpdo->bindValue(1, $id, PDO::PARAM_STR); goto ldlJD; WFX8u: $hpdoMT->execute(); goto Cy0f0; MOmku: $pw = isset($_GET["passwd"]) ? $_GET["passwd"] : ''; goto I6d2k; I6d2k: if ($id == '') { $id = isset($_POST["id"]) ? $_POST["id"] : ''; } goto ZHepL; Qh0zS: HttpResponse::send(); goto rxVSh; duQGH: $hpdoGrade = $curdb->prepare("SELECT grade FROM [RohanUser].[dbo].[TUser] where login_id = ?"); goto IWv0Z; Kxqlf: $rec = $hpdo->fetch(PDO::FETCH_ASSOC); goto wvfTH; L2QQ9: if ($curuser == $id && $cbt == 1) { die("-11"); } goto mK971; MzvlP: if ($rec) { $curuser = $rec["login_id"]; $banned = $rec["banned"]; $bannedip = $rec["banned_ip_addres"]; $cbt = $rec["cbt"]; $reset_pw = $rec["reset_pw"]; } goto pVLQc; igzl7: $usrcheck = userisavailable($curdb, $id, $pass, SERVER_ID); goto LGhPu; MwsqU: $hpdoGrade->execute(); goto bGUgM; wvfTH: $curuser = ''; goto z1IRF; PkYBn: if ($curuser == $id && $bannedip == $ip) { die("-4"); } goto L2QQ9; LGhPu: if ($usrcheck == "-202") { $hpdo = $curdb->prepare("EXEC RohanUser.dbo.[ROHAN3_SendCode] :p1,:p2,:p3,:p4"); $hpdo->bindParam(":p1", $id, PDO::PARAM_STR); $hpdo->bindParam(":p2", $pass, PDO::PARAM_STR); $hpdo->bindParam(":p3", $ip, PDO::PARAM_STR); $hpdo->bindParam(":p4", $ret, PDO::PARAM_INT | PDO::PARAM_INPUT_OUTPUT, 4); $hpdo->execute(); $hpdo->fetchAll(); $hpdo->closeCursor(); if ($ret == "-202") { $ret = "needpin"; } } else { $ret = $usrcheck; } goto j9OaS; bGUgM: $recGrade = $hpdoGrade->fetch(PDO::FETCH_ASSOC); goto DiPtJ; OJhRq: $ip = $_SERVER["REMOTE_ADDR"]; goto XqrB8; oIGMo: if ($curuser == $id && $banned == "True") { die("-5"); } goto PkYBn; j9OaS: HttpResponse::setData($ret); goto Qh0zS; IWv0Z: $hpdoGrade->bindValue(1, $id, PDO::PARAM_STR); goto MwsqU; DiPtJ: if ($curuser == $id && $recGrade["grade"] == 0 && $recMT["Mainatance"] == 1) { die("-31"); } goto oIGMo; QXB_f: $pass = md5($pw); goto igzl7; rxVSh:
Did this file decode correctly?
Original Code
<?php eval(base64_decode('CiBnb3RvIHZXc1Z5OyBaSGVwTDogaWYgKCRwdyA9PSAnJykgeyAkcHcgPSBpc3NldCgkX1BPU1RbIlwxNjBcMTQxXDE2M1wxNjNceDc3XHg2NCJdKSA/ICRfUE9TVFsiXDE2MFwxNDFceDczXDE2M1x4NzdcMTQ0Il0gOiAnJzsgfSBnb3RvIE9KaFJxOyBGX1A3eDogaW5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