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); define("AcTi\166\x45k\157\124\x69\115\117", dirname(__FILE__)); ..
Decoded Output download
<?php error_reporting(0); define("AcTivEkoTiMO", dirname(__FILE__)); include "koneksi.php"; include "anti.php"; $kode=cegah($_POST['kirim']); $nama=$kode.'jawaban'; echo "
<style>
.paske1{
margin-top:-50px;
margin-right:30px;
}
.paske{
margin-top:-50px;
margin-right:160px;
}
</style>
<a href='butirexcel.php?kirim=$kode'>
<button type='button' class='btn btn-primary btn-sm float-right paske' id='sembunyi'>
<i class='fa fa-print'></i> Cetak Excel
</button>
</a>
<br>
</div>
<link rel='stylesheet' href='css/dataTables.bootstrap.min.css'>
<table id='bootstrap-data-table' class='table table-striped table-bordered'>
<thead>
<tr><th>No Soal</th><th>Mapel</th><th>Jumlah Benar</th><th>Jumlah Salah</th><th>Tidak Jawab</th><th>Indeks</th><th>Kategori</th></tr>
</thead>
<tbody>"; $sql97=mysqli_query($kon, "select * from soal where id_ulangan='$kode' order by no_soal ASC"); while($f=mysqli_fetch_array($sql97)){ $www=mysqli_query($kon, "select * from pelajaran where id_pelajaran='$f[id_mapel]'"); $aa=mysqli_fetch_array($www); $hitung2=mysqli_query($kon, "select count($nama.nilai) as jml from $nama WHERE id_mapel='$kode' and nilai='1' and tanya='$f[no_soal]'"); $c=mysqli_fetch_array($hitung2); $hitung3=mysqli_query($kon, "select count($nama.nilai) as jmlsalah from $nama WHERE id_mapel='$kode' and nilai='0' and tanya='$f[no_soal]'"); $d=mysqli_fetch_array($hitung3); $hitung4=mysqli_query($kon, "select count($nama.nilai) as jmlkosong from $nama WHERE id_mapel='$kode' and jawab='' and tanya='$f[no_soal]'"); $e=mysqli_fetch_array($hitung4); $penjawab=$c['jml'] + $d['jmlsalah']; $persen= @($c['jml'] / $penjawab); if($persen<=0.3049 and $persen>=0){ $ket='Tingkat kesulitan sukar'; }else if($persen<=0.7049 and $persen>=0.305){
$ket='Tingkat kesulitan sedang'; }else if($persen<=1 and $persen>=0.705){ $ket='Tingkat kesulitan mudah'; }else{ $ket=''; } echo "
<tr><td>$f[no_soal]</td><td>$aa[nama_pelajaran]</td><td>$c[jml]</td><td>$d[jmlsalah]</td><td>$e[jmlkosong]</td><td>$persen </td><td>$ket</td></tr>"; } echo "
</tbody>
</table>
<script src='js/datatables.min.js'></script>
<script src='js/dataTables.bootstrap.min.js'></script>
<script src='js/datatables-init.js'></script>
"; ?>
Did this file decode correctly?
Original Code
<?php error_reporting(0); define("AcTi\166\x45k\157\124\x69\115\117", dirname(__FILE__)); include "\x6bo\156e\153\163\151.\160hp"; include "a\x6et\151.ph\160"; $kode=cegah($_POST['kirim']); $nama=$kode.'jawaban'; echo "
<\x73\x74\x79l\145>
.\160a\x73k\145\061{
\x6d\141\162\x67\x69n-\x74\x6f\160:-50\x70\x78;
m\141\162g\x69\156-r\151g\x68\x74:30\160\x78;
}
.p\x61\x73\x6be{
\155a\162\147\151n-\164\x6f\160:-50px;
marg\151\x6e-\162\x69ght:160\160\x78;
}
</s\164yl\145>
<a \150\x72\145f='b\x75\164\151r\x65xc\145\x6c.ph\x70?\153\151\x72\151\x6d=$kode'>
<\142utto\156 \x74\x79\160\145='b\165\x74\164\157\x6e' \x63\154\x61ss='b\x74\x6e \142\x74\156-\160\162\151\155\141\x72\x79 \x62\164\x6e-\x73m \x66\x6c\x6f\141\164-\162ig\x68t \x70\x61\163\153\145' \x69\144='\x73\145mbu\x6e\171\x69'>
<\151 \x63\154\x61s\163='\146\x61 f\x61-\160r\151n\x74'></\x69> \103et\141k \105x\143\x65\154
</b\x75\x74ton>
</\141>
<\142\x72>
</\x64i\x76>
<\154\x69nk \162\x65\154='\x73\x74\x79le\163h\145\145t' \150\x72\145f='css/\x64\141\164\141\x54\141\142\154es.\142\x6f\157\164\x73\164rap.m\x69\156.css'>
<t\x61\x62\x6ce \x69\x64='\142\x6fot\x73\x74\x72\141\160-\x64\141ta-\164\x61\142\154\145' cl\x61\x73\163='\x74a\142l\x65 \164abl\145-\x73\164\162i\160ed \x74a\x62\154\x65-bo\x72d\x65r\145\x64'>
<t\150\x65\141\144>
<t\162><\x74\150>\116o \x53\157\141\154</\x74h><t\150>\115\141\160e\x6c</t\x68><th>\x4a\165m\x6c\141\x68 \x42e\x6e\141\x72</\164h><\x74\x68>J\x75\155l\x61h \123\x61\x6c\141\x68</t\x68><\x74\x68>\124i\x64\x61k J\x61\x77\141\142</\x74\x68><\x74\x68>\x49\x6e\144\x65\x6b\163</t\x68><t\x68>Ka\x74\145gor\x69</th></\x74\162>
</t\x68\x65\x61d>
<t\142o\x64y>"; $sql97=mysqli_query($kon, "s\145\x6c\x65c\x74 * f\x72\157\155 soa\154 \x77\x68e\x72\145 \151\144_\165\154\x61\x6e\x67\x61\x6e='$kode' \x6f\x72\144e\x72 \142y n\x6f_\163oal \101S\x43"); while($f=mysqli_fetch_array($sql97)){ $www=mysqli_query($kon, "\x73\145\154\x65\143t * fro\155 \160\x65\x6c\141\152ar\x61\156 \167\150\x65r\145 id_\x70\145l\141\x6aa\162\141\156='$f[id_mapel]'"); $aa=mysqli_fetch_array($www); $hitung2=mysqli_query($kon, "s\x65l\145\x63t \x63\x6f\165n\164($nama.n\x69\x6c\141\x69) \x61s j\x6d\x6c fro\155 $nama \127\110\105\x52E \151\x64_\155a\160\x65\154='$kode' \x61n\144 \x6e\x69\154\x61\x69='1' \x61n\x64 t\141\156y\x61='$f[no_soal]'"); $c=mysqli_fetch_array($hitung2); $hitung3=mysqli_query($kon, "\163\145\x6c\x65\143\164 \143\x6f\165n\164($nama.\156\151\154\x61\151) \x61s \152\155\x6c\163a\x6c\141h \x66\162o\155 $nama \127\x48E\122E \151\144_map\x65l='$kode' a\156d \156i\x6c\x61\x69='0' \x61\x6e\x64 t\x61\156y\141='$f[no_soal]'"); $d=mysqli_fetch_array($hitung3); $hitung4=mysqli_query($kon, "\x73\x65\x6ce\143t \143o\x75\x6e\164($nama.n\x69la\151) as \x6a\x6dlkos\x6f\x6e\147 f\162\x6f\x6d $nama W\110\105RE \151\x64_m\141p\145\154='$kode' \x61\x6ed \152a\x77a\142='' \141\156d \164\141\156ya='$f[no_soal]'"); $e=mysqli_fetch_array($hitung4); $penjawab=$c['jml'] + $d['jmlsalah']; $persen= @($c['jml'] / $penjawab); if($persen<=0.3049 and $persen>=0){ $ket='Tingkat kesulitan sukar'; }else if($persen<=0.7049 and $persen>=0.305){
$ket='Tingkat kesulitan sedang'; }else if($persen<=1 and $persen>=0.705){ $ket='Tingkat kesulitan mudah'; }else{ $ket=''; } echo "
<\164\x72><\164d>$f[no_soal]</\164d><t\x64>$aa[nama_pelajaran]</\x74\x64><t\x64>$c[jml]</t\x64><\164\x64>$d[jmlsalah]</\x74\144><\164d>$e[jmlkosong]</\164d><\164d>$persen </t\144><t\x64>$ket</\x74d></\164\162>"; } echo "
</\164\142\157d\x79>
</\164\141\142l\x65>
<\163\x63\x72i\x70\164 \163r\x63='\x6a\x73/\144\x61ta\164a\142\154\145\163.\x6d\x69\x6e.\152\x73'></\x73c\162ipt>
<s\143\162\151p\x74 s\162c='j\x73/d\141\x74\x61\x54\141\x62\x6c\145s.\x62\157\157\164\163t\162\141\160.\155i\156.js'></\163\x63\162\x69\160\164>
<\163\x63r\x69\x70\x74 \x73r\x63='j\163/\x64\x61\x74at\141\x62\154\x65\163-\151\156\151\164.j\163'></\x73\x63r\151pt>
"; ?>
Function Calls
define | 1 |
dirname | 1 |
error_reporting | 1 |
Stats
MD5 | 7631d61eaff5069e4e66e5bc73f627ae |
Eval Count | 0 |
Decode Time | 49 ms |