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); define("Ac\x54\x69v\x45\153\157\x54iMO", dirnam..

Decoded Output download

<?php session_start(); error_reporting(0); define("AcTivEkoTiMO", dirname(__FILE__)); include "../koneksi.php"; include "anti.php"; include "ubahdata.php"; date_default_timezone_set('Asia/Jakarta'); $hal=date('Y-m-d H:i:s'); $length = 32; $_SESSION['token'] = substr(base_convert(sha1(uniqid(mt_rand())), 16, 36), 0, $length); if(isset($_GET['auti'])){ $username33 = cegah($_GET['verifikasi']); $password22 = cegah($_GET['auti']); $usr=sekolah($username33, 'd'); $kode=cegah($_GET['cd']); $login=mysqli_query($kon, "select * from siswa where username='$usr' and password='$password22' and unik='$kode'"); $find=mysqli_num_rows($login); $a=mysqli_fetch_array($login); if ($find>0){ $jumlahlogin=$a['login']; $totallogin=$jumlahlogin + 1; mysqli_query($kon, "UPDATE siswa SET login='$totallogin', 
                tanggal='$hal' 
               
                 
                where username='$usr' and password='$password22'") or die (mysqli_error($kon)); $_SESSION['idnya']=$a['id_siswa']; $_SESSION['user']=$a['username']; $_SESSION['password']=$a['password']; $_SESSION['siswaunik']=$a['unik']; $_SESSION['tokenexpire'] = time() + 37200; $jlk=mysqli_query($kon,"select * from temp_pjj where nama_kelas='$a[kelas]'"); $u=mysqli_fetch_array($jlk); $pembelajaran=$u['jenis']; $_SESSION['pembelajaran']=$pembelajaran; echo " 
<form id='jalankan1' method='post' action='../admin.php?state=dashboard'> 
 
<input type='text' name='kode' value='$_SESSION[token]' hidden> 
 
 
<input type='text' name='waktu' value='$_SESSION[tokenexpire]' hidden > 
</form> 
<script>document.getElementById('jalankan1').submit();</script>"; }else{ echo " 
						 
						 
						 
						    <div class='col-sm-12 '> 
                <p style='color:red; text-align:center; font-size:26px;'>Username atau Password SALAH !!</p> 
                    <button type='button' class='close' data-dismiss='alert' aria-label='Close'> 
                        <span aria-hidden='true'>&times;</span> 
                    </button> 
               
            </div> 
			"; } }else{ } ?>

Did this file decode correctly?

Original Code

<?php session_start(); error_reporting(0); define("Ac\x54\x69v\x45\153\157\x54iMO", dirname(__FILE__)); include "../k\x6fn\145\153\163\151.\160\x68\x70"; include "\141nti.\160h\160"; include "\165\x62a\x68\x64\141t\141.\160\150p"; date_default_timezone_set('Asia/Jakarta'); $hal=date('Y-m-d H:i:s'); $length = 32; $_SESSION['token'] = substr(base_convert(sha1(uniqid(mt_rand())), 16, 36), 0, $length); if(isset($_GET['auti'])){ $username33 = cegah($_GET['verifikasi']); $password22 = cegah($_GET['auti']); $usr=sekolah($username33, 'd'); $kode=cegah($_GET['cd']); $login=mysqli_query($kon, "\163\x65l\x65ct * \146\162\x6fm \163\x69\x73\x77a w\150\145\x72\x65 u\x73\x65r\156a\155\x65='$usr' \141\156d \160a\163\x73\167o\x72d='$password22' \141\156d \x75n\x69k='$kode'"); $find=mysqli_num_rows($login); $a=mysqli_fetch_array($login); if ($find>0){ $jumlahlogin=$a['login']; $totallogin=$jumlahlogin + 1; mysqli_query($kon, "U\120D\x41\124\105 \163\151sw\141 SET \x6c\157\147i\156='$totallogin',
                \164a\156gg\141\x6c='$hal'
              
                
                w\x68\145\x72\x65 \x75\163e\x72\156\x61m\145='$usr' a\x6ed p\141s\x73w\x6f\162d='$password22'") or die (mysqli_error($kon)); $_SESSION['idnya']=$a['id_siswa']; $_SESSION['user']=$a['username']; $_SESSION['password']=$a['password']; $_SESSION['siswaunik']=$a['unik']; $_SESSION['tokenexpire'] = time() + 37200; $jlk=mysqli_query($kon,"\163e\x6ce\143t * \146\x72\157m t\x65mp_\160\152\152 \167\150\x65\x72\145 n\x61\155a_k\x65la\x73='$a[kelas]'"); $u=mysqli_fetch_array($jlk); $pembelajaran=$u['jenis']; $_SESSION['pembelajaran']=$pembelajaran; echo "
<\146o\x72\x6d id='\152al\x61n\x6b\141n\x31' \155e\x74h\157\x64='\160\x6f\163\x74' ac\164\151\157\156='../a\x64\x6d\151\156.\x70hp?sta\164\x65=\144a\163h\142\157a\x72d'>

<\x69\156\160\165t \164y\160\x65='t\145\x78t' name='\x6bo\144\145' \166\141\x6c\x75\x65='$_SESSION[token]' \x68\151\144\x64en>


<in\160\x75\164 t\x79p\x65='t\x65\170\x74' \156a\155\x65='\x77\x61\x6b\x74\165' \x76\x61l\165\x65='$_SESSION[tokenexpire]' \x68i\144\144\x65n >
</f\x6f\162\x6d>
<scr\151\x70\x74>\x64\x6f\x63\165m\x65\x6e\164.\x67etE\154\145\155e\156tB\171\x49\144('jal\x61n\153an\x31').s\165\142m\151t();</s\x63ri\x70t>"; }else{ echo "
						
						
						
						    <di\x76 c\x6ca\163\x73='\x63ol-\x73\155-12 '>
                <p s\x74yle='co\154or:\x72e\x64; te\x78\x74-a\x6c\151g\x6e:\x63e\x6e\x74e\x72; \x66o\x6e\164-\x73\x69\172\x65:26\x70x;'>\125s\x65\162\156\141\x6d\x65 \141\x74\141u \120\x61\x73s\x77or\x64 \123AL\x41\x48 !!</\x70>
                    <\x62\165\164t\157\x6e \164yp\x65='\x62ut\164\x6f\x6e' \x63\x6cas\163='\x63l\x6f\x73e' \144at\x61-d\151\163\155\151\x73\163='\141\x6c\x65\162\x74' \x61\x72\151a-\154\141\x62\145\154='\103lo\x73e'>
                        <sp\141\156 \x61r\x69\x61-hi\144d\x65\156='\x74rue'>&t\x69m\145\x73;</\163\x70\x61\156>
                    </b\165t\x74\x6f\156>
              
            </\x64iv>
			"; } }else{ } ?>

Function Calls

define 1
dirname 1
session_start 1
error_reporting 1

Variables

None

Stats

MD5 9dc182871309970462ae6e869f956bc6
Eval Count 0
Decode Time 51 ms