-
Notifications
You must be signed in to change notification settings - Fork 2
/
subdoscan.py
46 lines (38 loc) · 1.38 KB
/
subdoscan.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
45
46
#python2.7
#Author : KimiHmei7 & Zeerx7
#recode boleh asal ngotak goblok.
# <-- Import Module -->
import os
import json
import requests
from colorama import Fore, init
from multiprocessing import Pool
from multiprocessing.dummy import Pool as ThreadPool
init(autoreset=True)
def subdoscan(target):
try:
grab = requests.get('https://sonar.omnisint.io/subdomains/'+target)
if 'null' in grab.text:
print "{}[FAILED] {}".format(Fore.RED, Fore.YELLOW+target)
else:
result = json.loads(grab.text)
print "{}[GRABBED] {} | Total {} Subdomains".format(Fore.YELLOW, str(target), len(result))
for domain in result:
open('grabbed.txt', 'a').write('http://' + domain + "\n")
except:
pass
banner = """
__ __
_______ __/ /_ ____/ /___ ____ ___ ___ _____
/ ___/ / / / __ \/ __ / __ \/ __ `__ \/ _ \/ ___/
(__ ) /_/ / /_/ / /_/ / /_/ / / / / / / __/ /
/____/\__,_/_.___/\__,_/\____/_/ /_/ /_/\___/_/
Subdomain Scanner | {}https://github.com/AzhariKun/subdomer
""".format(Fore.YELLOW)
print banner
target = open(raw_input(Fore.WHITE+'input list:~# '),'r').read().replace('http://', '').replace('https://', '').splitlines()
Thread = raw_input(Fore.WHITE+'Thread :~# ')
pool = ThreadPool(int(Thread))
pool.map(subdoscan, target)
pool.close()
pool.join()