SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Bug fix.
smicallefa779fac884ea
diff --git a/modules/sfp_ir.py b/modules/sfp_ir.pyindex 1d4093f8..981b32d6 100644--- a/modules/sfp_ir.py+++ b/modules/sfp_ir.py@@ -270,17 +270,22 @@ class sfp_ir(SpiderFootPlugin):# 2. Find all the netblocks owned by this ASself.nbreported[asn] = Truenetblocks = self.asNetblocks(asn)- for netblock in netblocks:- if netblock == prefix:- continue-- # Technically this netblock was identified via the AS, not- # the original IP event, so link it to asevt, not event.- evt = SpiderFootEvent("NETBLOCK", netblock, self.__name__, asevt)- self.notifyListeners(evt)+ if netblocks != None:+ for netblock in netblocks:+ if netblock == prefix:+ continue++ # Technically this netblock was identified via the AS, not+ # the original IP event, so link it to asevt, not event.+ evt = SpiderFootEvent("NETBLOCK", netblock,+ self.__name__, asevt)+ self.notifyListeners(evt)# 3. Find all the AS neighbors to this ASneighs = self.asNeighbours(asn)+ if neighs == None:+ return None+for nasn in neighs:ownerinfo = self.asOwnerInfo(nasn)ownertext = ''