Skip to content

Commit

Permalink
fixed a small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aman566 committed Mar 13, 2020
1 parent 25c085e commit 3b50710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vuln/XSS_protection/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def conn(targ, port, timeout_sec, socks_proxy):

def xss_protection(target, port, timeout_sec, log_in_file, language, time_sleep,
thread_tmp_filename, socks_proxy, scan_id, scan_cmd):
regex = 'report='+'https?:\/\/(www\.)?[-a-zA-Z0-9]{1,256}\.[-a-zA-Z0-9]{1,6}'
regex = '1; report='+'https?:\/\/(www\.)?[-a-zA-Z0-9]{1,256}\.[-a-zA-Z0-9]{1,6}'
try:
s = conn(target, port, timeout_sec, socks_proxy)
if not s:
Expand Down

0 comments on commit 3b50710

Please sign in to comment.