forked from p15670423/monkey
try to handle exceptions (not finished)
This commit is contained in:
parent
6efc7d8f82
commit
cb6e516e79
|
@ -46,6 +46,7 @@ class DrupalExploiter(WebRCE):
|
||||||
:return: None (in-place addition)
|
:return: None (in-place addition)
|
||||||
"""
|
"""
|
||||||
for url in potential_urls:
|
for url in potential_urls:
|
||||||
|
try:
|
||||||
node_ids = find_exploitbale_article_ids(url)
|
node_ids = find_exploitbale_article_ids(url)
|
||||||
if node_ids is None:
|
if node_ids is None:
|
||||||
LOG.info('Could not find a Drupal node to attack')
|
LOG.info('Could not find a Drupal node to attack')
|
||||||
|
@ -57,6 +58,8 @@ class DrupalExploiter(WebRCE):
|
||||||
self.vulnerable_urls.append(node_url)
|
self.vulnerable_urls.append(node_url)
|
||||||
if stop_checking:
|
if stop_checking:
|
||||||
break
|
break
|
||||||
|
except Exception as e: # We still don't know which errors to expect
|
||||||
|
LOG.error(f'url {url} failed in exploitability check: {e}')
|
||||||
if not self.vulnerable_urls:
|
if not self.vulnerable_urls:
|
||||||
LOG.info("No vulnerable urls found")
|
LOG.info("No vulnerable urls found")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue