mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-22 16:26:34 +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
|
@ -12,7 +12,7 @@
|
||||||
class Core:
|
class Core:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def version() -> str:
|
def version() -> str:
|
||||||
return '3.2.0dev5'
|
return '3.2.0dev6'
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def bing_key() -> str:
|
def bing_key() -> str:
|
||||||
|
|
|
@ -1,11 +1,17 @@
|
||||||
import aiosqlite
|
import aiosqlite
|
||||||
import datetime
|
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:
|
class StashManager:
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.db = "stash.sqlite"
|
self.db = os.path.join(db_path, 'stash.sqlite')
|
||||||
self.results = ""
|
self.results = ""
|
||||||
self.totalresults = ""
|
self.totalresults = ""
|
||||||
self.latestscandomain = {}
|
self.latestscandomain = {}
|
||||||
|
|
Loading…
Reference in a new issue