Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

More responsive to stops.

Steve Micallef29655d529840
diff --git a/modules/sfp_dns.py b/modules/sfp_dns.py
index c37eebca..11e8065f 100644
--- a/modules/sfp_dns.py
+++ b/modules/sfp_dns.py
@@ -196,6 +196,9 @@ class sfp_dns(SpiderFootPlugin):
# Generate an event for the IP, then
# let the handling by this module take
# care of follow-up processing.
+ if self.checkForStop():
+ return None
+
self.processHost(ipaddr, parentEvent, False)
return None
@@ -210,6 +213,9 @@ class sfp_dns(SpiderFootPlugin):
addrs = self.resolveIP(eventData)
for addr in addrs:
+ if self.checkForStop():
+ return None
+
if self.getTarget().matches(addr):
self.processHost(addr, parentEvent, False)
else:
@@ -254,6 +260,9 @@ class sfp_dns(SpiderFootPlugin):
ev = self.processHost(sip, parentEventUp, affil)
for addr in addrs:
+ if self.checkForStop():
+ return None
+
if addr == sip:
continue
# IP Addresses should be linked to whatever provided the IP
diff --git a/modules/sfp_spider.py b/modules/sfp_spider.py
index e9b5ec7c..33482ef1 100644
--- a/modules/sfp_spider.py
+++ b/modules/sfp_spider.py
@@ -272,6 +272,9 @@ class sfp_spider(SpiderFootPlugin):
self.sf.error("Unable to fetch robots.txt and you've asked to abide by its contents.")
return None
+ if self.checkForStop():
+ return None
+
# First iteration we are starting with links found on the start page
# Iterations after that are based on links found on those pages,
# and so on..