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(); error_reporting(0); if (empty($_SESSION['unik'])){ echo " ..

Decoded Output download

<?php session_start(); error_reporting(0); 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'>&times;</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"; date_default_timezone_set('Asia/Jakarta'); $bulan=date("Y-m-d"); $judul=cegah($_POST['judul']); $idjadwal=cegah($_POST['id_jadwal']); $video=cegah($_POST['video']); $jenis=cegah($_POST['jenis']); $datanya = mysqli_real_escape_string($kon, $_POST['materi']); $m=mysqli_query($kon, "select * from jadwal where id_jadwal='$idjadwal' "); $b=mysqli_fetch_array($m); $pelaj = mysqli_real_escape_string($kon, $b['pelajaran']); mysqli_query($kon, "INSERT INTO ruangbelajar (id_jadwal,judul,materi,hari, mulai, selesai, id_guru, id_mapel, id_kelas, pelajaran, nama_kelas,tanggal,link,jenis) VALUES  
('$idjadwal', '$judul','$datanya', '$b[hari]','$b[mulai]', '$b[selesai]', '$b[id_guru]','$b[id_mapel]', '$b[id_kelas]','$pelaj','$b[nama_kelas]', '$bulan','$video','$jenis' )") or die (mysqli_error($kon)); $jam_menit=date("H:i"); $arr = explode(":", $jam_menit); $waktunya=$arr[0] * 60 + $arr[1]; $waktu=$b['mulai']; $namakelasnya=$b['nama_kelas']; $tgljam=date("Y-m-d H:i:s"); $carimateri=mysqli_query($kon, "select id_ruangbelajar from ruangbelajar where nama_kelas='$namakelasnya' and tanggal='$bulan' and id_guru='$b[id_guru]' and id_mapel='$b[id_mapel]' "); $zzr=mysqli_fetch_array($carimateri); $nnn=$zzr['id_ruangbelajar']; $gthk=mysqli_query($kon, "select kelas from siswa where kelas='$namakelasnya' "); $d=mysqli_fetch_array($gthk); $kelase=$d['kelas']; $carisystem=mysqli_query($kon, "select jenis from temp_pjj where nama_kelas='$kelase'"); $t=mysqli_fetch_array($carisystem); if($t['jenis']=='PTM'){  
$tyi=mysqli_query($kon, "select id_siswa from siswa where kelas='$namakelasnya' "); while($v=mysqli_fetch_array($tyi)){ $saya=($v['id_siswa']); mysqli_query($kon, "INSERT INTO tempatabsen(id_anggota,tanggal_jam,tanggal,jam,bayangan,id_materi,sebagai) VALUES ('$saya','$tgljam', '$bulan' , '$waktu', '$waktu','$nnn','siswa')") or die (mysqli_error($kon)); } }else{} echo "<script>;window.location='home.php?state=ruangbelajar'</script>"; } ?>

Did this file decode correctly?

Original Code

