Skip to content

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

Fix issue #16.

smicallefdfa44d30047d
diff --git a/modules/sfp_spider.py b/modules/sfp_spider.py
index d13bb548..b5d5e22d 100644
--- a/modules/sfp_spider.py
+++ b/modules/sfp_spider.py
@@ -31,7 +31,8 @@ class sfp_spider(SpiderFootPlugin):
'start': [ 'http://', 'https://' ],
'filterfiles': ['png','gif','jpg','jpeg','tiff', 'tif', 'js', 'css', 'tar',
'pdf','tif','ico','flv', 'mp4', 'mp3', 'avi', 'mpg', 'gz',
- 'mpeg', 'iso', 'dat', 'mov', 'swf', 'rar', 'exe', 'zip'],
+ 'mpeg', 'iso', 'dat', 'mov', 'swf', 'rar', 'exe', 'zip',
+ 'bin', 'bz2'],
'filterusers': True, # Don't follow /~user directories
'noexternal': True, # Should links to external sites be ignored? (**dangerous if False**)
'nosubs': False, # Should links to subdomains be ignored?
@@ -156,7 +157,7 @@ class sfp_spider(SpiderFootPlugin):
continue
# Filter out certain file types (if user chooses to)
- checkExts = lambda ext: '.' + ext.lower() in link.lower()
+ checkExts = lambda ext: link.lower().endswith('.' + ext.lower())
if filter(checkExts, self.opts['filterfiles']):
sf.debug('Ignoring filtered extension: ' + link)
continue