SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Handle empty results.
smicallef98f0b4abcfce
diff --git a/modules/sfp_numpi.py b/modules/sfp_numpi.pyindex 52b4006f..4a3d8a55 100644--- a/modules/sfp_numpi.py+++ b/modules/sfp_numpi.py@@ -25,13 +25,13 @@ class sfp_numpi(SpiderFootPlugin):optdescs = {}- results = dict()+ results = NoneerrorState = Falsedef setup(self, sfc, userOpts=dict()):self.sf = sfcself.__dataSource__ = 'numpi'- self.results = dict()+ self.results = self.tempStorage()self.errorState = Falsefor opt in userOpts.keys():@@ -63,7 +63,7 @@ class sfp_numpi(SpiderFootPlugin):table = re.findall(r'<table id="body_in_phone_info">(.+?)</table>',res['content'], re.MULTILINE | re.DOTALL)- if table is None:+ if not table:return Nonename_html = re.findall(r'<div class="body_in_phone_id">(.+?)</div>',@@ -71,7 +71,7 @@ class sfp_numpi(SpiderFootPlugin):data = dict()- if name_html is not None:+ if name_html:name = name_html[0].strip()if len(name) < 100: