SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Option descriptions.
smicallef1d33a59b9dba
diff --git a/modules/sfp_dns.py b/modules/sfp_dns.pyindex 47a68bb7..15c30ca3 100644--- a/modules/sfp_dns.py+++ b/modules/sfp_dns.py@@ -33,6 +33,12 @@ class sfp_dns(SpiderFootPlugin):# more clues.}+ # Option descriptions+ optdescs = {+ 'resolveaffiliate': "Obtain IPs for confirmed affiliates.",+ 'reverselookup': "Obtain new URLs and more based on reverse-resolved IPs"+ }+# URL this instance is working onseedUrl = NonebaseDomain = None # calculated from the URL in setupdiff --git a/modules/sfp_googlesearch.py b/modules/sfp_googlesearch.pyindex 98dbf8cd..81601abc 100644--- a/modules/sfp_googlesearch.py+++ b/modules/sfp_googlesearch.py@@ -29,6 +29,13 @@ class sfp_googlesearch(SpiderFootPlugin):'pages': 20 # Number of google results pages to iterate}+ # Option descriptions+ optdescs = {+ 'useragent': "User-Agent string to use when fetching Google pages.",+ 'fetchlinks': "Fetch links found on the target domain-name?",+ 'pages': "Number of Google results pages to iterate through."+ }+# URL this instance is working onseedUrl = NonebaseDomain = None # calculated from the URL in setupdiff --git a/modules/sfp_mail.py b/modules/sfp_mail.pyindex 96a94234..ee2b1dfc 100644--- a/modules/sfp_mail.py+++ b/modules/sfp_mail.py@@ -26,10 +26,17 @@ class sfp_mail(SpiderFootPlugin):'__debug': True,'__debugfilter': '',# options specific to this module- 'basedomainonly': False, # Only capture e-mail addrs on the base domain+ 'includesubdomains': False, # Include e-mail addresses on sub-domains of+ # the target domain'includeexternal': False # Include e-mail addrs on external domains}+ # Option descriptions+ optdescs = {+ 'includesubdomains': "Report e-mail addresses on a sub-domain of the target base domain-name?",+ 'includeexternal': "Report e-mail addresses not on the target base domain-name?"+ }+# URL this instance is working onseedUrl = NonebaseDomain = None # calculated from the URL in setup@@ -69,7 +76,7 @@ class sfp_mail(SpiderFootPlugin):self.results[match] = True# Include e-mail addresses on sub-domains within the domain?- if self.opts['basedomainonly']:+ if not self.opts['includesubdomains']:if not match.endswith('@' + self.baseDomain):sf.debug("Ignoring e-mail address on a sub-domain: " + match)continuediff --git a/modules/sfp_portscan_basic.py b/modules/sfp_portscan_basic.pyindex 863b0cfa..63f5027f 100644--- a/modules/sfp_portscan_basic.py+++ b/modules/sfp_portscan_basic.py@@ -1,11 +1,12 @@#-------------------------------------------------------------------------------# Name: sfp_portscan_basic-# Purpose: SpiderFoot plug-in for gathering IP addresses from sub-domains+# Purpose: SpiderFoot plug-in for performing a basic port scan of IP+# addresses identified.## Author: Steve Micallef <[email protected]>#-# Created: 16/09/2012-# Copyright: (c) Steve Micallef 2012+# Created: 20/02/2013+# Copyright: (c) Steve Micallef 2013# Licence: GPL#-------------------------------------------------------------------------------@@ -29,7 +30,14 @@ class sfp_portscan_basic(SpiderFootPlugin):'ports': [ 21, 22, 23, 25, 53, 79, 80, 81, 88, 110, 111,113, 119, 123, 137, 138, 139, 143, 161, 179,389, 443, 445, 465, 512, 513, 514, 515, 631, 636,- 990, 992, 993, 995, 1080, 8080, 8888, 9000 ]+ 990, 992, 993, 995, 1080, 8080, 8888, 9000 ],+ 'timeout': 15+ }++ # Option descriptions+ optdescs = {+ 'ports': "The TCP ports to scan.",+ 'timeout': "Seconds before giving up on a port."}# URL this instance is working on@@ -68,13 +76,18 @@ class sfp_portscan_basic(SpiderFootPlugin):self.results[eventData] = Truefor port in self.opts['ports']:+ if self.checkForStop():+ return None+sf.debug("Checking port: " + str(port) + " against " + eventData)- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)- res = s.connect_ex((eventData, port))- if (res == 0):+ try:+ sock = socket.create_connection((eventData, port), self.opts['timeout'])sf.debug("TCP Port " + str(port) + " found to be OPEN.")self.notifyListeners("TCP_PORT_OPEN", eventData, str(port))- s.close()+ sock.close()+ except Exception as e:+ sf.debug("Unable to connect to " + eventData + " on port " + str(port) + \+ ": " + str(e))return Nonediff --git a/modules/sfp_similar.py b/modules/sfp_similar.pyindex d6746a8b..c3e4c9f2 100644--- a/modules/sfp_similar.py+++ b/modules/sfp_similar.py@@ -55,6 +55,14 @@ class sfp_similar(SpiderFootPlugin):'activeonly': False # Only report domains that have content (try to fetch the page)}+ # Option descriptions+ optdescs = {+ 'useragent': "User-Agent string to use when fetching pages from providers.",+ 'source': "Provider to use: 'whois', 'domaintools', 'namedroppers' or 'ALL'.",+ 'method': "Pattern search method to use: 'left,right', 'left' or 'right'. Does not apply when searching whois.",+ 'activeonly': "Only report domains that have content (try to fetch the page)?"+ }+# Internal results trackingresults = list()diff --git a/modules/sfp_spider.py b/modules/sfp_spider.pyindex ff68aecb..2705ea2b 100644--- a/modules/sfp_spider.py+++ b/modules/sfp_spider.py@@ -39,6 +39,18 @@ class sfp_spider(SpiderFootPlugin):'nosubs': False # Should links to subdomains be ignored?}+ # Option descriptions+ optdescs = {+ 'robotsonly': "Only follow links specified by robots.txt?",+ 'pause': "Number of seconds to pause between fetches.",+ 'maxpages': "Maximum number of pages to fetch.",+ 'maxlevels': "Maximum levels to traverse within a site.",+ 'filterfiles': "File extensions to ignore (don't fetch them.)",+ 'filterusers': "Skip spidering of /~user directories?",+ 'noexternal': "Skip spidering of external sites? (**dangerous if False**)",+ 'nosubs': "Skip spidering of subdomains of the target?"+ }+# If using robots.txt, this will get populated with filter rulesrobotsRules = dict()diff --git a/modules/sfp_stor_db.py b/modules/sfp_stor_db.pyindex 47f84359..b0f274c6 100644--- a/modules/sfp_stor_db.py+++ b/modules/sfp_stor_db.py@@ -29,6 +29,11 @@ class sfp_stor_db(SpiderFootPlugin):'maxstorage': 1024 # max bytes for any piece of info stored (0 = unlimited)}+ # Option descriptions+ optdescs = {+ 'maxstorage': "Maximum bytes to store for any piece of information retreived."+ }+# URL this instance is working onseedUrl = Nonediff --git a/modules/sfp_stor_print.py b/modules/sfp_stor_print.pyindex 96b30006..21e17275 100644--- a/modules/sfp_stor_print.py+++ b/modules/sfp_stor_print.py@@ -26,6 +26,11 @@ class sfp_stor_print(SpiderFootPlugin):'datasize': 100 # Number of characters to print from event data}+ # Option descriptions+ optdescs = {+ "datasize": "Maximum number of bytes to print on the screen for debug."+ }+# URL this instance is working onseedUrl = Nonediff --git a/modules/sfp_template.py b/modules/sfp_template.pyindex d46eec22..a6c939ce 100644--- a/modules/sfp_template.py+++ b/modules/sfp_template.py@@ -16,6 +16,8 @@ from sflib import SpiderFoot, SpiderFootPlugin# SpiderFoot standard lib (must be initialized in setup)sf = None+# Replace XXX with the name of your module. The comment below it will+# end up in the UI as the module description to the end-user.class sfp_XXX(SpiderFootPlugin):"""About me here.."""@@ -26,6 +28,13 @@ class sfp_XXX(SpiderFootPlugin):'__debugfilter': ''}+ # Option descriptions+ optdescs = {+ # For each option in opts you should have a key/value pair here+ # describing it. It will end up in the UI to explain the option+ # to the end-user.+ }+# Be sure to completely clear any class variables in setup()# or you run the risk of data persisting between scan runs.diff --git a/modules/sfp_xref.py b/modules/sfp_xref.pyindex f97f07f6..70da851c 100644--- a/modules/sfp_xref.py+++ b/modules/sfp_xref.py@@ -29,9 +29,14 @@ class sfp_xref(SpiderFootPlugin):'__debugfilter': '','forcebase': True, # Check the base URL for a link back to the seed# domain in order to be considered a valid xref- 'checkbase': True, # Only check the base URL for a relationship if+ 'checkbase': True # Only check the base URL for a relationship if# the link provided contains no xref- 'checksimilar': True # Check similar domains for an xref+ }++ # Option descriptions+ optdescs = {+ "forcebase": "Require the base domain of an external URL for affiliation.",+ "checkbase": "Check the base domain of a URL for affiliation."}# Internal results tracking@@ -59,10 +64,7 @@ class sfp_xref(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- arr = list('URL')- if self.opts['checksimilar']:- arr.append('SIMILARDOMAIN')- return arr+ return ['URL', 'SIMILARDOMAIN']# Handle events sent to this module# In this module's case, eventData will be the URL or a domain which