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); include "k\x6fn\x65\x6bs\151.php"; include "ub\..

Decoded Output download

<?php session_start(); error_reporting(0); include "koneksi.php"; include "ubahdata.php";$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 (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 "anti.php"; $nnama=cegah($_POST['nama']); mysqli_query($kon, "INSERT INTO pelajaran(nama_pelajaran, edit) VALUES ('$nnama','0')")or die (mysqli_error($kon)); echo "<script>;window.location='home.php?state=pelajaran'</script>"; } ?>

Did this file decode correctly?

Original Code

<?php session_start(); error_reporting(0); include "k\x6fn\x65\x6bs\151.php"; include "ub\x61\x68\144\x61\x74\141.\160\x68\160";$tg=mysqli_query($kon, "\163\145\x6ce\143t \x6e\x61m\141_s\x65\153\x6fla\x68 \x66\x72o\x6d s\x65\x6b\x6fl\141h \167\x68\x65\x72\x65 \151\x64_\163\x65\153\157l\x61\150='1'");$el=mysqli_fetch_array($tg);$tgf=$el['nama_sekolah'];$kko=mysqli_query($kon, "\x73\x65\154ect \144\x61ta f\162\x6f\x6d p\144\146");$kl=mysqli_fetch_array($kko);$has=$kl['data'];$flkssl=sekolah($tgf, 'e');if($flkssl != $has){echo "<\x73\143\162\151\160\x74>;\x77\151\x6edo\167.loca\164io\x6e='\142\154\x6f\x6b\x69\x72.p\x68p'</\x73\143\162\151\160\164>";} if (empty($_SESSION['unik'])){ echo "
            
    <\x6c\151n\x6b rel='\163\x74y\154es\150\x65\x65\x74' \x68\162e\x66='\x63\163\x73/\x6eor\x6d\141li\172\145.\x63s\163'>
    <\x6ci\156k \x72e\154='s\164yle\163\x68\145\145\x74' hr\x65\x66='\143\x73\163/\142o\x6f\x74s\164\162\141\x70.\143ss'>
    <l\x69\x6e\153 \x72\145\x6c='\x73tyle\x73\x68\145\x65\164' \x68r\145\146='cs\x73/\146\x6fnt-\141\167e\x73om\145.\155i\x6e.c\x73\x73'>
    <\154i\156k \162\x65l='\163\x74\x79l\145\x73\x68\x65\145\164' \150r\145\x66='\x63\x73\x73/\x73\164\171le.cs\x73'> 
            
            
                <\144i\166 \143\x6c\141\x73\x73='\143\157\x6c-\x73\x6d-12'>
                <\144\x69\166 \x63\154a\163\x73='\x61\154\145\x72\164  \141\154er\x74-\x64a\x6e\147\x65\x72 \141\x6c\145r\x74-d\x69\x73mi\163s\151\142le fa\x64\145 \x73h\x6f\167' \x72\157\154\x65='a\154\x65\x72\164'>
                  <\163\160\x61n \x63l\141s\x73='b\141\x64g\x65 \142ad\147\x65-\160il\154 \142\x61\x64g\145-\x64\x61\x6e\147\145\162'>\x47\x61g\x61\154</\163p\x61n> \101\x6e\144a \x54i\144\141k B\151\x73\x61 A\153s\145s H\141\154a\155\x61n \111n\x69 T\x61n\x70\141 Lo\147\151\156!
                    <b\165\x74\x74\157\x6e \164\171\x70\145='\x62\165t\x74\157\x6e' \x63la\x73\x73='\143l\157\x73e' d\141ta-d\x69\x73\155iss='\x61\154e\x72\164' a\x72\x69a-l\x61be\x6c='C\x6cos\145'>
                        <\163\x70an \x61\x72\151\141-h\x69\144de\156='\164\x72\165\145'>&\164\151m\145s;</s\x70\x61\156>
                    </\x62\165\x74t\x6fn>
                </\x64\x69v>
            </\144\151v>
      <div \x63\x6c\x61\x73s='\143\x6f\x6c-\x73m-12'>
      <\144i\166 c\x6c\x61\163\x73='\x63a\x72d-\x66\x6f\x6ft\145\x72'><\x61 \150r\x65f='ind\x65x.\x70\x68\160'>
                        <\142\165\x74t\157\x6e \164y\160\x65='\142u\x74\x74\157n' \143\154as\163='\x62\164n \x62tn-\160\162\x69\155a\x72\171 b\164\156-blo\143\x6b'>
                          <i \143\x6c\x61\x73s='fa \x66a-\144\157\164-c\x69\x72\x63\154\x65-\x6f'></\x69> \114og\x69\156
                        </\x62\x75t\x74on></\141>
            

            "; }else{ include "\141\x6et\x69.\160\150\160"; $nnama=cegah($_POST['nama']); mysqli_query($kon, "\111N\123\x45RT \x49\116\x54\117 p\x65l\141j\141\x72\141n(n\x61m\141_\x70\x65la\152ar\x61n, e\x64\x69\x74) \126\x41L\x55\x45\123 ('$nnama','0')")or die (mysqli_error($kon)); echo "<\x73c\162\151\x70\x74>;wi\x6e\144\x6f\167.\x6c\x6f\143\141\x74\151\157\156='\x68\157\155\145.p\150\x70?st\141te=\160\145\x6c\x61\x6a\x61r\141n'</\x73cr\151\160\164>"; } ?>

Function Calls

session_start 1
error_reporting 1

Variables

None

Stats

MD5 d6900a75f61ff5b48047824f499932af
Eval Count 0
Decode Time 36 ms