From 1164f08f56391376a824b51a1b86e3b9c4444e7f Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Sat, 29 Feb 2020 18:07:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E6=98=AF=E5=88=A9=E7=94=A8=E7=9A=84DN?= =?UTF-8?q?S=E8=AE=B0=E5=BD=95=E7=9A=84A=E8=AE=B0=E5=BD=95=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=AD=90=E5=9F=9F=E9=BB=98=E8=AE=A4=E9=83=BD=E6=9C=89?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oneforall/common/module.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oneforall/common/module.py b/oneforall/common/module.py index ce5538b..38dcef2 100644 --- a/oneforall/common/module.py +++ b/oneforall/common/module.py @@ -269,12 +269,15 @@ class Module(object): self.results.append(result) else: for subdomain in self.subdomains: + valid = None + if self.type != 'A': # 不是利用的DNS记录的A记录查询子域默认都有效 + valid = 1 url = 'http://' + subdomain level = subdomain.count('.') - self.domain.count('.') ips = self.records.get(subdomain) result = {'id': None, 'type': self.type, - 'valid': None, + 'valid': valid, 'new': None, 'url': url, 'subdomain': subdomain,