Skip to content

Commit

Permalink
fix minor bug in bypass403
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Dec 23, 2023
1 parent 4c9ecb9 commit 803b053
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bbot/modules/bypass403.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,13 @@ async def do_checks(self, compare_helper, event, collapse_threshold):
headers = dict(sig[2])
else:
headers = None
match, reasons, reflection, subject_response = await compare_helper.compare(
sig[1], headers=headers, method=sig[0], allow_redirects=True
)
try:
match, reasons, reflection, subject_response = await compare_helper.compare(
sig[1], headers=headers, method=sig[0], allow_redirects=True
)
except HttpCompareError:
self.debug(e)
continue

# In some cases WAFs will respond with a 200 code which causes a false positive
if subject_response != None:
Expand Down

0 comments on commit 803b053

Please sign in to comment.