Merge pull request #510 from L1ghtn1ng/dev

Set the DB to be in the users ~/.local/share/theHarvester and bump version
This commit is contained in:
J.Townsend 2020-08-20 23:39:05 +01:00 committed by GitHub
commit 9127b6b934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -12,7 +12,7 @@
class Core:
@staticmethod
def version() -> str:
return '3.2.0dev5'
return '3.2.0dev6'
@staticmethod
def bing_key() -> str:

View file

@ -1,11 +1,17 @@
import aiosqlite
import datetime
import os
db_path = os.path.expanduser('~/.local/share/theHarvester')
if not os.path.isdir(db_path):
os.makedirs(db_path)
class StashManager:
def __init__(self):
self.db = "stash.sqlite"
self.db = os.path.join(db_path, 'stash.sqlite')
self.results = ""
self.totalresults = ""
self.latestscandomain = {}