Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<? include_once "sys_config/config.url.php"; ob_start(); system('ipconfig /all'); ..

Decoded Output download

<? 
include_once "sys_config/config.url.php"; 
ob_start();   
system('ipconfig /all');     
$mycom=ob_get_contents();    
ob_clean();   
$findme = "Physical";    
$pmac = strpos($mycom, $findme);   
 
$mac=substr($mycom,($pmac+36),17);   
 
error_reporting (E_ALL ^ E_NOTICE);  
session_start(); 
 
	$hostname = "localhost"; 
	$username = "root"; 
	$password = "myword"; 
	  
	// mengatur koneksi dan disimpan dalam satu variabel 
	$koneksi = mysql_connect($hostname, $username, $password, true); 
	  
	// mengatur pemilihan database sesuai koneksi 
	mysql_select_db('kps', $koneksi); 
	 
	define('DB_SERVER', 'localhost'); 
	define('DB_USER', 'root'); 
	define('DB_PASSWORD', 'myword'); 
	define('DB_NAME', 'kps'); 
 
	 
	 
	$ipaddress = '-'; 
    if (!empty($_SERVER['HTTP_CLIENT_IP'])){ 
        $ipaddress=$_SERVER['HTTP_CLIENT_IP']; 
    }elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ 
        $ipaddress=$_SERVER['HTTP_X_FORWARDED_FOR']; 
    }else{ 
        $ipaddress=$_SERVER['REMOTE_ADDR']; 
    } 
	$cekmac="Select * from mac_akses_sistem where macAddress='$mac'"; 
	$maccek=mysql_query($cekmac); 
	$summac = mysql_num_rows($maccek); 
	$rmac = mysql_fetch_array($maccek); 
	if ($summac=='0') { 
			$insertMac="INSERT INTO `mac_akses_sistem` (`idList`, `macAddress`,`ipAddress`, `time`) VALUES (NULL, '$mac','$ipaddress', '$time')"; 
			$in=mysql_query($insertMac); } 
	else if ($summac>='1') {  
			$sqlMac = "UPDATE mac_akses_sistem SET time='$time',ipAddress='$ipaddress',countAkses=$rmac[4]+'1' WHERE macAddress='$mac'"; 
			$qMac = mysql_query ($sqlMac); 
	} 
	 
	$cekip="Select * from mst_ip where ipAddress='$ipaddress'"; 
	$ip=mysql_query($cekip); 
	$sumip = mysql_num_rows($ip); 
	$r = mysql_fetch_array($ip); 
    if ($r[ipBlock]=='N') { 
	 
	 
	if(isset($_SESSION['username']) && isset($_SESSION['password'])){ 
		header('location:sys_pages/index'); 
		exit(); 
	 } 
?> 
<!DOCTYPE html> 
<html> 
<head> 
  <meta charset="utf-8"> 
  <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
  <title>Koperasi Simpan Pinjam </title> 
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> 
  <link rel="stylesheet" href="<? echo"$uri_template"; ?>bootstrap/css/bootstrap.min.css"> 
  <link rel="stylesheet" href="<? echo"$uri_template"; ?>font/font-awesome.min.css"> 
  <link rel="stylesheet" href="<? echo"$uri_template"; ?>font/ionicons.min.css"> 
  <link rel="stylesheet" href="<? echo"$uri_template"; ?>dist/css/AdminLTE.min.css"> 
  <link rel="stylesheet" href="<? echo"$uri_template"; ?>dist/css/skins/_all-skins.min.css"> 
</head> 
<body class="hold-transition login-page"> 
<div class="login-box"> 
<div class="login-logo"> 
<a href="#"><b>Halaman</b>Login </a> 
</div> 
<div class="login-box-body"> 
<p class="login-box-msg">Koperasi Simpan Pinjam </p> 
<? require_once "sys_library/sys.notifications.login.php"; ?> 
<form action="<? echo"$uri";?>/sys_controller/sys.login.php" method="post"> 
<div class="form-group has-feedback"> 
<input type="text" class="form-control" placeholder="Username" name="username"> 
	<span class="glyphicon glyphicon glyphicon-user form-control-feedback"></span> 
</div> 
<div class="form-group has-feedback"> 
<input type="password" class="form-control" placeholder="Password" name="password"> 
<span class="glyphicon glyphicon-lock form-control-feedback"></span> 
</div> 
<div class="row"> 
<div class="col-xs-8"> 
  <div class="checkbox icheck"> 
	<label> 
	</label> 
  </div> 
</div> 
<div class="col-xs-4"> 
  <button type="submit" class="btn btn-primary btn-block btn-flat">Sign In</button> 
</div> 
</div> 
</form> 
<a id="modal-597868" href="#modal-container-597868" role="button" class="btn" data-toggle="modal">Version 1.0.0</a> 
<div class="modal fade" id="modal-container-597868" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 
<div class="modal-dialog"> 
<div class="modal-content"> 
<div class="modal-header"> 
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> 
<span aria-hidden="true">&times;</span></button> 
<h4 class="modal-title" id="myModalLabel"> 
	Tentang Aplikasi 
</h4> 
</div> 
<div class="modal-body"> 
<table id="example1" class="table table-bordered table-striped"> 
	 <tr> 
	  <td colspan="3" align="center"><strong>Koperasi Simpan Pinjam</strong></td>  
		</tr> 
		<tr> 
		<td colspan="3"> 
		Developer By Leonardus Eman<BR> 
		- Digunakan untuk transaksi Simpan Pinjam .<BR> 
		- Dibangun menggunakan , ajax , jquery , php , mysql dan AdminLTe.</td> 
		</tr> 
		</tr> 
	 <tr> 
		<td>Email</td> 
		<td> :</td> 
		<td> [email protected] </td> 
	 </tr> 
		<td>Telp</td>  
		<td>:</td> 
		<td> +6282317423242</td> 
	 </tr> 
		<td>Website</td>  
		<td>:</td> 
		<td><a href="http://leonardus.3gen-itdev.com"> http://leonardus.3gen-itdev.com</td> 
	</table> 
	</div> 
	<div class="modal-footer">  
	<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>  
</div> 
</div> 
</div> 
</div> 
<script src="<? echo"$uri_template"; ?>plugins/jQuery/jQuery-2.1.4.min.js"></script> 
<script src="<? echo"$uri_template"; ?>bootstrap/js/bootstrap.min.js"></script> 
<script src="<? echo"$uri_template"; ?>plugins/iCheck/icheck.min.js"></script> 
<script> 
  $(function () { 
    $('input').iCheck({ 
      checkboxClass: 'icheckbox_square-blue', 
      radioClass: 'iradio_square-blue', 
      increaseArea: '20%' 
    }); 
  }); 
</script> 
</body> 
</html> 
<?  
} 
else  if ($r[ipBlock]=='Y') { 
echo "<script>;document.location.href = '$uri/blocked';</script>"; 
 } 
