diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..dbabc2b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,114 @@ +*.manifest +*.spec +pip-log.txt +pip-delete-this-directory.txt +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +*.mo +*.pot +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal +instance/ +.webassets-cache +.scrapy +docs/_build/ +docs/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json +.pyre +profile_pics/*.jpg +chromedriver +chromedriver.exe +data.txt +login.py +.DS_Store +debug.log +lib/LinkedInAPI/cookies +PwnDBResults.txt +results.txt +notes/ +poc.py +output/ +__pycache__ +*.pyc +*.pyo +*.pyd +.Python +env +pip-log.txt +pip-delete-this-directory.txt +.tox +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.log +.git +.mypy_cache +.pytest_cache +.hypothesis +*.jr \ No newline at end of file diff --git a/core/main.py b/core/main.py index 7a1302f..0599035 100644 --- a/core/main.py +++ b/core/main.py @@ -202,7 +202,7 @@ def dehashedParameters(args,dehashed_email,dehashed_apikey,results,out_dir): if results != []: dehashed_results = DehashedAPI.dehashedRequest(dehashed_email,dehashed_apikey,results) else: - print(colors.bad + " No emails for Ghunt" + colors.end) + print(colors.bad + " No emails for Dehashed" + colors.end) if args.email_dh: dehashed_results.append(DehashedAPI.singleDehashedEmailSearch(dehashed_email,dehashed_apikey,email=args.email_dh)) diff --git a/lib/GHunt/check_and_gen.py b/lib/GHunt/check_and_gen.py index 9189df5..28cb982 100644 --- a/lib/GHunt/check_and_gen.py +++ b/lib/GHunt/check_and_gen.py @@ -32,18 +32,18 @@ def get_saved_cookies(): except Exception: print(colors.bad + " Stored cookies are corrupted" + colors.end) return False - print(colors.info + " No stored cookies found" + colors.info) + print(colors.info + " No stored cookies found" + colors.end) return False def get_authorization_source(cookies): ''' returns html source of hangouts page if user authorized ''' req = httpx.get("https://docs.google.com/document/u/0/?usp=direct_url", - cookies=cookies, headers=config.headers, allow_redirects=False) + cookies=cookies, headers=config.headers) if req.status_code == 200: req2 = httpx.get("https://hangouts.google.com", cookies=cookies, - headers=config.headers, allow_redirects=False) + headers=config.headers) if "myaccount.google.com" in req2.text: return req.text return None diff --git a/lib/GHunt/lib/gmaps.py b/lib/GHunt/lib/gmaps.py index 9943f77..90b4cd2 100644 --- a/lib/GHunt/lib/gmaps.py +++ b/lib/GHunt/lib/gmaps.py @@ -1,6 +1,9 @@ import hashlib import re import time +import logging +import sys +import warnings from datetime import datetime from dateutil.relativedelta import relativedelta @@ -14,6 +17,8 @@ from lib.GHunt.lib.utils import * +logging.disable(sys.maxsize) +warnings.filterwarnings("ignore") def scrape(gaiaID, client, cookies, config, headers, regex_rev_by_id, is_headless): def get_datetime(datepublished): diff --git a/lib/GHunt/modules/email.py b/lib/GHunt/modules/email.py index 8fc1bc8..35ac7cb 100644 --- a/lib/GHunt/modules/email.py +++ b/lib/GHunt/modules/email.py @@ -3,6 +3,8 @@ import json import sys import os +import logging +import warnings from datetime import datetime from io import BytesIO from os.path import isfile @@ -22,6 +24,9 @@ from core.colors import colors from core import output +logging.disable(sys.maxsize) +warnings.filterwarnings("ignore") + def email_hunt(email): result = {}