mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-25 20:37:48 +08:00
typos
This commit is contained in:
@@ -58,7 +58,7 @@ class CensysAPI(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -69,4 +69,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -37,7 +37,7 @@ class CertSpotter(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -49,4 +49,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -35,7 +35,7 @@ class Crtsh(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -46,4 +46,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -38,7 +38,7 @@ class Google(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -49,4 +49,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -83,7 +83,7 @@ class CheckAXFR(Module):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -94,5 +94,5 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('ZoneTransfer.me')
|
||||
# do('example.com')
|
||||
run('ZoneTransfer.me')
|
||||
# run('example.com')
|
||||
|
||||
@@ -44,7 +44,7 @@ class CheckCDX(Module):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -55,4 +55,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -46,7 +46,7 @@ class CheckCert(Module):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -57,4 +57,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -42,7 +42,7 @@ class CheckNSEC(Module):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -53,4 +53,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('iana.org')
|
||||
run('iana.org')
|
||||
|
||||
@@ -43,7 +43,7 @@ class CheckRobots(Module):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -54,4 +54,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('qq.com')
|
||||
run('qq.com')
|
||||
|
||||
@@ -48,7 +48,7 @@ class CheckRobots(Module):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -59,4 +59,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('qq.com')
|
||||
run('qq.com')
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ class Collect(object):
|
||||
"""
|
||||
for package, name in self.modules:
|
||||
import_object = importlib.import_module('.' + name, package)
|
||||
func = getattr(import_object, 'do')
|
||||
func = getattr(import_object, 'run')
|
||||
self.collect_funcs.append([func, name])
|
||||
|
||||
def run(self):
|
||||
|
||||
@@ -47,7 +47,7 @@ class ArchiveCrawl(Crawl):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -58,4 +58,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -46,7 +46,7 @@ class CommonCrawl(Crawl):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -57,4 +57,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -39,7 +39,7 @@ class BinaryEdgeAPI(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -50,4 +50,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -42,7 +42,7 @@ class BufferOver(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -53,4 +53,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -35,7 +35,7 @@ class CeBaidu(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -46,4 +46,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -35,7 +35,7 @@ class Chinaz(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -46,4 +46,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -39,7 +39,7 @@ class ChinazAPI(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -50,4 +50,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -39,7 +39,7 @@ class CirclAPI(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -50,4 +50,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -113,7 +113,7 @@ class CloudFlareAPI(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
class call entrance
|
||||
|
||||
@@ -124,4 +124,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -40,7 +40,7 @@ class DNSdbAPI(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -52,4 +52,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -42,7 +42,7 @@ class DNSdumpster(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -54,4 +54,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -37,7 +37,7 @@ class HackerTarget(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -48,4 +48,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -35,7 +35,7 @@ class IP138(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -46,4 +46,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -39,10 +39,9 @@ class IPv4InfoAPI(Query):
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
# 不直接使用subdomains是因为可能里面会出现不符合标准的子域名
|
||||
subdomains = json.get('Subdomains')
|
||||
if subdomains:
|
||||
if subdomains and len(subdomains) < 300:
|
||||
# ipv4info子域查询接口每次最多返回300个 用来判断是否还有下一页
|
||||
if len(subdomains) < 300:
|
||||
break
|
||||
break
|
||||
page += 1
|
||||
if page >= 50: # ipv4info子域查询接口最多允许查询50页
|
||||
break
|
||||
@@ -61,7 +60,7 @@ class IPv4InfoAPI(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -72,4 +71,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -73,7 +73,7 @@ class NetCraft(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -84,4 +84,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -41,7 +41,7 @@ class PassiveDnsAPI(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -52,4 +52,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -50,7 +50,7 @@ class PhoneBook(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -61,4 +61,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('freebuf.com')
|
||||
run('freebuf.com')
|
||||
|
||||
@@ -47,7 +47,7 @@ class QianXun(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -58,4 +58,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -35,7 +35,7 @@ class RapidDNS(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -46,4 +46,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -35,7 +35,7 @@ class Riddler(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -46,4 +46,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -49,7 +49,7 @@ class Robtex(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -60,4 +60,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -43,7 +43,7 @@ class SecurityTrailsAPI(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -54,4 +54,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -46,7 +46,7 @@ class SiteDossier(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -57,4 +57,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -49,7 +49,7 @@ class SpyseAPI(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -60,4 +60,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -34,7 +34,7 @@ class Sublist3r(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -45,4 +45,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -41,7 +41,7 @@ class ThreatCrowd(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -52,4 +52,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('mi.com')
|
||||
run('mi.com')
|
||||
|
||||
@@ -51,7 +51,7 @@ class WZPCQuery(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain):
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -62,5 +62,5 @@ def do(domain):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('sc.gov.cn')
|
||||
do('bkzy.org')
|
||||
run('sc.gov.cn')
|
||||
run('bkzy.org')
|
||||
|
||||
@@ -36,7 +36,7 @@ class Ximcx(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -47,4 +47,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -21,7 +21,7 @@ class QueryMX(Lookup):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -32,4 +32,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('cuit.edu.cn')
|
||||
run('cuit.edu.cn')
|
||||
|
||||
@@ -21,7 +21,7 @@ class QueryNS(Lookup):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -32,4 +32,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('cuit.edu.cn')
|
||||
run('cuit.edu.cn')
|
||||
|
||||
@@ -21,7 +21,7 @@ class QuerySOA(Lookup):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -32,4 +32,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('cuit.edu.cn')
|
||||
run('cuit.edu.cn')
|
||||
|
||||
@@ -21,7 +21,7 @@ class QuerySPF(Lookup):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -32,4 +32,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('qq.com')
|
||||
run('qq.com')
|
||||
|
||||
@@ -80,7 +80,7 @@ class BruteThread(threading.Thread):
|
||||
self.names_que.task_done()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -91,5 +91,5 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('zonetransfer.me')
|
||||
# do('example.com')
|
||||
run('zonetransfer.me')
|
||||
# run('example.com')
|
||||
|
||||
@@ -21,7 +21,7 @@ class QueryTXT(Lookup):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -32,4 +32,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('cuit.edu.cn')
|
||||
run('cuit.edu.cn')
|
||||
|
||||
@@ -44,7 +44,7 @@ class AlienVault(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -55,4 +55,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -42,7 +42,7 @@ class RiskIQ(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -53,4 +53,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -39,7 +39,7 @@ class ThreatBookAPI(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -50,4 +50,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -36,7 +36,7 @@ class ThreatMiner(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -47,4 +47,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -57,7 +57,7 @@ class VirusTotal(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -68,4 +68,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -41,7 +41,7 @@ class VirusTotalAPI(Query):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -52,4 +52,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -33,10 +33,9 @@ class Ask(Search):
|
||||
subdomains = self.match_subdomains(resp.text, fuzzy=False)
|
||||
if not subdomains:
|
||||
break
|
||||
if not full_search:
|
||||
# 搜索中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
if subdomains.issubset(self.subdomains):
|
||||
break
|
||||
if not full_search and subdomains.issubset(self.subdomains):
|
||||
# 在全搜索过程中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
break
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
self.page_num += 1
|
||||
if '>Next<' not in resp.text:
|
||||
@@ -67,7 +66,7 @@ class Ask(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -78,4 +77,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -8,7 +8,6 @@ class Baidu(Search):
|
||||
Search.__init__(self)
|
||||
self.module = 'Search'
|
||||
self.source = 'BaiduSearch'
|
||||
self.init = 'https://www.baidu.com/'
|
||||
self.addr = 'https://www.baidu.com/s'
|
||||
self.domain = domain
|
||||
self.limit_num = 750 # 限制搜索条数
|
||||
@@ -56,10 +55,9 @@ class Baidu(Search):
|
||||
subdomains = self.match_subdomains(resp.text, fuzzy=False)
|
||||
if not subdomains: # 搜索没有发现子域名则停止搜索
|
||||
break
|
||||
if not full_search:
|
||||
# 搜索中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
if subdomains.issubset(self.subdomains):
|
||||
break
|
||||
if not full_search and subdomains.issubset(self.subdomains):
|
||||
# 在全搜索过程中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
break
|
||||
# 合并搜索子域名搜索结果
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
self.page_num += self.per_page_num
|
||||
@@ -94,7 +92,7 @@ class Baidu(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -105,4 +103,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('mi.com')
|
||||
run('mi.com')
|
||||
|
||||
@@ -39,10 +39,9 @@ class Bing(Search):
|
||||
subdomains = self.match_subdomains(resp.text, fuzzy=False)
|
||||
if not subdomains: # 搜索没有发现子域名则停止搜索
|
||||
break
|
||||
if not full_search:
|
||||
# 搜索中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
if subdomains.issubset(self.subdomains):
|
||||
break
|
||||
if not full_search and subdomains.issubset(self.subdomains):
|
||||
# 在全搜索过程中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
break
|
||||
# 合并搜索子域名搜索结果
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
# 搜索页面没有出现下一页时停止搜索
|
||||
@@ -78,7 +77,7 @@ class Bing(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -89,4 +88,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -9,8 +9,7 @@ class BingAPI(Search):
|
||||
self.domain = domain
|
||||
self.module = 'Search'
|
||||
self.source = 'BingAPISearch'
|
||||
self.addr = 'https://api.cognitive.microsoft.com/' \
|
||||
'bing/v7.0/search'
|
||||
self.addr = 'https://api.cognitive.microsoft.com/bing/v7.0/search'
|
||||
self.id = api.bing_api_id
|
||||
self.key = api.bing_api_key
|
||||
self.limit_num = 1000 # 必应同一个搜索关键词限制搜索条数
|
||||
@@ -40,10 +39,9 @@ class BingAPI(Search):
|
||||
subdomains = self.match_subdomains(resp.text)
|
||||
if not subdomains: # 搜索没有发现子域名则停止搜索
|
||||
break
|
||||
if not full_search:
|
||||
# 搜索中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
if subdomains.issubset(self.subdomains):
|
||||
break
|
||||
if not full_search and subdomains.issubset(self.subdomains):
|
||||
# 在全搜索过程中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
break
|
||||
# 合并搜索子域名搜索结果
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
self.page_num += self.per_page_num
|
||||
@@ -78,7 +76,7 @@ class BingAPI(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -89,4 +87,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -60,7 +60,7 @@ class FoFa(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -71,4 +71,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -37,10 +37,9 @@ class Gitee(Search):
|
||||
subdomains = self.match_subdomains(soup.text, fuzzy=False)
|
||||
if not subdomains:
|
||||
break
|
||||
if not full_search:
|
||||
# 搜索中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
if subdomains.issubset(self.subdomains):
|
||||
break
|
||||
if not full_search and subdomains.issubset(self.subdomains):
|
||||
# 在全搜索中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
break
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
if '<li class="disabled"><a href="###">' in resp.text:
|
||||
break
|
||||
@@ -60,7 +59,7 @@ class Gitee(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -71,4 +70,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('qq.com')
|
||||
run('qq.com')
|
||||
|
||||
@@ -92,7 +92,7 @@ class GithubAPI(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -103,4 +103,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('exmaple.com')
|
||||
run('exmaple.com')
|
||||
|
||||
@@ -43,9 +43,9 @@ class Google(Search):
|
||||
subdomains = self.match_subdomains(resp.text, fuzzy=False)
|
||||
if not subdomains:
|
||||
break
|
||||
if not full_search:
|
||||
if subdomains.issubset(self.subdomains):
|
||||
break
|
||||
if not full_search and subdomains.issubset(self.subdomains):
|
||||
# 在全搜索中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
break
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
page_num += per_page_num
|
||||
if 'start=' + str(page_num) not in resp.text:
|
||||
@@ -80,7 +80,7 @@ class Google(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -91,4 +91,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -38,9 +38,9 @@ class GoogleAPI(Search):
|
||||
subdomains = self.match_subdomains(resp.text)
|
||||
if not subdomains:
|
||||
break
|
||||
if not full_search:
|
||||
if subdomains.issubset(self.subdomains):
|
||||
break
|
||||
if not full_search and subdomains.issubset(self.subdomains):
|
||||
# 在全搜索过程中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
break
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
self.page_num += self.per_page_num
|
||||
if self.page_num > 100: # 免费的API只能查询前100条结果
|
||||
@@ -74,7 +74,7 @@ class GoogleAPI(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -85,4 +85,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('mi.com')
|
||||
run('mi.com')
|
||||
|
||||
@@ -46,7 +46,7 @@ class ShodanAPI(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -57,4 +57,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -34,10 +34,9 @@ class So(Search):
|
||||
subdomains = self.match_subdomains(resp.text, fuzzy=False)
|
||||
if not subdomains:
|
||||
break
|
||||
if not full_search:
|
||||
# 搜索中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
if subdomains.issubset(self.subdomains):
|
||||
break
|
||||
if not full_search and subdomains.issubset(self.subdomains):
|
||||
# 在全搜索过程中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
break
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
page_num += 1
|
||||
# 搜索页面没有出现下一页时停止搜索
|
||||
@@ -73,7 +72,7 @@ class So(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -84,4 +83,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -31,10 +31,9 @@ class Sogou(Search):
|
||||
subdomains = self.match_subdomains(resp.text, fuzzy=False)
|
||||
if not subdomains:
|
||||
break
|
||||
if not full_search:
|
||||
# 搜索中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
if subdomains.issubset(self.subdomains):
|
||||
break
|
||||
if not full_search and subdomains.issubset(self.subdomains):
|
||||
# 在全搜索过程中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
break
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
self.page_num += 1
|
||||
# 搜索页面没有出现下一页时停止搜索
|
||||
@@ -71,7 +70,7 @@ class Sogou(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -82,4 +81,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -39,10 +39,9 @@ class Yahoo(Search):
|
||||
subdomains = self.match_subdomains(text, fuzzy=False)
|
||||
if not subdomains: # 搜索没有发现子域名则停止搜索
|
||||
break
|
||||
if not full_search:
|
||||
# 搜索中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
if subdomains.issubset(self.subdomains):
|
||||
break
|
||||
if not full_search and subdomains.issubset(self.subdomains):
|
||||
# 在全搜索过程中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
break
|
||||
# 合并搜索子域名搜索结果
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
if '>Next</a>' not in resp.text: # 搜索页面没有出现下一页时停止搜索
|
||||
@@ -78,7 +77,7 @@ class Yahoo(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -89,4 +88,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -39,10 +39,9 @@ class Yandex(Search):
|
||||
subdomains = self.match_subdomains(resp.text, fuzzy=False)
|
||||
if not subdomains: # 搜索没有发现子域名则停止搜索
|
||||
break
|
||||
if not full_search:
|
||||
# 搜索中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
if subdomains.issubset(self.subdomains):
|
||||
break
|
||||
if not full_search and subdomains.issubset(self.subdomains):
|
||||
# 在全搜索过程中发现搜索出的结果有完全重复的结果就停止搜索
|
||||
break
|
||||
# 合并搜索子域名搜索结果
|
||||
self.subdomains = self.subdomains.union(subdomains)
|
||||
if '>next</a>' not in resp.text: # 搜索页面没有出现下一页时停止搜索
|
||||
@@ -78,7 +77,7 @@ class Yandex(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -89,4 +88,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('example.com')
|
||||
run('example.com')
|
||||
|
||||
@@ -72,7 +72,7 @@ class ZoomEyeAPI(Search):
|
||||
self.save_db()
|
||||
|
||||
|
||||
def do(domain): # 统一入口名字 方便多线程调用
|
||||
def run(domain):
|
||||
"""
|
||||
类统一调用入口
|
||||
|
||||
@@ -83,4 +83,4 @@ def do(domain): # 统一入口名字 方便多线程调用
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
do('mi.com')
|
||||
run('mi.com')
|
||||
|
||||
Reference in New Issue
Block a user