-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSubfin.py
More file actions
28 lines (26 loc) · 870 Bytes
/
Subfin.py
File metadata and controls
28 lines (26 loc) · 870 Bytes
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
# Coded By VanGans - SadCode Official
# Python 2.7
import urllib2
import re
def subScn(domain):
headers = {}
headers['x-session-hash'] = "16961ee14a95fae7bbfe69587dcca2adf647b7022e88ec6167edec568e4c69d3"
req = urllib2.Request('https://www.virustotal.com/ui/domains/{}/subdomains'.format(domain), headers = headers)
response = urllib2.urlopen(req)
resp = response.read()
rest = re.findall(r'"id": "(.*?)"', str(resp))
print '============ '+ domain +' ============'
for result in rest:
print '' + result
if __name__ == '__main__':
print '============ Mass Subdomain Finder ============'
print 'Website Tanpa http/https'
print 'Contoh : site.com'
try:
website = raw_input("Masukkan List Site : ")
f = open(website, 'r').read()
sss = f.split('\n')
for webs in sss:
subScn(webs)
except:
print 'File Tidak Di Temukan'