Skip to content

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

Don't report RAW_RIR_DATA if the data is just saying there was no match (404).

smicallef6145877ade17
diff --git a/modules/sfp_arin.py b/modules/sfp_arin.py
index d49462c4..3958797f 100644
--- a/modules/sfp_arin.py
+++ b/modules/sfp_arin.py
@@ -83,7 +83,7 @@ class sfp_arin(SpiderFootPlugin):
head = {"Accept": "application/json"}
res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],
useragent=self.opts['_useragent'], headers=head)
- if res['content'] is not None:
+ if res['content'] is not None and res['code'] != "404":
self.memCache[url] = res
evt = SpiderFootEvent("RAW_RIR_DATA", res['content'], self.__name__,
self.currentEventSrc)