Codebase list finalrecon / run/14589f01-6e97-4100-8ec6-e1f13f238809/upstream
Import upstream version 1.1.5+git20220821.1.b35e85f Kali Janitor 1 year, 4 months ago
5 changed file(s) with 42 addition(s) and 152 deletion(s). Raw diff Collapse all Expand all
+0
-152
.gitignore less more
0 # Byte-compiled / optimized / DLL files
1 __pycache__/
2 *.py[cod]
3 *$py.class
4
5 # C extensions
6 *.so
7
8 # Distribution / packaging
9 .Python
10 build/
11 develop-eggs/
12 dist/
13 downloads/
14 eggs/
15 .eggs/
16 lib/
17 lib64/
18 parts/
19 sdist/
20 var/
21 wheels/
22 share/python-wheels/
23 *.egg-info/
24 .installed.cfg
25 *.egg
26 MANIFEST
27
28 # PyInstaller
29 # Usually these files are written by a python script from a template
30 # before PyInstaller builds the exe, so as to inject date/other infos into it.
31 *.manifest
32 *.spec
33
34 # Installer logs
35 pip-log.txt
36 pip-delete-this-directory.txt
37
38 # Unit test / coverage reports
39 htmlcov/
40 .tox/
41 .nox/
42 .coverage
43 .coverage.*
44 .cache
45 nosetests.xml
46 coverage.xml
47 *.cover
48 *.py,cover
49 .hypothesis/
50 .pytest_cache/
51 cover/
52
53 # Translations
54 *.mo
55 *.pot
56
57 # Django stuff:
58 *.log
59 local_settings.py
60 db.sqlite3
61 db.sqlite3-journal
62
63 # Flask stuff:
64 instance/
65 .webassets-cache
66
67 # Scrapy stuff:
68 .scrapy
69
70 # Sphinx documentation
71 docs/_build/
72
73 # PyBuilder
74 .pybuilder/
75 target/
76
77 # Jupyter Notebook
78 .ipynb_checkpoints
79
80 # IPython
81 profile_default/
82 ipython_config.py
83
84 # pyenv
85 # For a library or package, you might want to ignore these files since the code is
86 # intended to run in multiple environments; otherwise, check them in:
87 # .python-version
88
89 # pipenv
90 # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
91 # However, in case of collaboration, if having platform-specific dependencies or dependencies
92 # having no cross-platform support, pipenv may install dependencies that don't work, or not
93 # install all needed dependencies.
94 #Pipfile.lock
95
96 # poetry
97 # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
98 # This is especially recommended for binary packages to ensure reproducibility, and is more
99 # commonly ignored for libraries.
100 # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
101 #poetry.lock
102
103 # PEP 582; used by e.g. github.com/David-OConnor/pyflow
104 __pypackages__/
105
106 # Celery stuff
107 celerybeat-schedule
108 celerybeat.pid
109
110 # SageMath parsed files
111 *.sage.py
112
113 # Environments
114 .env
115 .venv
116 env/
117 venv/
118 ENV/
119 env.bak/
120 venv.bak/
121
122 # Spyder project settings
123 .spyderproject
124 .spyproject
125
126 # Rope project settings
127 .ropeproject
128
129 # mkdocs documentation
130 /site
131
132 # mypy
133 .mypy_cache/
134 .dmypy.json
135 dmypy.json
136
137 # Pyre type checker
138 .pyre/
139
140 # pytype static type analyzer
141 .pytype/
142
143 # Cython debug symbols
144 cython_debug/
145
146 # PyCharm
147 # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
148 # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
149 # and can be added to the global gitignore or merged into this file. For a more nuclear
150 # option (not recommended) you can uncomment the following to ignore the entire idea folder.
151 .idea/
00 {
1 "bevigil": null,
12 "facebook": null,
23 "virustotal": null,
34 "shodan": null
5555 if custom is True:
5656 r_url = f'{protocol}://{temp_tgt}/robots.txt'
5757 sm_url = f'{protocol}://{temp_tgt}/sitemap.xml'
58 base_url = f'{protocol}://{temp_tgt}'
5859 else:
5960 ext = tldextract.extract(target)
6061 hostname = '.'.join(part for part in ext if part)
22 import aiohttp
33 import asyncio
44 from modules.export import export
5 from modules.subdomain_modules.bevigil_subs import bevigil
56 from modules.subdomain_modules.thcrowd_subs import thcrowd
67 from modules.subdomain_modules.anubis_subs import anubisdb
78 from modules.subdomain_modules.thminer_subs import thminer
2728 timeout = aiohttp.ClientTimeout(total=tout)
2829 async with aiohttp.ClientSession(timeout=timeout) as session:
2930 await asyncio.gather(
31 bevigil(hostname, conf_path, session),
3032 thcrowd(hostname, session),
3133 anubisdb(hostname, session),
3234 thminer(hostname, session),
0 #!/usr/bin/env python3
1
2 R = '\033[31m' # red
3 G = '\033[32m' # green
4 C = '\033[36m' # cyan
5 W = '\033[0m' # white
6 Y = '\033[33m' # yellow
7
8 from json import loads
9 import modules.subdom as parent
10
11 async def bevigil(hostname, conf_path, session):
12 with open(f'{conf_path}/keys.json', 'r') as keyfile:
13 json_read = keyfile.read()
14
15 json_load = loads(json_read)
16 bevigil_key = json_load['bevigil']
17
18 if bevigil_key is not None:
19 print(f'{Y}[!] {C}Requesting {G}BeVigil{W}')
20 url = f"https://osint.bevigil.com/api/{hostname}/subdomains/"
21 header = {"X-Access-Token": bevigil_key}
22
23 try:
24 async with session.get(url, headers=header) as resp:
25 sc = resp.status
26 if sc == 200:
27 json_data: list = await resp.json()
28 subdomains = json_data.get("subdomains")
29 print(f'{G}[+] {Y}BeVigil {W}found {C}{len(subdomains)} {W}subdomains!')
30 parent.found.extend(subdomains)
31 else:
32 print(f'{R}[-] {C}BeVigil Status : {W}{sc}')
33
34 except Exception as e:
35 print(f'{R}[-] {C}BeVigil Exception : {W}{e}')
36 else:
37 print(f'{Y}[!] Skipping BeVigil : {W}API key not found!')