From 9f1c9a418d2907be1804a400cc2b6c6a2cf1121e Mon Sep 17 00:00:00 2001 From: L1ghtn1ng Date: Thu, 20 Aug 2020 21:46:23 +0100 Subject: [PATCH] Set the DB to be in the users ~/.local/share/theHarvester and bump version --- theHarvester/lib/core.py | 2 +- theHarvester/lib/stash.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/theHarvester/lib/core.py b/theHarvester/lib/core.py index f54e9c73..242eea96 100644 --- a/theHarvester/lib/core.py +++ b/theHarvester/lib/core.py @@ -12,7 +12,7 @@ class Core: @staticmethod def version() -> str: - return '3.2.0dev5' + return '3.2.0dev6' @staticmethod def bing_key() -> str: diff --git a/theHarvester/lib/stash.py b/theHarvester/lib/stash.py index c5ae21a4..2a8ed66d 100644 --- a/theHarvester/lib/stash.py +++ b/theHarvester/lib/stash.py @@ -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 = {}