From 803b0535d3147caa10cf2e561bef901fecf55b0e Mon Sep 17 00:00:00 2001 From: TheTechromancer Date: Sat, 23 Dec 2023 00:03:22 -0500 Subject: [PATCH 1/2] fix minor bug in bypass403 --- bbot/modules/bypass403.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bbot/modules/bypass403.py b/bbot/modules/bypass403.py index 98cffd58a..cc5eda64c 100644 --- a/bbot/modules/bypass403.py +++ b/bbot/modules/bypass403.py @@ -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: From 7e1d19d3841802d3b82bdaa3559bdf9154f918e7 Mon Sep 17 00:00:00 2001 From: TheTechromancer Date: Sat, 23 Dec 2023 00:21:36 -0500 Subject: [PATCH 2/2] flaked --- bbot/modules/bypass403.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbot/modules/bypass403.py b/bbot/modules/bypass403.py index cc5eda64c..182f4b4db 100644 --- a/bbot/modules/bypass403.py +++ b/bbot/modules/bypass403.py @@ -94,7 +94,7 @@ async def do_checks(self, compare_helper, event, collapse_threshold): match, reasons, reflection, subject_response = await compare_helper.compare( sig[1], headers=headers, method=sig[0], allow_redirects=True ) - except HttpCompareError: + except HttpCompareError as e: self.debug(e) continue