Skip to content

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

Bug fixes, flexible google searches.

smicallefc3c99d7a3467
diff --git a/modules/sfp_googlesearch.py b/modules/sfp_googlesearch.py
index 1b0804e9..54c179e4 100644
--- a/modules/sfp_googlesearch.py
+++ b/modules/sfp_googlesearch.py
@@ -24,7 +24,8 @@ class sfp_googlesearch(SpiderFootPlugin):
'_debug': True,
'_debugfilter': '',
'_useragent': 'Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101 Firefox/11.0',
- 'fetchlinks': True # Should we fetch links on the base domain?
+ 'fetchlinks': True, # Should we fetch links on the base domain?
+ 'pages': 20 # Number of google results pages to iterate
}
# URL this instance is working on
@@ -51,7 +52,7 @@ class sfp_googlesearch(SpiderFootPlugin):
def start(self):
# Sites hosted on the domain
- pages = sf.googleIterate("site:" + self.baseDomain)
+ pages = sf.googleIterate("site:" + self.baseDomain, dict(limit=self.opts['pages']))
for page in pages.keys():
if page in results:
continue
diff --git a/modules/sfp_similar.py b/modules/sfp_similar.py
index 54ca1acb..da535502 100644
--- a/modules/sfp_similar.py
+++ b/modules/sfp_similar.py
@@ -49,8 +49,8 @@ class sfp_similar(SpiderFootPlugin):
# Domaintools will 403 you without a browser-like useragent
'_useragent': 'Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101 Firefox/11.0',
'source': 'ALL', # whois, domaintools, namedroppers or ALL
- 'method': 'left,right', # left and/or right (doesn't apply to whois)
- 'activeonly': True # Only report domains that have content (try to fetch the page)
+ 'method': 'left,right', # left and/or right (doesn't apply to whois.com)
+ 'activeonly': False # Only report domains that have content (try to fetch the page)
}
# Internal results tracking
diff --git a/modules/sfp_websvr.py b/modules/sfp_websvr.py
index 5615c931..2036cefe 100644
--- a/modules/sfp_websvr.py
+++ b/modules/sfp_websvr.py
@@ -60,7 +60,7 @@ class sfp_websvr(SpiderFootPlugin):
# banners and therefore classifying them further (type and version,
# possibly OS. This could also trigger additional tests, such as 404s
# and other errors to see what the header looks like.
- if sf.urlBaseDom(eventSource) == self.baseDomain:
+ if sf.urlBaseDom(eventSource) == self.baseDomain and eventData.has_key('server'):
self.notifyListeners("WEBSERVER_BANNER", eventSource, eventData['Server'])
sf.debug("Found web server: " + eventData['Server'] + " (" + eventSource + ")")
diff --git a/sf.py b/sf.py
index b549595c..2dacae8a 100755
--- a/sf.py
+++ b/sf.py
@@ -40,7 +40,7 @@ moduleConfig = {
'enabled': True
},
'sfp_mail': {
- 'enabled': False
+ 'enabled': True
},
'sfp_dns': {
'enabled': True
@@ -55,7 +55,7 @@ moduleConfig = {
'enabled': True
},
'sfp_xref': {
- 'enabled': False
+ 'enabled': True
},
'sfp_similar': {
'enabled': False
@@ -64,7 +64,7 @@ moduleConfig = {
'enabled': True
},
'sfp_googlesearch': {
- 'enabled': False
+ 'enabled': True
}
}
diff --git a/sflib.py b/sflib.py
index 0f8571c4..626d6360 100644
--- a/sflib.py
+++ b/sflib.py
@@ -235,7 +235,7 @@ class SpiderFoot:
# results based on options supplied. Will return a dictionary of all pages
# fetched and their contents {page => content}.
# Options accepted:
- # limit: number of pages before returning, default is 10
+ # limit: number of search result pages before returning, default is 10
# nopause: don't randomly pause between fetches
def googleIterate(self, searchString, opts=dict()):
limit = 10