Skip to content

Commit

Permalink
Update scan.py
Browse files Browse the repository at this point in the history
  • Loading branch information
karthi-the-hacker authored May 29, 2024
1 parent a0946e6 commit d8defb2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cve201811784/includes/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ def cvescan(url, output):
response = session.get(
fullurl, verify=False, headers=const.Data.rheaders, allow_redirects=False, timeout=5)
print(f'Checking ===> {fullurl}')

if response.status_code >= 301 and 'Location' in response.headers and f"cappriciosec.com" in response.headers['Location']:
location = response.headers.get('location', None)
parsed_url = urlparse(location)
domain = parsed_url.netloc
domain = domain.decode('utf-8') if isinstance(domain, bytes) else domain
if response.status_code >= 301 and 'Location' in response.headers and f"cappriciosec.com" in response.headers['Location'] and domain is not None and 'cappriciosec.com' in domain:
outputprint = (
f"\n{const.Colors.RED}💸[Vulnerable]{const.Colors.RESET} ======> "
f"{const.Colors.BLUE}{url}{const.Colors.RESET} \n"
Expand Down

0 comments on commit d8defb2

Please sign in to comment.