forked from soxoj/GHunt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathghunt.py
44 lines (34 loc) · 1.07 KB
/
ghunt.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python3
from lib import modwall; modwall.check() # We check the requirements
import sys
import os
from pathlib import Path
from lib import modwall
from lib.utils import *
from modules.doc import doc_hunt
from modules.email import email_hunt
from modules.gaia import gaia_hunt
from modules.youtube import youtube_hunt
if __name__ == "__main__":
# We change the current working directory to allow using GHunt from anywhere
os.chdir(Path(__file__).parents[0])
modules = ["email", "doc", "gaia", "youtube"]
if len(sys.argv) <= 1 or sys.argv[1].lower() not in modules:
print("Please choose a module.\n")
print("Available modules :")
for module in modules:
print(f"- {module}")
exit()
module = sys.argv[1].lower()
if len(sys.argv) >= 3:
data = sys.argv[2]
else:
data = None
if module == "email":
email_hunt(data)
elif module == "doc":
doc_hunt(data)
elif module == "gaia":
gaia_hunt(data)
elif module == "youtube":
youtube_hunt(data)