From 5eba10f98c58649659b04a1cfe54218d3d2c3cce Mon Sep 17 00:00:00 2001 From: YSSVirus <56813561+YSSVirus@users.noreply.github.com> Date: Wed, 4 May 2022 12:14:46 -0700 Subject: [PATCH 1/2] Updated oralyzer.py I had to add the proper imports for collections. This is shown in line 18 and 19. --- oralyzer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oralyzer.py b/oralyzer.py index 007c81a..3b62efb 100755 --- a/oralyzer.py +++ b/oralyzer.py @@ -15,6 +15,8 @@ from core.crlf import crlfScan from core.others import good,bad,info,requester,multitest,urlparse from bs4 import BeautifulSoup +import collections +collections.Callable = collections.abc.Callable warnings.filterwarnings('ignore') ssl._create_default_https_context = ssl._create_unverified_context #----------------------------------------------------------------------------------# From 16db0eb841f854f8f2cf7d5692d5e9d66c4dc280 Mon Sep 17 00:00:00 2001 From: YSSVirus <56813561+YSSVirus@users.noreply.github.com> Date: Sun, 5 Mar 2023 15:31:34 -0500 Subject: [PATCH 2/2] updated the script I fixed the issue with if it reached a 200 staatus it would error along with a few other minor issues --- oralyzer.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/oralyzer.py b/oralyzer.py index 3b62efb..3684e56 100755 --- a/oralyzer.py +++ b/oralyzer.py @@ -64,18 +64,23 @@ def analyze(url): break #--------------------------------------------------------# def request(URI,params=''): + page = '' try: page = requester(URI,args.proxy,params) except requests.exceptions.Timeout: print("[\033[91mTimeout\033[00m] %s" % url) - return True + except requests.exceptions.ConnectionError: print("%s Connection Error" % bad) - return True - funcBreak = check(page, page.request.url) + if page: + funcBreak = check(page, page.request.url) + else: + return + if funcBreak: - return True + return True + #--------------------------------------------------------------------# def check(respOBJ,finalURL): payload = "|".join([re.escape(i) for i in file]) @@ -240,7 +245,8 @@ def check(respOBJ,finalURL): elif "http-equiv=\"refresh\"" in str(respOBJ.text) and not metaTagSearch: print("%s The page is only getting refreshed" % bad) return True - + else: + print("%s No redirect" % bad) #-------------------------------------------------------------------------------------# elif respOBJ.status_code in errorCodes: print("%s %s [\033[91m%s\033[00m]" % (bad,finalURL,respOBJ.status_code))