<?php session_start(); error_reporting(0); if (empty($_SESSION['unik'])){ echo "
            
    <l\151n\x6b \x72\x65\x6c='\x73ty\x6c\x65\x73\150eet' h\x72\x65f='\x63s\163/\x6e\x6fr\x6da\x6c\x69z\145.c\x73\163'>
    <l\x69nk \162\145\154='sty\x6c\x65\x73he\x65\x74' \150\x72\x65f='\143s\163/\142\x6fo\x74\163\164r\141\160.\x63s\x73'>
    <\x6c\151n\153 r\145l='stylesh\145\x65\164' \150ref='\x63s\163/f\157\156t-\141\167\145s\157\155e.\155\x69\x6e.\x63\x73s'>
    <\x6c\x69\156\153 \162e\x6c='s\x74\171\154e\163\150\x65\x65\x74' \x68\x72\x65\x66='c\x73s/\163\164\x79\x6c\x65.c\x73s'> 
            
            
                <\x64i\166 \143\x6c\141\x73\163='co\x6c-s\155-12'>
                <\x64iv \143\154a\163\163='\x61\154\145\x72\164  \141\x6cert-d\141\x6e\x67e\162 \x61l\x65\x72t-\x64\x69\163\x6d\x69ss\x69\x62le f\x61\144e s\150\x6fw' ro\154\x65='\141\154\x65\162t'>
                  <s\160\141n \143l\141\x73s='\142\x61\x64\x67e \142\x61\x64\x67\x65-p\151\x6c\154 \x62\141\144g\145-\144a\x6eg\145r'>Ga\147al</\163\x70\141n> \101\x6e\x64a \124\151\144\x61k \x42\x69\163\x61 \x41\153\x73e\163 \110a\x6cam\x61\156 \x49n\x69 \124\x61\x6ep\x61 \114o\147\151n!
                    <\142\x75t\x74o\x6e \x74yp\145='\x62u\164\x74\x6fn' cl\x61\x73\x73='\143\x6c\157\163\x65' \x64\141\x74\x61-d\151\x73m\151\163\x73='\141\x6c\x65\162t' \x61ri\x61-\154\x61b\145\x6c='\x43\x6c\x6f\x73\145'>
                        <s\x70\x61\x6e \x61\162\151\x61-\150\x69\x64de\x6e='\164\x72ue'>&\164\151me\x73;</\163pan>
                    </b\x75\164\x74on>
                </\x64\151v>
            </\x64iv>
      <\x64\x69\x76 \143\154\x61\163\x73='\143\x6f\x6c-\163m-12'>
      <\x64iv c\154a\x73\x73='\x63\141\162\144-f\157\157t\145r'><\141 \150\162\145\146='i\x6e\x64\145\x78.\160hp'>
                        <\x62\x75\x74\x74o\156 \x74\171p\145='\142u\x74\164\x6f\156' c\154\x61\x73\163='\x62\x74\156 \x62\x74\156-\160\162\151\x6d\x61\x72y \x62\x74\x6e-b\x6c\157\143k'>
                          <i \x63\x6cass='\146\x61 f\x61-\144o\164-\x63\x69\x72\x63\x6c\x65-o'></\151> \114\x6fg\x69\x6e
                        </\142\165t\164on></\x61>
            

            "; }else{ include "ko\x6e\145\x6b\x73i.\160\150\160"; include "a\x6e\x74i.p\150p"; date_default_timezone_set('Asia/Jakarta'); $bulan=date("\131-\155-\x64"); $judul=cegah($_POST['judul']); $idjadwal=cegah($_POST['id_jadwal']); $video=cegah($_POST['video']); $jenis=cegah($_POST['jenis']); $datanya = mysqli_real_escape_string($kon, $_POST['materi']); $m=mysqli_query($kon, "\163\x65\154\x65c\164 * \146\x72om \152a\x64w\141l \x77\x68\x65\x72\x65 i\x64_j\x61dw\x61\154='$idjadwal' "); $b=mysqli_fetch_array($m); $pelaj = mysqli_real_escape_string($kon, $b['pelajaran']); mysqli_query($kon, "\111\x4eSERT \x49\x4eT\117 \162\165\x61\x6egb\x65la\152ar (i\x64_ja\144\x77al,jud\165\154,\155a\164\145\162\x69,\150\141\x72\151, \x6d\x75l\x61i, s\145le\x73\141i, \151d_\147\165\x72\165, id_m\141p\x65\x6c, \151d_\153\x65\154\141\x73, \x70e\x6c\x61\152\141\162\141n, \156\x61ma_\x6be\x6c\141\163,\x74\x61\156gga\154,\154\x69n\153,j\x65n\x69\x73) V\x41\114\x55\x45\123 
('$idjadwal', '$judul','$datanya', '$b[hari]','$b[mulai]', '$b[selesai]', '$b[id_guru]','$b[id_mapel]', '$b[id_kelas]','$pelaj','$b[nama_kelas]', '$bulan','$video','$jenis' )") or die (mysqli_error($kon)); $jam_menit=date("\110:\151"); $arr = explode(":", $jam_menit); $waktunya=$arr[0] * 60 + $arr[1]; $waktu=$b['mulai']; $namakelasnya=$b['nama_kelas']; $tgljam=date("Y-\155-\x64 \x48:\x69:\163"); $carimateri=mysqli_query($kon, "\x73e\x6c\x65ct i\x64_\x72\165a\156\x67\x62\x65\154\141\x6a\141\162 \146rom \x72\x75\x61n\147\x62ela\x6aar \x77\x68\x65\162\145 \x6e\x61\x6d\141_\153\x65\154\141\163='$namakelasnya' \x61\156\x64 \x74an\147g\141\x6c='$bulan' \x61\156d \x69\144_g\x75\162\x75='$b[id_guru]' \x61\156d \x69\x64_\x6d\141\x70\145l='$b[id_mapel]' "); $zzr=mysqli_fetch_array($carimateri); $nnn=$zzr['id_ruangbelajar']; $gthk=mysqli_query($kon, "se\154\145\143t kela\163 f\162\157m si\x73\167\x61 \167h\145\x72e \153e\154\141\x73='$namakelasnya' "); $d=mysqli_fetch_array($gthk); $kelase=$d['kelas']; $carisystem=mysqli_query($kon, "se\154\145\143t \x6ae\156is \x66\x72om \x74\145\x6dp_p\152\152 w\150\x65\162\x65 \156\141\x6d\141_\153\145\154as='$kelase'"); $t=mysqli_fetch_array($carisystem); if($t['jenis']=='PTM'){ 
$tyi=mysqli_query($kon, "\163\x65\154\145\x63\x74 \x69\x64_\163is\167\x61 \x66\162\157m \163\151\x73w\141 \167h\x65re \x6b\x65\154as='$namakelasnya' "); while($v=mysqli_fetch_array($tyi)){ $saya=($v['id_siswa']); mysqli_query($kon, "I\x4eSE\x52\x54 \x49\x4e\x54O \x74em\160a\164\141b\163\x65\156(i\144_\141\156\x67\147\x6ft\x61,\x74\141\156\147\x67\141\154_ja\155,ta\156\147g\x61\154,\x6aa\x6d,b\x61\171\x61n\147\x61\x6e,\151\144_\x6d\141\x74\x65r\x69,\x73\x65b\x61\147\x61i) \126\101L\x55\105S ('$saya','$tgljam', '$bulan' , '$waktu', '$waktu','$nnn','\x73\151s\x77\x61')") or die (mysqli_error($kon)); } }else{} echo "<\163\143\x72ip\164>;windo\167.\x6c\x6f\143\x61\164\151\x6fn='\150\x6f\155e.\x70\150\160?s\x74\141\x74e=r\x75\x61\156\x67b\145\154\141\152ar'</\163\143\x72\151pt>"; } ?>

Function Calls

session_start 1
error_reporting 1

Variables

None

Stats

MD5 5aabee294cc339bd77779f0be5a3fd3d
Eval Count 0
Decode Time 43 ms