forked from Cl0udG0d/SZhe_Scan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DomainMessage.py
45 lines (37 loc) · 1.36 KB
/
DomainMessage.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
import get_message
import redis
import ImportToRedis
class DomainMessage:
def __init__(self,domain,redispool):
self.domain=domain
self.redispool=redispool
self.TrueDomain=self.domain.split('.',1)[1]
def GetSubDomain(self):
SubDomainBurst=get_message.SubDomainBurst(self.TrueDomain,self.redispool)
SubDomainOnline=get_message.GetSubDomain(self.domain)
SubDomain=SubDomainBurst+SubDomainOnline
print("111")
return SubDomain
def GetWhoisMessage(self):
return get_message.GetWhois(self.TrueDomain)
def GetBindingIP(self):
return get_message.GetBindingIP(self.domain)
def GetSiteStation(self):
return get_message.GetSiteStation(self.domain)
def GetRecordInfo(self):
return get_message.GetRecordInfo(self.domain)
def FindDomainAdd(self):
return get_message.FindDomainAdd(self.domain)
if __name__=='__main__':
redispool = redis.Redis(connection_pool=ImportToRedis.redisPool)
test=DomainMessage("testphp.vulnweb.com",redispool)
try:
print(test.GetSiteStation())
print(test.GetBindingIP())
print(test.GetWhoisMessage())
print(test.GetRecordInfo())
print(test.FindDomainAdd())
print(test.GetSubDomain())
except Exception as e:
print(e)
pass