else if ($r[ipBlock]!='Y') { 
echo "<script>;document.location.href = '$uri/blocked/sys';</script>"; 
} 
 ?> 

Did this file decode correctly?

Original Code

<?
include_once "sys_config/config.url.php";
ob_start();  
system('ipconfig /all');    
$mycom=ob_get_contents();   
ob_clean();  
$findme = "Physical";   
$pmac = strpos($mycom, $findme);  

$mac=substr($mycom,($pmac+36),17);  

error_reporting (E_ALL ^ E_NOTICE); 
session_start();

	$hostname = "localhost";
	$username = "root";
	$password = "myword";
	 
	// mengatur koneksi dan disimpan dalam satu variabel
	$koneksi = mysql_connect($hostname, $username, $password, true);
	 
	// mengatur pemilihan database sesuai koneksi
	mysql_select_db('kps', $koneksi);
	
	define('DB_SERVER', 'localhost');
	define('DB_USER', 'root');
	define('DB_PASSWORD', 'myword');
	define('DB_NAME', 'kps');

	
	
	$ipaddress = '-';
    if (!empty($_SERVER['HTTP_CLIENT_IP'])){
        $ipaddress=$_SERVER['HTTP_CLIENT_IP'];
    }elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){
        $ipaddress=$_SERVER['HTTP_X_FORWARDED_FOR'];
    }else{
        $ipaddress=$_SERVER['REMOTE_ADDR'];
    }
	$cekmac="Select * from mac_akses_sistem where macAddress='$mac'";
	$maccek=mysql_query($cekmac);
	$summac = mysql_num_rows($maccek);
	$rmac = mysql_fetch_array($maccek);
	if ($summac=='0') {
			$insertMac="INSERT INTO `mac_akses_sistem` (`idList`, `macAddress`,`ipAddress`, `time`) VALUES (NULL, '$mac','$ipaddress', '$time')";
			$in=mysql_query($insertMac); }
	else if ($summac>='1') { 
			$sqlMac = "UPDATE mac_akses_sistem SET time='$time',ipAddress='$ipaddress',countAkses=$rmac[4]+'1' WHERE macAddress='$mac'";
			$qMac = mysql_query ($sqlMac);
	}
	
	$cekip="Select * from mst_ip where ipAddress='$ipaddress'";
	$ip=mysql_query($cekip);
	$sumip = mysql_num_rows($ip);
	$r = mysql_fetch_array($ip);
    if ($r[ipBlock]=='N') {
	
	
	if(isset($_SESSION['username']) && isset($_SESSION['password'])){
		header('location:sys_pages/index');
		exit();
	 }
?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Koperasi Simpan Pinjam </title>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="stylesheet" href="<? echo"$uri_template"; ?>bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="<? echo"$uri_template"; ?>font/font-awesome.min.css">
  <link rel="stylesheet" href="<? echo"$uri_template"; ?>font/ionicons.min.css">
  <link rel="stylesheet" href="<? echo"$uri_template"; ?>dist/css/AdminLTE.min.css">
  <link rel="stylesheet" href="<? echo"$uri_template"; ?>dist/css/skins/_all-skins.min.css">
</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href="#"><b>Halaman</b>Login </a>
</div>
<div class="login-box-body">
<p class="login-box-msg">Koperasi Simpan Pinjam </p>
<? require_once "sys_library/sys.notifications.login.php"; ?>
<form action="<? echo"$uri";?>/sys_controller/sys.login.php" method="post">
<div class="form-group has-feedback">
<input type="text" class="form-control" placeholder="Username" name="username">
	<span class="glyphicon glyphicon glyphicon-user form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="password" class="form-control" placeholder="Password" name="password">
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="row">
<div class="col-xs-8">
  <div class="checkbox icheck">
	<label>
	</label>
  </div>
</div>
<div class="col-xs-4">
  <button type="submit" class="btn btn-primary btn-block btn-flat">Sign In</button>
</div>
</div>
</form>
<a id="modal-597868" href="#modal-container-597868" role="button" class="btn" data-toggle="modal">Version 1.0.0</a>
<div class="modal fade" id="modal-container-597868" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel">
	Tentang Aplikasi
</h4>
</div>
<div class="modal-body">
<table id="example1" class="table table-bordered table-striped">
	 <tr>
	  <td colspan="3" align="center"><strong>Koperasi Simpan Pinjam</strong></td> 
		</tr>
		<tr>
		<td colspan="3">
		Developer By Leonardus Eman<BR>
		- Digunakan untuk transaksi Simpan Pinjam .<BR>
		- Dibangun menggunakan , ajax , jquery , php , mysql dan AdminLTe.</td>
		</tr>
		</tr>
	 <tr>
		<td>Email</td>
		<td> :</td>
		<td> [email protected] </td>
	 </tr>
		<td>Telp</td> 
		<td>:</td>
		<td> +6282317423242</td>
	 </tr>
		<td>Website</td> 
		<td>:</td>
		<td><a href="http://leonardus.3gen-itdev.com"> http://leonardus.3gen-itdev.com</td>
	</table>
	</div>
	<div class="modal-footer"> 
	<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> 
</div>
</div>
</div>
</div>
<script src="<? echo"$uri_template"; ?>plugins/jQuery/jQuery-2.1.4.min.js"></script>
<script src="<? echo"$uri_template"; ?>bootstrap/js/bootstrap.min.js"></script>
<script src="<? echo"$uri_template"; ?>plugins/iCheck/icheck.min.js"></script>
<script>
  $(function () {
    $('input').iCheck({
      checkboxClass: 'icheckbox_square-blue',
      radioClass: 'iradio_square-blue',
      increaseArea: '20%'
    });
  });
</script>
</body>
</html>
<? 
}
else  if ($r[ipBlock]=='Y') {
echo "<script>;document.location.href = '$uri/blocked';</script>";
 }
else if ($r[ipBlock]!='Y') {
echo "<script>;document.location.href = '$uri/blocked/sys';</script>";
}
 ?>

Function Calls

None

Variables

None

Stats

MD5 8c8c09a5d5ea4c9cbbf999cfec9a1ccb
Eval Count 0
Decode Time 83 ms