mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-11 18:03:10 +08:00
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:
commit
9127b6b934
2 changed files with 8 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
|||
class Core:
|
||||
@staticmethod
|
||||
def version() -> str:
|
||||
return '3.2.0dev5'
|
||||
return '3.2.0dev6'
|
||||
|
||||
@staticmethod
|
||||
def bing_key() -> str:
|
||||
|
|
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in a new issue