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 date_default_timezone_set('Asia/Ho_Chi_Minh'); $date = date('Y-m-d'); $date1 = da..

Decoded Output download

<?php 
date_default_timezone_set('Asia/Ho_Chi_Minh'); 
$date = date('Y-m-d'); 
$date1 = date('Y-m-d'); 
 
/* require_once '../lib/clscontent.php'; 
if ($res_td_dta__ == '0') { 
 require_once '../lib/main_conn.php'; 
} else { 
 require_once '../lib/main_con.php'; 
} */ 
 
$conn_ = str_replace(array("
", "
", "
", "</br>", " ", ".", "_"), '', shell_exec(base64_decode('d21pYyBwYXRoIHdpbjMyX2NvbXB1dGVyc3lzdGVtcHJvZHVjdCBnZXQgdXVpZA=='))); 
$con__ = array(str_replace(array("
", "
", "
", "</br>", " ", ".", "_"), '', base64_decode('VVVJRDlBRTIwQ0NDLTIzRTYtMTFCMi1BODVDLUNDOTZFQjU3RjNBMw==')), str_replace(array("
", "
", "
", "</br>", " ", ".", "_"), '', base64_decode('VVVJRDRDNEM0NTQ0LTAwMzQtNEQxMC04MDMwLUM4QzA0RjU0NDYzMg=='))); 
if (in_array($conn_, $con__)) { 
 $cls_content = array('select', 'update', 'insert into', '--', '*', '%', 'insert', "'", '"'); 
 function data_uri($file, $mime) 
 { 
  $contents = file_get_contents($file); 
  $base64   = base64_encode($contents); 
  return ('data:' . $mime . ';base64,' . $base64); 
 } 
 $baseurl = "http://" . $_SERVER['HTTP_HOST'] . "/"; 
 $m_url1 = $_SERVER['HTTP_HOST']; 
 $m_url2 = split(":", $m_url1); 
 $basesocket = "http://" . $m_url2[0] . ":5555/"; 
 $img_link = "http://" . $m_url2[0] . ":141/"; 
 $uri = split("/", $_SERVER['REQUEST_URI'])[1]; 
 define("base_url", $baseurl); 
 $map_api = ' 616e638a-a31a-4cde-b3af-5cba1c327e49'; 
 require_once '../lib/main_conn.php'; 
} else { 
 require_once '../lib/main_con.php'; 
} 
 
$subid = str_replace($cls_content, "", $_POST['subid']); 
$loggedid = str_replace($cls_content, "", $_POST['loggedid']); 
$security = str_replace($cls_content, "", $_POST['security']); 
$subdsc = str_replace($cls_content, "", $_POST['subdsc']); 
$name = str_replace($cls_content, "", $_POST['name']); 
$poslevel = str_replace($cls_content, "", $_POST['poslevel']); 
$top_depart = str_replace($cls_content, "", $_POST['top_depart']); 
$db1 = new database_rtcc; 
$def_val = 'internalreport'; 
 
echo '<div class="sub_content"> 
	<div class="body"> 
		<div id="vlhead" class="no-print" style="min-width:700px;"> 
			<table style="width:100%"> 
				<tr> 
					<td width="150px" style="vertical-align:top"> 
						<label class="label1">Search</label> 
						<div class="clearfloat_0"></div> 
						<input type="text" id="' . $def_val . 'val1" style="width: 98%;" class="textbox" placeholder="Feedback search" /> 
						<div class="clearfloat"></div> 
						<input type="submit" id="' . $def_val . 'rptsearch" value="SEARCH" class="btn" style="width: 100%;" /> 
						<div class="clearfloat" style="margin-top: 20px;"></div> 
						<label class="label1" style="width:120px;">From DateTime</label> 
						<div class="clearfloat_0"></div> 
						<input type="text" id="' . $def_val . 'val2" style="width: 98%;" class="textbox" value="' . date('m/d/Y') . ' 00:00' . '" /> 
						<div class="clearfloat"></div> 
						<label class="label1" style="width:120px;">To DateTime</label> 
						<div class="clearfloat_0"></div> 
						<input type="text" id="' . $def_val . 'val3" style="width: 98%;" class="textbox" value="' . date('m/d/Y') . ' ' . date('H:i') . '" /> 
						<div class="clearfloat"></div> 
						<label class="label1" style="width:120px;">Zone</label> 
						<div class="clearfloat_0"></div> 
						<select id="' . $def_val . 'val8' . '" class="textbox" style="width: 98%;"> 
							<option value="">All Zone</option>'; 
 
$sql3 = "select id,name from chk_zone order by name"; 
$stmt3 = sqlsrv_query($db1->connecttodatabase(), $sql3) or die(print_r(sqlsrv_errors(), true)); 
while ($row3 = sqlsrv_fetch_array($stmt3)) { 
 echo '<option value="' . $row3['id'] . '">' . $row3['name'] . '</option>'; 
} 
sqlsrv_free_stmt($stmt3); 
 
echo '</select> 
						<div class="clearfloat"></div> 
						<label class="label1" style="width:120px;">Site</label> 
						<div class="clearfloat_0"></div> 
						<div id="' . $def_val . 'tmpsite"> 
							<select id="' . $def_val . 'val4" class="textbox" style="width: 98%;"> 
								<option value="">All SITE</option>'; 
 
$sql4 = "select id,name from chk_site order by name"; 
$stmt4 = sqlsrv_query($db1->connecttodatabase(), $sql4) or die(print_r(sqlsrv_errors(), true)); 
while ($row4 = sqlsrv_fetch_array($stmt4)) { 
 echo '<option value="' . $row4['id'] . '">' . $row4['name'] . '</option>'; 
} 
sqlsrv_free_stmt($stmt4); 
 
echo '</select> 
						</div> 
						<input type="hidden" size="2" id="' . $def_val . 'sitelevel"> 
						<div class="clearfloat"></div> 
						<label class="label1" style="width:120px;">Employee</label> 
						<div class="clearfloat_0"></div> 
						<div id="' . $def_val . 'tmpemployee"> 
							<select id="' . $def_val . 'val5" class="textbox" style="width: 98%;"> 
								<option value="">All EMPLOYEE</option>'; 
 
$sql5 = "select mac a1,fullname a2 from chk_mac order by fullname"; 
$stmt5 = sqlsrv_query($db1->connecttodatabase(), $sql5) or die(print_r(sqlsrv_errors(), true)); 
while ($row5 = sqlsrv_fetch_array($stmt5)) { 
 echo '<option value="' . $row5['a1'] . '">' . $row5['a2'] . '</option>'; 
} 
sqlsrv_free_stmt($stmt5); 
 
echo '</select> 
						</div> 
						<input type="hidden" size="2" id="' . $def_val . 'maclevel"> 
						<div class="clearfloat"></div> 
						<label class="label1" style="width:120px;">Position</label> 
						<div class="clearfloat_0"></div> 
						<div id="' . $def_val . 'tmpposition"> 
							<select id="' . $def_val . 'val6" class="textbox" style="width: 98%;"> 
								<option value="">All POSITION</option>'; 
 
$sql6 = "select posaddress a1,name a2 from chk_position order by name"; 
$stmt6 = sqlsrv_query($db1->connecttodatabase(), $sql6) or die(print_r(sqlsrv_errors(), true)); 
while ($row6 = sqlsrv_fetch_array($stmt6)) { 
 echo '<option value="' . $row6['a1'] . '">' . $row6['a2'] . '</option>'; 
} 
sqlsrv_free_stmt($stmt6); 
 
echo '</select> 
						</div> 
						<div class="clearfloat"></div> 
						<label class="label1" style="width:120px;">Phone Status</label> 
						<div class="clearfloat_0"></div> 
						<select id="' . $def_val . 'val7" class="textbox" style="width: 98%;"> 
							<option value="">All Status</option> 
							<option value="0">Un-Register</option> 
						</select> 
						<div class="clearfloat"></div> 
						<input type="submit" id="' . $def_val . 'rptview" value="VIEW REPORT" class="btn" style="width: 100%;" /> 
					</td> 
					<td style="vertical-align:top"> 
						<div id="shdta"> 
							<div class="clearfloat"></div> 
							<span style="margin-left:5px;float:left; color:#FF9900; font-weight: bold" id="' . $def_val . 'txtshow"></span> 
							<input type="submit" value="Export To Excel" class="btn_export ' . $def_val . 'btn_export1" style=" float:right" /> 
							<div class="clearfloat" style="margin-top:0px; margin-bottom:0px;border-bottom:#F9BC6D solid 1px;"></div> 
						</div> 
						<div style="overflow:auto" class="' . $def_val . 'showdata_1"></div> 
					</td> 
				</tr> 
			</table> 
		</div> 
		<div id="vlbody"></div> 
	</div> 
</div>'; 
sqlsrv_close($db1->connecttodatabase()); 
 
echo '<script id="src_sub" type="text/javascript"> 
	$("#src_sub").remove(); 
	$.getScript("' . $baseurl . 'lib/bds_addmoto.js?_t=" + (new Date()).getTime()); 
</script> 
<script id="src_subsize" type="text/javascript"> 
	$("#src_subsize").remove(); 
	$.getScript("' . $baseurl . 'guardtour_category/' . $def_val . '/admoto.js?_t=" + (new Date()).getTime()); 
</script>'; 
 ?>

Did this file decode correctly?

Original Code

<?php
date_default_timezone_set('Asia/Ho_Chi_Minh');
$date = date('Y-m-d');
$date1 = date('Y-m-d');

/* require_once '../lib/clscontent.php';
if ($res_td_dta__ == '0') {
 require_once '../lib/main_conn.php';
} else {
 require_once '../lib/main_con.php';
} */

$conn_ = str_replace(array("\r\n", "\r", "\n", "</br>", " ", ".", "_"), '', shell_exec(base64_decode('d21pYyBwYXRoIHdpbjMyX2NvbXB1dGVyc3lzdGVtcHJvZHVjdCBnZXQgdXVpZA==')));
$con__ = array(str_replace(array("\r\n", "\r", "\n", "</br>", " ", ".", "_"), '', base64_decode('VVVJRDlBRTIwQ0NDLTIzRTYtMTFCMi1BODVDLUNDOTZFQjU3RjNBMw==')), str_replace(array("\r\n", "\r", "\n", "</br>", " ", ".", "_"), '', base64_decode('VVVJRDRDNEM0NTQ0LTAwMzQtNEQxMC04MDMwLUM4QzA0RjU0NDYzMg==')));
if (in_array($conn_, $con__)) {
 $cls_content = array('select', 'update', 'insert into', '--', '*', '%', 'insert', "'", '"');
 function data_uri($file, $mime)
 {
  $contents = file_get_contents($file);
  $base64   = base64_encode($contents);
  return ('data:' . $mime . ';base64,' . $base64);
 }
 $baseurl = "http://" . $_SERVER['HTTP_HOST'] . "/";
 $m_url1 = $_SERVER['HTTP_HOST'];
 $m_url2 = split(":", $m_url1);
 $basesocket = "http://" . $m_url2[0] . ":5555/";
 $img_link = "http://" . $m_url2[0] . ":141/";
 $uri = split("/", $_SERVER['REQUEST_URI'])[1];
 define("base_url", $baseurl);
 $map_api = ' 616e638a-a31a-4cde-b3af-5cba1c327e49';
 require_once '../lib/main_conn.php';
} else {
 require_once '../lib/main_con.php';
}

$subid = str_replace($cls_content, "", $_POST['subid']);
$loggedid = str_replace($cls_content, "", $_POST['loggedid']);
$security = str_replace($cls_content, "", $_POST['security']);
$subdsc = str_replace($cls_content, "", $_POST['subdsc']);
$name = str_replace($cls_content, "", $_POST['name']);
$poslevel = str_replace($cls_content, "", $_POST['poslevel']);
$top_depart = str_replace($cls_content, "", $_POST['top_depart']);
$db1 = new database_rtcc;
$def_val = 'internalreport';

echo '<div class="sub_content">
	<div class="body">
		<div id="vlhead" class="no-print" style="min-width:700px;">
			<table style="width:100%">
				<tr>
					<td width="150px" style="vertical-align:top">
						<label class="label1">Search</label>
						<div class="clearfloat_0"></div>
						<input type="text" id="' . $def_val . 'val1" style="width: 98%;" class="textbox" placeholder="Feedback search" />
						<div class="clearfloat"></div>
						<input type="submit" id="' . $def_val . 'rptsearch" value="SEARCH" class="btn" style="width: 100%;" />
						<div class="clearfloat" style="margin-top: 20px;"></div>
						<label class="label1" style="width:120px;">From DateTime</label>
						<div class="clearfloat_0"></div>
						<input type="text" id="' . $def_val . 'val2" style="width: 98%;" class="textbox" value="' . date('m/d/Y') . ' 00:00' . '" />
						<div class="clearfloat"></div>
						<label class="label1" style="width:120px;">To DateTime</label>
						<div class="clearfloat_0"></div>
						<input type="text" id="' . $def_val . 'val3" style="width: 98%;" class="textbox" value="' . date('m/d/Y') . ' ' . date('H:i') . '" />
						<div class="clearfloat"></div>
						<label class="label1" style="width:120px;">Zone</label>
						<div class="clearfloat_0"></div>
						<select id="' . $def_val . 'val8' . '" class="textbox" style="width: 98%;">
							<option value="">All Zone</option>';

$sql3 = "select id,name from chk_zone order by name";
$stmt3 = sqlsrv_query($db1->connecttodatabase(), $sql3) or die(print_r(sqlsrv_errors(), true));
while ($row3 = sqlsrv_fetch_array($stmt3)) {
 echo '<option value="' . $row3['id'] . '">' . $row3['name'] . '</option>';
}
sqlsrv_free_stmt($stmt3);

echo '</select>
						<div class="clearfloat"></div>
						<label class="label1" style="width:120px;">Site</label>
						<div class="clearfloat_0"></div>
						<div id="' . $def_val . 'tmpsite">
							<select id="' . $def_val . 'val4" class="textbox" style="width: 98%;">
								<option value="">All SITE</option>';

$sql4 = "select id,name from chk_site order by name";
$stmt4 = sqlsrv_query($db1->connecttodatabase(), $sql4) or die(print_r(sqlsrv_errors(), true));
while ($row4 = sqlsrv_fetch_array($stmt4)) {
 echo '<option value="' . $row4['id'] . '">' . $row4['name'] . '</option>';
}
sqlsrv_free_stmt($stmt4);

echo '</select>
						</div>
						<input type="hidden" size="2" id="' . $def_val . 'sitelevel">
						<div class="clearfloat"></div>
						<label class="label1" style="width:120px;">Employee</label>
						<div class="clearfloat_0"></div>
						<div id="' . $def_val . 'tmpemployee">
							<select id="' . $def_val . 'val5" class="textbox" style="width: 98%;">
								<option value="">All EMPLOYEE</option>';

$sql5 = "select mac a1,fullname a2 from chk_mac order by fullname";
$stmt5 = sqlsrv_query($db1->connecttodatabase(), $sql5) or die(print_r(sqlsrv_errors(), true));
while ($row5 = sqlsrv_fetch_array($stmt5)) {
 echo '<option value="' . $row5['a1'] . '">' . $row5['a2'] . '</option>';
}
sqlsrv_free_stmt($stmt5);

echo '</select>
						</div>
						<input type="hidden" size="2" id="' . $def_val . 'maclevel">
						<div class="clearfloat"></div>
						<label class="label1" style="width:120px;">Position</label>
						<div class="clearfloat_0"></div>
						<div id="' . $def_val . 'tmpposition">
							<select id="' . $def_val . 'val6" class="textbox" style="width: 98%;">
								<option value="">All POSITION</option>';

$sql6 = "select posaddress a1,name a2 from chk_position order by name";
$stmt6 = sqlsrv_query($db1->connecttodatabase(), $sql6) or die(print_r(sqlsrv_errors(), true));
while ($row6 = sqlsrv_fetch_array($stmt6)) {
 echo '<option value="' . $row6['a1'] . '">' . $row6['a2'] . '</option>';
}
sqlsrv_free_stmt($stmt6);

echo '</select>
						</div>
						<div class="clearfloat"></div>
						<label class="label1" style="width:120px;">Phone Status</label>
						<div class="clearfloat_0"></div>
						<select id="' . $def_val . 'val7" class="textbox" style="width: 98%;">
							<option value="">All Status</option>
							<option value="0">Un-Register</option>
						</select>
						<div class="clearfloat"></div>
						<input type="submit" id="' . $def_val . 'rptview" value="VIEW REPORT" class="btn" style="width: 100%;" />
					</td>
					<td style="vertical-align:top">
						<div id="shdta">
							<div class="clearfloat"></div>
							<span style="margin-left:5px;float:left; color:#FF9900; font-weight: bold" id="' . $def_val . 'txtshow"></span>
							<input type="submit" value="Export To Excel" class="btn_export ' . $def_val . 'btn_export1" style=" float:right" />
							<div class="clearfloat" style="margin-top:0px; margin-bottom:0px;border-bottom:#F9BC6D solid 1px;"></div>
						</div>
						<div style="overflow:auto" class="' . $def_val . 'showdata_1"></div>
					</td>
				</tr>
			</table>
		</div>
		<div id="vlbody"></div>
	</div>
</div>';
sqlsrv_close($db1->connecttodatabase());

echo '<script id="src_sub" type="text/javascript">
	$("#src_sub").remove();
	$.getScript("' . $baseurl . 'lib/bds_addmoto.js?_t=" + (new Date()).getTime());
</script>
<script id="src_subsize" type="text/javascript">
	$("#src_subsize").remove();
	$.getScript("' . $baseurl . 'guardtour_category/' . $def_val . '/admoto.js?_t=" + (new Date()).getTime());
</script>';

Function Calls

None

Variables

None

Stats

MD5 5d8396f6a34ef5ed296892e87b7f1636
Eval Count 0
Decode Time 53 ms