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 eval(str_rot13(gzinflate(str_rot13(base64_decode('LUvFsoXakvyaG+/2DJfoEe62ZCYdu..
Decoded Output download
$request = $_REQUEST;
if ($request['act'] == 'download'){
// Disable Compression
@ini_set('zlib.output_compression', 'Off');
@ini_set('output_buffering', 'Off');
@ini_set('output_handler', '');
// Headers
header('HTTP/1.1 200 OK');
// Download follows...
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename=random.dat');
header('Content-Transfer-Encoding: binary');
// Never cache me
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
// Generate data
$data=openssl_random_pseudo_bytes(1048576);
// Deliver chunks of 1048576 bytes
$chunks=isset($_GET['ckSize']) ? intval($_GET['ckSize']) : 4;
if(empty($chunks)){$chunks = 4;}
if($chunks>100){$chunks = 100;}
for($i=0;$i<$chunks;$i++){
echo $data;
flush();
}
}
if ($request['act'] == 'upload' OR $request['act'] == 'ping') {
header( "HTTP/1.1 200 OK" );
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Connection: keep-alive");
}
if ($request['act'] == 'geo_info') {
header("Content-type: application/json; charset=utf-8");
}
// curl http://s61.nska.net/agent.php?action=test
if ($request['act'] == 'test') {
error_reporting(-1);
ini_set('display_errors', 1);
echo 'OK!';
}
function get_geo(){
$ip = "";
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['X-Real-IP'])) {
$ip = $_SERVER['X-Real-IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
$ip = preg_replace("/,.*/", "", $ip); # hosts are comma-separated, client is first
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
$ip = preg_replace("/^::ffff:/", "", $ip);
if ($ip == "::1") { // ::1/128 is the only localhost ipv6 address. there are no others, no need to strpos this
return (['processedString' => $ip . " - localhost IPv6 access", 'rawIspInfo' => ""]);
die();
}
if (stripos($ip, 'fe80:') === 0) { // simplified IPv6 link-local address (should match fe80::/10)
return (['processedString' => $ip . " - link-local IPv6 access", 'rawIspInfo' => ""]);
die();
}
if (strpos($ip, '127.') === 0) { //anything within the 127/8 range is localhost ipv4, the ip must start with 127.0
return (['processedString' => $ip . " - localhost IPv4 access", 'rawIspInfo' => ""]);
die();
}
if (strpos($ip, '10.') === 0) { // 10/8 private IPv4
return (['processedString' => $ip . " - private IPv4 access", 'rawIspInfo' => ""]);
die();
}
if (preg_match('/^172\.(1[6-9]|2\d|3[01])\./', $ip) === 1) { // 172.16/12 private IPv4
return (['processedString' => $ip . " - private IPv4 access", 'rawIspInfo' => ""]);
die();
}
if (strpos($ip, '192.168.') === 0) { // 192.168/16 private IPv4
return (['processedString' => $ip . " - private IPv4 access", 'rawIspInfo' => ""]);
die();
}
if (strpos($ip, '169.254.') === 0) { // IPv4 link-local
return (['processedString' => $ip . " - link-local IPv4 access", 'rawIspInfo' => ""]);
die();
}
$isp = "";
$rawIspInfo=null;
try {
$json = file_get_contents("https://ipinfo.io/" . $ip . "/json");
$details = json_decode($json, true);
$rawIspInfo=$details;
if (array_key_exists("org", $details)){
$isp .= $details["org"];
$isp=preg_replace("/AS\d{1,}\s/","",$isp); //Remove AS##### from ISP name, if present
}else{
$isp .= "Unknown ISP";
}
if (array_key_exists("country", $details)){
$isp .= ", " . $details["country"];
}
$clientLoc = NULL;
$serverLoc = NULL;
if (array_key_exists("loc", $details)){
$clientLoc = $details["loc"];
}
if ($clientLoc) {
$json = file_get_contents("https://ipinfo.io/json");
$details = json_decode($json, true);
if (array_key_exists("loc", $details)){
$serverLoc = $details["loc"];
}
if ($serverLoc) {
try {
$clientLoc = explode(",", $clientLoc);
$serverLoc = explode(",", $serverLoc);
$dist = $this->_distance($clientLoc[0], $clientLoc[1], $serverLoc[0], $serverLoc[1]);
if ($_GET["distance"] == "mi") {
$dist /= 1.609344;
$dist = round($dist, -1);
if ($dist < 15)
$dist = "<15";
$isp .= " (" . $dist . " mi)";
}else if ($_GET["distance"] == "km") {
$dist = round($dist, -1);
if ($dist < 20)
$dist = "<20";
$isp .= " (" . $dist . " km)";
}
} catch (Exception $e) {
}
}
}
} catch (Exception $ex) {
$isp = "Unknown ISP";
}
return (['processedString' => $ip . " - " . $isp, 'rawIspInfo' => $rawIspInfo]);
}
Did this file decode correctly?
Original Code
<?php
eval(str_rot13(gzinflate(str_rot13(base64_decode('LUvFsoXakvyaG+/2DJfoEe62ZCYduLvz9Q9B9BmcjRZ4lXFy1kUP979bf8TrPZTLv+NDLBjyf/MyJfPyYj40SH7//8l/FO2Af0yr/i72H8jWINXSMfBDt/ZXYwmiV2bgsqqGbrxPHkKfx6gTwGDBSQO+H+Te
SQgOGKoWSmeuiVJciRkNx7V8Wk44KfGpEi0jXuBgBGwHIGGVAFKesAtzmZ/XyleVyknj8dDSoTHUr4PzAIQjC9K6XIUBTd/9/bloTqPmxKs8OGIAyKV4QYJBT+0oRrwCMooj4VQ2Wa1lBc5LURH3bl7qhrmQ+ISFuiWcLi4Mop6CKdbTliapmDKXqpdlpIIVx31wfG9uli2yRY
vAPsM30rttMSoHPx9r/j1B6d5OlX3uTAUQAu6+6r3ByshTrSy+7H8gg3R08f2JdhRc3194AyeJtFHMe0IEESg5mC+MvXQeaHXYdnG17uFmk/X9mXENugxF4iyHzwCqWldhpEmdl+BJUGF/OOFd1qVcVT/RSyZpYHJ5s72ZMVELk99KuMrNQXf0DaanG7M0fhNDpKbtmk7GXqf9
w71SJ0YoHu+bTqT7ymS7NhK0gbedfxdXn9nKl3iK93o3Q0Mwemxl9kAaP/KIp927C0WRPSTaBpAGvaGF9cSyUKjh5vfbKs6D6mPRIGXdcfMriSPqgkHIRA6eb/E3gJ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8Mhu65sZMmOaS4D6grGBa4Vf1JHFh
cz2pTsGRXcKbs0GzR6+GH8unENhHEC6eKLUlpXmZF3+h0+DvfYs7gLVmH2BjEtAfbEgAigtzssgkULh9+PT87tm3L/xP+YxeY/mrZD4NJvtRt6lqKEXN7jPtwFw/SlNroueDCuEbYqgVy+9Uu+PNpELb0gvoF03cEDn/jcC0xMznxz84Zt1pJvevyy2McdnJ8Lskzuqas9Fk8Z
tMslYqLM2FkXZSh5+7h1djPub4RdNAO3NVqjtpp5ckZO76UCPnWA3OkpAy3buN1xr1ciBTXD+oItcUcyQik5NUsfCg6rWVnNAFvK6y6Lb4VM+LtkkRARZ+IeGRXPgYHrUrSLYGwwrX3xjdJkRrJYme+Ae2/vM/79///hc=')))));
?>
Function Calls
strrev | 3 |
gzinflate | 11 |
str_rot13 | 11 |
gzuncompress | 4 |
rawurldecode | 1 |
base64_decode | 18 |
Stats
MD5 | 8866645ecff5ea66ce05720a70ee05ce |
Eval Count | 16 |
Decode Time | 127 ms |