SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Validate NETBLOCK_MEMBER using self.sf.validIpNetwork()
Brendan Coles48911036e815
diff --git a/modules/sfp_bgpview.py b/modules/sfp_bgpview.pyindex 89a1f368..03ff4e2d 100644--- a/modules/sfp_bgpview.py+++ b/modules/sfp_bgpview.py@@ -265,7 +265,9 @@ class sfp_bgpview(SpiderFootPlugin):self.sf.info("Netblock found: " + p + " (" + str(asn) + ")")evt = SpiderFootEvent("BGP_AS_MEMBER", str(asn), self.__name__, event)self.notifyListeners(evt)- evt = SpiderFootEvent("NETBLOCK_MEMBER", p, self.__name__, event)- self.notifyListeners(evt)++ if self.sf.validIpNetwork(p):+ evt = SpiderFootEvent("NETBLOCK_MEMBER", p, self.__name__, event)+ self.notifyListeners(evt)# End of sfp_bgpview classdiff --git a/modules/sfp_ripe.py b/modules/sfp_ripe.pyindex ae013748..bf653e51 100644--- a/modules/sfp_ripe.py+++ b/modules/sfp_ripe.py@@ -342,9 +342,10 @@ class sfp_ripe(SpiderFootPlugin):self.sf.debug("Could not identify BGP AS for " + prefix)return None- self.sf.info("Netblock found: " + prefix + "(" + asn + ")")- evt = SpiderFootEvent("NETBLOCK_MEMBER", prefix, self.__name__, event)- self.notifyListeners(evt)+ if self.sf.validIpNetwork(prefix):+ self.sf.info("Netblock found: " + prefix + "(" + asn + ")")+ evt = SpiderFootEvent("NETBLOCK_MEMBER", prefix, self.__name__, event)+ self.notifyListeners(evt)return None