diff options
| author | jerome <jerome@xlinfo.fr> | 2023-12-26 17:02:11 +0100 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2023-12-26 17:02:11 +0100 |
| commit | 86cdac0f22d7b80d7953f14d1b9b7556dc74a32c (patch) | |
| tree | ff5e96a133c75d7ccea4f09cf1dacfcabd79615e | |
| parent | a0226e643f9f47c9cb6a74c54c5e8be298639922 (diff) | |
| download | python-86cdac0f22d7b80d7953f14d1b9b7556dc74a32c.tar.gz python-86cdac0f22d7b80d7953f14d1b9b7556dc74a32c.zip | |
update webshell
| -rwxr-xr-x | html/cgi-bin/webshell.cgi | 17 |
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> +""") |
