SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
spiderfoot: move dicts to spiderfoot/dicts/ (#1209)
bcoles41e05459b914
diff --git a/modules/sfp_dnsbrute.py b/modules/sfp_dnsbrute.pyindex 9dd02753..465ae897 100644--- a/modules/sfp_dnsbrute.py+++ b/modules/sfp_dnsbrute.py@@ -64,9 +64,10 @@ class sfp_dnsbrute(SpiderFootPlugin):for opt in list(userOpts.keys()):self.opts[opt] = userOpts[opt]+ dicts_dir = f"{self.sf.myPath()}/spiderfoot/dicts/"cslines = list()if self.opts['commons']:- cs = open(self.sf.myPath() + "/dicts/subdomains.txt", 'r')+ cs = open(f"{dicts_dir}/subdomains.txt", 'r')cslines = cs.readlines()for s in cslines:s = s.strip()@@ -74,7 +75,7 @@ class sfp_dnsbrute(SpiderFootPlugin):ttlines = list()if self.opts['top10000']:- tt = open(self.sf.myPath() + "/dicts/subdomains-10000.txt", 'r')+ tt = open(f"{dicts_dir}/subdomains-10000.txt", 'r')ttlines = tt.readlines()for s in ttlines:s = s.strip()diff --git a/sflib.py b/sflib.pyindex 6c8ca369..5a0a6dc4 100644--- a/sflib.py+++ b/sflib.py@@ -1160,7 +1160,7 @@ class SpiderFoot:for d in dicts:try:- with io.open(self.myPath() + "/dicts/ispell/" + d + ".dict", 'r', encoding='utf8', errors='ignore') as wdct:+ with io.open(f"{self.myPath()}/spiderfoot/dicts/ispell/{d}.dict", 'r', encoding='utf8', errors='ignore') as wdct:dlines = wdct.readlines()except BaseException as e:self.debug(f"Could not read dictionary: {e}")@@ -1185,7 +1185,7 @@ class SpiderFoot:for d in dicts:try:- wdct = open(self.myPath() + "/dicts/ispell/" + d + ".dict", 'r')+ wdct = open(f"{self.myPath()}/spiderfoot/dicts/ispell/{d}.dict", 'r')dlines = wdct.readlines()wdct.close()except BaseException as e:diff --git a/spiderfoot/dicts/__init__.py b/spiderfoot/dicts/__init__.pynew file mode 100644index 00000000..e69de29bdiff --git a/dicts/ispell/LICENSE b/spiderfoot/dicts/ispell/LICENSEsimilarity index 100%rename from dicts/ispell/LICENSErename to spiderfoot/dicts/ispell/LICENSEdiff --git a/spiderfoot/dicts/ispell/__init__.py b/spiderfoot/dicts/ispell/__init__.pynew file mode 100644index 00000000..e69de29bdiff --git a/dicts/ispell/english.dict b/spiderfoot/dicts/ispell/english.dictsimilarity index 100%rename from dicts/ispell/english.dictrename to spiderfoot/dicts/ispell/english.dictdiff --git a/dicts/ispell/french.dict b/spiderfoot/dicts/ispell/french.dictsimilarity index 100%rename from dicts/ispell/french.dictrename to spiderfoot/dicts/ispell/french.dictdiff --git a/dicts/ispell/german.dict b/spiderfoot/dicts/ispell/german.dictsimilarity index 100%rename from dicts/ispell/german.dictrename to spiderfoot/dicts/ispell/german.dictdiff --git a/dicts/ispell/names.dict b/spiderfoot/dicts/ispell/names.dictsimilarity index 100%rename from dicts/ispell/names.dictrename to spiderfoot/dicts/ispell/names.dictdiff --git a/dicts/ispell/spanish.dict b/spiderfoot/dicts/ispell/spanish.dictsimilarity index 100%rename from dicts/ispell/spanish.dictrename to spiderfoot/dicts/ispell/spanish.dictdiff --git a/dicts/subdomains-10000.txt b/spiderfoot/dicts/subdomains-10000.txtsimilarity index 100%rename from dicts/subdomains-10000.txtrename to spiderfoot/dicts/subdomains-10000.txtdiff --git a/dicts/subdomains.txt b/spiderfoot/dicts/subdomains.txtsimilarity index 100%rename from dicts/subdomains.txtrename to spiderfoot/dicts/subdomains.txt