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 session_start(); if (empty($_SESSION['unik'])){ echo " <\x6c\151n..
Decoded Output download
<?php session_start(); if (empty($_SESSION['unik'])){ echo "
<link rel='stylesheet' href='css/normalize.css'>
<link rel='stylesheet' href='css/bootstrap.css'>
<link rel='stylesheet' href='css/font-awesome.min.css'>
<link rel='stylesheet' href='css/style.css'>
<div class='col-sm-12'>
<div class='alert alert-danger alert-dismissible fade show' role='alert'>
<span class='badge badge-pill badge-danger'>Gagal</span> Anda Tidak Bisa Akses Halaman Ini Tanpa Login!
<button type='button' class='close' data-dismiss='alert' aria-label='Close'>
<span aria-hidden='true'>×</span>
</button>
</div>
</div>
<div class='col-sm-12'>
<div class='card-footer'><a href='index.php'>
<button type='button' class='btn btn-primary btn-block'>
<i class='fa fa-dot-circle-o'></i> Login
</button></a>
"; }else{ include "koneksi.php"; include "anti.php"; include "ubahdata.php"; $nip=cegah($_POST['nip']); $nakses=cegah($_POST['akses']); $nama = mysqli_real_escape_string($kon, $_POST['nama']); $namamasuk = preg_replace('/[^a-zA-Z0-9]/', '', $_POST['nama']); $isi1 = substr($namamasuk,0,4); $len = 3; $chars3 = '123456789'; $string3 = ''; for ($i = 0; $i < $len; $i++) { $pos3 = rand(0, strlen($chars3)-1); $string3 .= $chars3[$pos3]; } $isi2=$string3; $username=$isi1.$isi2; $len = 6; $chars = 'ABCDEFGHKLMNRSTUVWXYZ'; $string = ''; for ($i = 0; $i < $len; $i++) { $pos = rand(0, strlen($chars)-1); $string .= $chars[$pos]; } $password2=$string; $password=sekolah($password2,'e'); $len1 = 32; $chars1 = 'ABCDEFGHKLMNRSTUVWXYZ'; $string1 = ''; for ($i = 0; $i < $len1; $i++) { $pos1 = rand(0, strlen($chars1)-1); $string1 .= $chars1[$pos1]; } $unik=$string1; $tg=mysqli_query($kon, "select nama_sekolah from sekolah where id_sekolah='1'");$el=mysqli_fetch_array($tg);$tgf=$el['nama_sekolah'];$kko=mysqli_query($kon, "select data from pdf");$kl=mysqli_fetch_array($kko);$has=$kl['data'];$flkssl=sekolah($tgf, 'e');if($flkssl != $has){echo "<script>;window.location='blokir.php'</script>";} if($nakses=='0'){ mysqli_query($kon, "INSERT INTO anggota(nama, nip,username,password,akses,unik, Jabatan) VALUES ('$nama','$nip' ,'$username',
'$password','$nakses','$unik','Guru')")or die (mysqli_error($kon)); }else if($nakses=='2'){ mysqli_query($kon, "INSERT INTO anggota(nama, nip,username,password,akses,unik, Jabatan) VALUES ('$nama','$nip' ,'$username',
'$password','$nakses','$unik','Kepala Sekolah')")or die (mysqli_error($kon)); }else{ mysqli_query($kon, "INSERT INTO anggota(nama, nip,username,password,akses,unik) VALUES ('$nama','$nip' ,'$username',
'$password','$nakses','$unik')")or die (mysqli_error($kon)); } echo "<script>;window.location='home.php?state=daftar'</script>"; } ?>
Did this file decode correctly?
Original Code
<?php session_start(); if (empty($_SESSION['unik'])){ echo "
<\x6c\151nk \162e\x6c='\163\164\x79\x6c\x65sh\145\x65\x74' \150\x72\145\x66='\143ss/\156\x6f\162\155ali\172\145.\x63s\163'>
<\154i\x6e\x6b r\x65l='\x73\164\x79l\x65s\150\145e\x74' \x68\162\145\146='\x63\163\x73/\x62o\157\x74\163\x74r\x61\x70.\x63\x73\x73'>
<\x6ci\156\x6b \x72e\154='\163\164\x79\154e\163\150\145\145\164' \x68\x72e\146='c\x73s/\146o\x6et-\x61we\163\157m\x65.m\151\x6e.\x63ss'>
<li\x6e\153 r\x65\x6c='st\x79les\150\x65\x65t' \150\x72\145f='\143\x73s/s\164y\154\x65.cs\x73'>
<\144\151\166 \x63\x6ca\163s='\x63ol-s\155-12'>
<di\166 c\x6ca\x73\x73='\141\x6c\x65\162\x74 \141\x6c\x65\x72t-\x64\x61\156\147\145\162 a\x6c\x65rt-\144\151\163mi\x73\x73\151\142\154\145 \x66\x61\x64\145 \x73\x68ow' r\157l\x65='\141\154e\x72t'>
<sp\141\156 \x63\154\x61\x73\163='\x62\x61\144g\x65 \x62\x61\144g\x65-p\x69l\x6c \x62\141\x64\147e-da\156\147e\x72'>\107\141g\141l</s\x70\x61\x6e> An\x64\141 Tid\141k \102\x69\163\141 \101k\x73es \110al\141\x6da\x6e \x49n\151 \124\141np\x61 L\x6f\147\x69\156!
<\142\165\x74\x74\157\156 \x74y\x70\x65='bu\x74\164on' \x63\154as\163='\x63l\157\163e' \x64\x61\164a-\x64\151sm\x69\x73\163='\x61l\x65\162t' aria-la\142\145\x6c='\103\x6c\x6f\163\x65'>
<\163\160\141n \x61r\151a-\x68i\x64de\x6e='tr\165e'>&ti\155e\x73;</\x73p\x61\x6e>
</\142utton>
</\x64\151\166>
</\144\151v>
<\144\x69v \x63\154\141\163\163='\x63o\x6c-\x73m-12'>
<\x64\x69\x76 c\x6ca\x73\x73='c\x61r\x64-\146\x6f\x6f\x74\x65r'><a \x68\162ef='\151\x6edex.\160\x68p'>
<\x62u\x74t\157\x6e \164y\160\x65='\x62\165t\164\157n' \x63\x6c\x61\x73\x73='b\x74\x6e \x62\164n-\x70\162i\x6da\x72\171 b\164\x6e-b\x6c\x6f\x63\153'>
<\151 c\x6c\141\x73s='fa \x66\x61-\x64o\164-\143\151r\143\x6c\145-o'></\x69> \x4c\x6f\x67\x69n
</\x62\165\164\x74o\x6e></\x61>
"; }else{ include "\x6b\157neksi.\x70\x68p"; include "\141\x6e\164i.\x70h\x70"; include "\165ba\150\x64\x61\x74a.\160h\160"; $nip=cegah($_POST['nip']); $nakses=cegah($_POST['akses']); $nama = mysqli_real_escape_string($kon, $_POST['nama']); $namamasuk = preg_replace('/[^a-zA-Z0-9]/', '', $_POST['nama']); $isi1 = substr($namamasuk,0,4); $len = 3; $chars3 = '123456789'; $string3 = ''; for ($i = 0; $i < $len; $i++) { $pos3 = rand(0, strlen($chars3)-1); $string3 .= $chars3[$pos3]; } $isi2=$string3; $username=$isi1.$isi2; $len = 6; $chars = 'ABCDEFGHKLMNRSTUVWXYZ'; $string = ''; for ($i = 0; $i < $len; $i++) { $pos = rand(0, strlen($chars)-1); $string .= $chars[$pos]; } $password2=$string; $password=sekolah($password2,'e'); $len1 = 32; $chars1 = 'ABCDEFGHKLMNRSTUVWXYZ'; $string1 = ''; for ($i = 0; $i < $len1; $i++) { $pos1 = rand(0, strlen($chars1)-1); $string1 .= $chars1[$pos1]; } $unik=$string1; $tg=mysqli_query($kon, "s\145\x6cect \x6ea\155a_\x73e\153\157l\141\150 f\162om \163\x65\x6bo\x6c\141h \167\150er\145 \x69\144_\x73\145\x6b\x6f\x6ca\x68='1'");$el=mysqli_fetch_array($tg);$tgf=$el['nama_sekolah'];$kko=mysqli_query($kon, "\x73\x65l\145\143t da\164\x61 \x66r\157\x6d \160d\x66");$kl=mysqli_fetch_array($kko);$has=$kl['data'];$flkssl=sekolah($tgf, 'e');if($flkssl != $has){echo "<\x73\x63\162\x69pt>;w\151\x6e\x64\157\x77.\x6c\x6fca\164i\x6f\156='\x62\154o\x6bir.\160\x68p'</s\143\162i\x70\x74>";} if($nakses=='0'){ mysqli_query($kon, "\x49\116\123\x45\x52\x54 \x49\x4e\x54\117 \141\156\x67g\157\164\141(n\141\155a, \x6e\x69\160,us\x65r\x6eam\x65,\x70\x61\163\163\167\x6f\162\x64,\141k\163\145s,\165\x6e\x69k, Jaba\x74\141n) V\x41\114\x55\x45\x53 ('$nama','$nip' ,'$username',
'$password','$nakses','$unik','\x47\165\x72u')")or die (mysqli_error($kon)); }else if($nakses=='2'){ mysqli_query($kon, "\111N\123\x45\122T \111\x4e\x54\x4f \x61\156\147\147\157ta(\x6e\141\x6d\x61, \156\151\160,u\163\x65r\156\141\155e,\160a\x73\x73\x77\x6f\162\144,\141\x6b\x73e\163,u\156\x69\x6b, Ja\x62\141t\141n) \126AL\125\105S ('$nama','$nip' ,'$username',
'$password','$nakses','$unik','K\x65pal\x61 \x53\x65\x6b\157l\x61\x68')")or die (mysqli_error($kon)); }else{ mysqli_query($kon, "\111N\x53\105\x52\124 \x49\x4e\x54O ang\147\157ta(\156a\155\141, \156i\x70,\x75\x73\x65rn\141m\x65,p\x61\163\163\x77\x6fr\x64,a\x6bs\145s,u\156ik) \126\101\114U\105S ('$nama','$nip' ,'$username',
'$password','$nakses','$unik')")or die (mysqli_error($kon)); } echo "<sc\162i\160\x74>;w\151\156\x64\x6f\167.\x6c\x6f\x63\x61\164i\157\x6e='\x68\x6f\x6de.php?\163\164ate=\x64\141f\164\x61r'</\163cr\x69\160t>"; } ?>
Function Calls
session_start | 1 |
Stats
MD5 | 58e6d31000ed005652448efeeb91f641 |
Eval Count | 0 |
Decode Time | 44 ms |