New upstream snapshot.
Kali Janitor
1 year, 7 months ago
0 | 0 |
{
|
|
1 |
"bevigil": null,
|
1 | 2 |
"facebook": null,
|
2 | 3 |
"virustotal": null,
|
3 | 4 |
"shodan": null
|
|
0 |
finalrecon (1.1.5+git20220821.1.b35e85f-0kali1) UNRELEASED; urgency=low
|
|
1 |
|
|
2 |
* New upstream snapshot.
|
|
3 |
|
|
4 |
-- Kali Janitor <[email protected]> Wed, 28 Sep 2022 19:14:19 -0000
|
|
5 |
|
0 | 6 |
finalrecon (1.1.5-0kali1) kali-dev; urgency=medium
|
1 | 7 |
|
2 | 8 |
* New upstream version 1.1.5
|
55 | 55 |
if custom is True:
|
56 | 56 |
r_url = f'{protocol}://{temp_tgt}/robots.txt'
|
57 | 57 |
sm_url = f'{protocol}://{temp_tgt}/sitemap.xml'
|
|
58 |
base_url = f'{protocol}://{temp_tgt}'
|
58 | 59 |
else:
|
59 | 60 |
ext = tldextract.extract(target)
|
60 | 61 |
hostname = '.'.join(part for part in ext if part)
|
2 | 2 |
import aiohttp
|
3 | 3 |
import asyncio
|
4 | 4 |
from modules.export import export
|
|
5 |
from modules.subdomain_modules.bevigil_subs import bevigil
|
5 | 6 |
from modules.subdomain_modules.thcrowd_subs import thcrowd
|
6 | 7 |
from modules.subdomain_modules.anubis_subs import anubisdb
|
7 | 8 |
from modules.subdomain_modules.thminer_subs import thminer
|
|
27 | 28 |
timeout = aiohttp.ClientTimeout(total=tout)
|
28 | 29 |
async with aiohttp.ClientSession(timeout=timeout) as session:
|
29 | 30 |
await asyncio.gather(
|
|
31 |
bevigil(hostname, conf_path, session),
|
30 | 32 |
thcrowd(hostname, session),
|
31 | 33 |
anubisdb(hostname, session),
|
32 | 34 |
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!')⏎
|