新增new,header,response字段

This commit is contained in:
shmilylty
2019-10-28 18:45:52 +08:00
parent 9fbaf19f35
commit 9c25b77aa6
5 changed files with 30 additions and 18 deletions
+3 -2
View File
@@ -83,12 +83,13 @@ class Takeover(Module):
data = str(self.results)
else:
data = self.results.export(self.format)
fpath = self.dpath.joinpath(f'takeover.{self.format}')
ts = int(time.time())
fpath = self.dpath.joinpath(f'takeover_{ts}.{self.format}')
utils.save_data(fpath, data)
def compare(self, subdomain, cname, responses):
domain_resp = self.get('http://' + subdomain, check=False)
cname_resp = self.get('http://'+cname, check=False)
cname_resp = self.get('http://' + cname, check=False)
if domain_resp is None or cname_resp is None:
return