forked from p34709852/monkey
approve ignoring certificates for CI
This commit is contained in:
parent
7e7ca954d3
commit
e69ff81e6f
|
@ -75,7 +75,7 @@ class DrupalExploiter(WebRCE):
|
||||||
response = requests.get(f'{url}?_format=hal_json',
|
response = requests.get(f'{url}?_format=hal_json',
|
||||||
json=payload,
|
json=payload,
|
||||||
headers={"Content-Type": "application/hal+json"},
|
headers={"Content-Type": "application/hal+json"},
|
||||||
verify=False)
|
verify=False) # noqa: DUO123
|
||||||
|
|
||||||
if is_response_cached(response):
|
if is_response_cached(response):
|
||||||
LOG.info(f'Checking if node {url} is vuln returned cache HIT, ignoring')
|
LOG.info(f'Checking if node {url} is vuln returned cache HIT, ignoring')
|
||||||
|
@ -92,7 +92,7 @@ class DrupalExploiter(WebRCE):
|
||||||
r = requests.get(f'{url}?_format=hal_json',
|
r = requests.get(f'{url}?_format=hal_json',
|
||||||
json=payload,
|
json=payload,
|
||||||
headers={"Content-Type": "application/hal+json"},
|
headers={"Content-Type": "application/hal+json"},
|
||||||
verify=False)
|
verify=False) # noqa: DUO123
|
||||||
|
|
||||||
if is_response_cached(r):
|
if is_response_cached(r):
|
||||||
LOG.info(f'Exploiting {url} returned cache HIT, may have failed')
|
LOG.info(f'Exploiting {url} returned cache HIT, may have failed')
|
||||||
|
@ -136,7 +136,7 @@ def find_exploitbale_article_ids(base_url: str, lower: int = 1, upper: int = 100
|
||||||
articles = set()
|
articles = set()
|
||||||
while lower < upper:
|
while lower < upper:
|
||||||
node_url = urljoin(base_url, str(lower))
|
node_url = urljoin(base_url, str(lower))
|
||||||
response = requests.get(node_url, verify=False)
|
response = requests.get(node_url, verify=False) # noqa: DUO123
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
if is_response_cached(response):
|
if is_response_cached(response):
|
||||||
LOG.info(f'Found a cached article at: {node_url}, skipping')
|
LOG.info(f'Found a cached article at: {node_url}, skipping')
|
||||||
|
|
Loading…
Reference in New Issue