Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Alphabetize imports and add comments for try/except in inject_payload…
Browse files Browse the repository at this point in the history
…() request_delay block
  • Loading branch information
shogunlab committed May 26, 2017
1 parent 966ad65 commit 59ca785
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shuriken_xss.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def inject_payload(self, payload, link, request_delay, screenshot_target):
injected_link = link.replace("{xss}", payload)

# If user added a delay, wait that amount of time before requesting
# Also, if user wants to interrupt/exit during wait time,
# let them log before leaving
if request_delay is not None:
try:
time.sleep(float(request_delay))
Expand Down Expand Up @@ -176,7 +178,7 @@ def parse_args(self):

arguments = parser.parse_args()

# Check for existence of {xss} injection point in URL string
# Check for existence of '{xss}' injection point in URL string
if "{xss}" not in arguments.URL:
print Color.RED + "Please provide the '{xss}' placeholder for" + \
" injection point in the URL" + Color.END
Expand Down

0 comments on commit 59ca785

Please sign in to comment.