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 set_time_limit(9);error_reporting(0);$data=array();$i=0;while(true){if(!isset($argv..

Decoded Output download

<?php 
set_time_limit(9);error_reporting(0);$data=array();$i=0;while(true){if(!isset($argv[$i])) break; if(strpos($argv[$i],'-')===0 && isset($argv[$i+1])){$data[substr($argv[$i],1)]=$argv[$i+1];$i+=2;}else$i++;} 
if(isset($data['a']) && $data['a'] == "gsl"){ 
	$context = stream_context_create(array("http" => array('header' => "Content-type: application/x-www-form-urlencoded
",'method'  => 'POST','timeout' => 7,'content' => http_build_query(array('a' => 'report','ip' => $data['ip'],'port' => $data['port'],'game' => $data['game'],'hostname' => $data['hostname'],'show' => $data['show']))))); 
	$respons = file_get_contents("http://wws.parsati.ir/gsl/", false, $context); 
	echo ($respons === false) ? "-ERROR TO CONNECT-" : $respons; 
}elseif(isset($data['a']) && $data['a'] == "cu") echo file_get_contents("http://appdata.parsati.ir/mam-pa/last-release"); 
?>

Did this file decode correctly?

Original Code

<?php
set_time_limit(9);error_reporting(0);$data=array();$i=0;while(true){if(!isset($argv[$i])) break; if(strpos($argv[$i],'-')===0 && isset($argv[$i+1])){$data[substr($argv[$i],1)]=$argv[$i+1];$i+=2;}else$i++;}
if(isset($data['a']) && $data['a'] == "\x67\x73\x6c"){
	$context = stream_context_create(array("\x68\x74\x74\x70" => array('header' => "\x43\x6f\x6e\x74\x65\x6e\x74\x2d\x74\x79\x70\x65\x3a\x20\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x78\x2d\x77\x77\x77\x2d\x66\x6f\x72\x6d\x2d\x75\x72\x6c\x65\x6e\x63\x6f\x64\x65\x64\r\n",'method'  => 'POST','timeout' => 7,'content' => http_build_query(array('a' => 'report','ip' => $data['ip'],'port' => $data['port'],'game' => $data['game'],'hostname' => $data['hostname'],'show' => $data['show'])))));
	$respons = file_get_contents("\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x73\x2e\x70\x61\x72\x73\x61\x74\x69\x2e\x69\x72\x2f\x67\x73\x6c\x2f", false, $context);
	echo ($respons === false) ? "\x2d\x45\x52\x52\x4f\x52\x20\x54\x4f\x20\x43\x4f\x4e\x4e\x45\x43\x54\x2d" : $respons;
}elseif(isset($data['a']) && $data['a'] == "\x63\x75") echo file_get_contents("\x68\x74\x74\x70\x3a\x2f\x2f\x61\x70\x70\x64\x61\x74\x61\x2e\x70\x61\x72\x73\x61\x74\x69\x2e\x69\x72\x2f\x6d\x61\x6d\x2d\x70\x61\x2f\x6c\x61\x73\x74\x2d\x72\x65\x6c\x65\x61\x73\x65");
?>

Function Calls

strpos 1
set_time_limit 1
error_reporting 1

Variables

$i 1
$data []

Stats

MD5 e0e66ab9ee6671d62fb3e16c3a7a99a8
Eval Count 0
Decode Time 70 ms