SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfp_flickr: set default values for get()
bcoles06c82e8d0945
diff --git a/modules/sfp_flickr.py b/modules/sfp_flickr.pyindex f29acf6b..c6025fa9 100644--- a/modules/sfp_flickr.py+++ b/modules/sfp_flickr.py@@ -158,20 +158,20 @@ class sfp_flickr(SpiderFootPlugin):return None# Calculate number of pages to retrieve- result_pages = int(photos.get('pages'))+ result_pages = int(photos.get('pages', 0))if result_pages < pages:pages = result_pagesif 'max_allowed_pages' in photos:- allowed_pages = int(photos.get('max_allowed_pages'))+ allowed_pages = int(photos.get('max_allowed_pages', 0))if pages > allowed_pages:pages = allowed_pagesself.sf.info("Parsing page " + str(page) + " of " + str(pages))# Extract data- for photo in photos.get('photo'):+ for photo in photos.get('photo', list()):emails = self.sf.parseEmails(str(photo))for email in emails:if email in self.results: