Skip to content

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

Bug fix

root77e3acc5f924
diff --git a/modules/sfp_wikileaks.py b/modules/sfp_wikileaks.py
index 1d7caaa9..00c7d908 100644
--- a/modules/sfp_wikileaks.py
+++ b/modules/sfp_wikileaks.py
@@ -98,6 +98,9 @@ class sfp_wikileaks(SpiderFootPlugin):
keepGoing = True
page = 0
while keepGoing:
+ if not res['content']:
+ break
+
if "page=" not in res['content']:
keepGoing = False
@@ -134,6 +137,9 @@ class sfp_wikileaks(SpiderFootPlugin):
external + "&new_search=True&order_by=most_relevant&page=" + \
str(page) + "#results"
res = self.sf.fetchUrl(wlurl)
+ if not res['content']:
+ break
+
# Fetch the paste site content
links = dict()
p = self.sf.parseLinks(wlurl, res['content'], "wikileaks.org")