This commit is contained in:
Jing Ling
2020-08-08 18:00:36 +08:00
parent 69ce692ff1
commit 4f462fcd60
76 changed files with 177 additions and 207 deletions
+2 -2
View File
@@ -65,7 +65,7 @@ class CheckCSP(Module):
self.save_db()
def do(domain, header=None): # 统一入口名字 方便多线程调用
def run(domain, header=None):
"""
类统一调用入口
@@ -78,4 +78,4 @@ def do(domain, header=None): # 统一入口名字 方便多线程调用
if __name__ == '__main__':
resp = requests.get('https://content-security-policy.com/')
do('google-analytics.com', dict(resp.headers))
run('google-analytics.com', dict(resp.headers))