Skip to content

Commit

Permalink
Trivial update
Browse files Browse the repository at this point in the history
  • Loading branch information
stasinopoulos committed Jan 1, 2023
1 parent 30d4837 commit 8206873
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
12 changes: 6 additions & 6 deletions src/core/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ def init_request(url):
Get the URL response.
"""
def url_response(url):
if settings.INIT_TEST == True:
info_msg = "Testing connection to the target URL. "
print(settings.print_info_msg(info_msg))
# Check if http / https
url = checks.check_http_s(url)
# Check if defined Tor (--tor option).
Expand All @@ -284,12 +287,6 @@ def url_response(url):
request = init_request(url)
if settings.CHECK_INTERNET:
settings.CHECK_INTERNET = False
if settings.INIT_TEST == True:
info_msg = "Testing connection to the target URL. "
sys.stdout.write(settings.print_info_msg(info_msg))
sys.stdout.flush()
if settings.VERBOSITY_LEVEL >= 2:
print(settings.SINGLE_WHITESPACE)
response = examine_request(request, url)
# Check for URL redirection
if not menu.options.ignore_redirects:
Expand Down Expand Up @@ -938,6 +935,9 @@ def main(filename, url):
pass
elif message in settings.CHOICE_QUIT:
raise SystemExit()

if url_num == len(clean_output_href):
raise SystemExit()

except KeyboardInterrupt:
try:
Expand Down
6 changes: 0 additions & 6 deletions src/core/requests/headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ def https_open(self, req):
settings.VALID_URL = True
if not settings.CHECK_INTERNET:
settings.INIT_TEST = False
if settings.VERBOSITY_LEVEL < 2:
print(settings.SINGLE_WHITESPACE)

except ValueError as err:
if settings.VERBOSITY_LEVEL < 2:
Expand All @@ -187,10 +185,6 @@ def https_open(self, req):
raise SystemExit()

except _urllib.error.HTTPError as err_msg:
if settings.TOTAL_OF_REQUESTS == 1 and settings.VERBOSITY_LEVEL < 2:
if (settings.CRAWLING and settings.CRAWLED_URLS_NUM != 0 and settings.CRAWLED_SKIPPED_URLS_NUM != 0) or \
not settings.CRAWLING:
print(settings.SINGLE_WHITESPACE)
if settings.UNAUTHORIZED_ERROR in str(err_msg):
settings.UNAUTHORIZED = unauthorized = True
settings.MAX_RETRIES = settings.TOTAL_OF_REQUESTS
Expand Down
2 changes: 1 addition & 1 deletion src/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def sys_argv_errors():
DESCRIPTION = "The command injection exploiter"
AUTHOR = "Anastasios Stasinopoulos"
VERSION_NUM = "3.7"
REVISION = "25"
REVISION = "26"
STABLE_RELEASE = False
VERSION = "v"
if STABLE_RELEASE:
Expand Down

0 comments on commit 8206873

Please sign in to comment.