Skip to content

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

Option to ignore affiliates.

smicallef9babd9a176c9
diff --git a/modules/sfp_xforce.py b/modules/sfp_xforce.py
index 70362fea..17a38d91 100644
--- a/modules/sfp_xforce.py
+++ b/modules/sfp_xforce.py
@@ -30,7 +30,8 @@ class sfp_xforce(SpiderFootPlugin):
'maxnetblock': 24,
'subnetlookup': True,
'maxsubnet': 24,
- 'maxcohost': 100
+ 'maxcohost': 100,
+ 'checkaffiliates': True
}
# Option descriptions
@@ -42,7 +43,8 @@ class sfp_xforce(SpiderFootPlugin):
'maxnetblock': "If looking up owned netblocks, the maximum netblock size to look up all IPs within (CIDR value, 24 = /24, 16 = /16, etc.)",
'subnetlookup': "Look up all IPs on subnets which your target is a part of for blacklisting?",
'maxsubnet': "If looking up subnets, the maximum subnet size to look up all the IPs within (CIDR value, 24 = /24, 16 = /16, etc.)",
- 'maxcohost': "Stop reporting co-hosted sites after this many are found, as it would likely indicate web hosting."
+ 'maxcohost': "Stop reporting co-hosted sites after this many are found, as it would likely indicate web hosting.",
+ 'checkaffiliates': "Apply checks to affiliates?"
}
# Be sure to completely clear any class variables in setup()
@@ -153,6 +155,9 @@ class sfp_xforce(SpiderFootPlugin):
str(self.opts['maxsubnet']))
return None
+ if eventName.startswith('AFFILIATE_') and not self.opts.get('checkaffiliates', False):
+ return None
+
qrylist = list()
if eventName.startswith("NETBLOCK_"):
for ipaddr in IPNetwork(eventData):