SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Additional option for Robtex.
Stevec35a320e0524
diff --git a/modules/sfp_robtex.py b/modules/sfp_robtex.pyindex 84d89017..516edcdd 100644--- a/modules/sfp_robtex.py+++ b/modules/sfp_robtex.py@@ -24,22 +24,22 @@ class sfp_robtex(SpiderFootPlugin):# Default optionsopts = {- 'cohostsamedomain': False,'verify': True,'netblocklookup': True,'maxnetblock': 24,'subnetlookup': True,- 'maxsubnet': 24+ 'maxsubnet': 24,+ 'cohostsamedomain': False}# Option descriptionsoptdescs = {- 'cohostsamedomain': "Treat co-hosted sites on the same target domain as co-hosting?",'verify': "Verify co-hosts are valid by checking if they still resolve to the shared IP.",'netblocklookup': "Look up all IPs on netblocks deemed to be owned by your target for possible co-hosts on the same target subdomain/domain?",'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 identifying co-hosts?",- 'maxsubnet': "If looking up subnets, the maximum subnet size to look up all the IPs within (CIDR value, 24 = /24, 16 = /16, etc.)"+ 'maxsubnet': "If looking up subnets, the maximum subnet size to look up all the IPs within (CIDR value, 24 = /24, 16 = /16, etc.)",+ 'cohostsamedomain': "Treat co-hosted sites on the same target domain as co-hosting?"}results = list()@@ -153,6 +153,13 @@ class sfp_robtex(SpiderFootPlugin):if len(data.get('pas')) > 0:for r in data.get('pas'):+ if 'o' not in r:+ continue+ if not self.opts['cohostsamedomain']:+ if self.getTarget().matches(r['o'], includeParents=True):+ self.sf.debug("Skipping " + r['o'] + " because it is on the same domain.")+ continue+if self.opts['verify'] and not self.validateIP(r['o'], ip):self.sf.debug("Host no longer resolves to our IP.")continue