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 error_reporting(0); if($_SERVER['REQUEST_METHOD']=='POST'){ include "\153o\156\x65ks..
Decoded Output download
<?php error_reporting(0); if($_SERVER['REQUEST_METHOD']=='POST'){ include "koneksi.php"; include "anti.php"; $username = cegah($_POST['masuk']); $password = cegah($_POST['mlebu']); $sql = "SELECT * FROM siswa WHERE username='".$username."' and password ='".$password."'"; $r = mysqli_query($kon,$sql); $res = mysqli_fetch_array($r); $rt=mysqli_query($kon, "select * from kelas where nama_kelas='$res[kelas]'"); $f=mysqli_fetch_array($rt); $result = array(); if(sizeof($res)>0){ array_push($result,array( "password"=>$res['password'], "nama"=>$res['nama'], "kelas"=>$res['kelas'], "username"=>$res['username'], "nis"=>$res['nis'], "id_kelas"=>$f['id_kelas'], "id_siswa"=>$res['id_siswa'] ) ); echo json_encode(array("result"=>$result)); }else { array_push($result,array( "error"=>'error', ) ); echo json_encode(array("result"=>$result)); } mysqli_close($kon); }
?>
Did this file decode correctly?
Original Code
<?php error_reporting(0); if($_SERVER['REQUEST_METHOD']=='POST'){ include "\153o\156\x65ksi.\160\x68p"; include "\141n\164\x69.p\150\x70"; $username = cegah($_POST['masuk']); $password = cegah($_POST['mlebu']); $sql = "\x53\105\x4cEC\124 * F\x52\x4f\115 \163\x69swa W\110ER\105 u\x73\x65\x72na\155\145='".$username."' \x61nd \x70\141\163\163\167ord ='".$password."'"; $r = mysqli_query($kon,$sql); $res = mysqli_fetch_array($r); $rt=mysqli_query($kon, "\163\x65\154e\143\164 * \146rom \x6be\x6c\x61\163 wh\x65r\x65 n\141\x6d\x61_\x6b\145\x6c\x61s='$res[kelas]'"); $f=mysqli_fetch_array($rt); $result = array(); if(sizeof($res)>0){ array_push($result,array( "\160as\x73\167or\x64"=>$res['password'], "\156am\x61"=>$res['nama'], "\x6b\145la\x73"=>$res['kelas'], "u\163\145r\x6e\141\x6d\145"=>$res['username'], "\156is"=>$res['nis'], "\x69\144_\x6b\x65l\x61\x73"=>$f['id_kelas'], "\x69\144_s\151sw\x61"=>$res['id_siswa'] ) ); echo json_encode(array("\162\145sult"=>$result)); }else { array_push($result,array( "e\x72\162\157r"=>'error', ) ); echo json_encode(array("r\145\163ul\x74"=>$result)); } mysqli_close($kon); }
?>
Function Calls
error_reporting | 1 |
Stats
MD5 | 2ba4702ed454caf830be1732e6a0538f |
Eval Count | 0 |
Decode Time | 48 ms |