mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-25 20:37:48 +08:00
typos
This commit is contained in:
@@ -11,18 +11,15 @@ import dns.resolver
|
|||||||
import dns.zone
|
import dns.zone
|
||||||
|
|
||||||
from common import utils
|
from common import utils
|
||||||
from common.module import Module
|
from common.check import Check
|
||||||
from config.log import logger
|
from config.log import logger
|
||||||
|
|
||||||
|
|
||||||
class CheckAXFR(Module):
|
class AXFR(Check):
|
||||||
"""
|
def __init__(self, domain):
|
||||||
DNS zone transfer vulnerability base class
|
Check.__init__(self)
|
||||||
"""
|
|
||||||
def __init__(self, domain: str):
|
|
||||||
Module.__init__(self)
|
|
||||||
self.domain = domain
|
self.domain = domain
|
||||||
self.module = 'Check'
|
self.module = 'check'
|
||||||
self.source = 'AXFRCheck'
|
self.source = 'AXFRCheck'
|
||||||
self.results = []
|
self.results = []
|
||||||
|
|
||||||
@@ -91,7 +88,7 @@ def run(domain):
|
|||||||
|
|
||||||
:param str domain: 域名
|
:param str domain: 域名
|
||||||
"""
|
"""
|
||||||
check = CheckAXFR(domain)
|
check = AXFR(domain)
|
||||||
check.run()
|
check.run()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,15 +4,12 @@
|
|||||||
from common.check import Check
|
from common.check import Check
|
||||||
|
|
||||||
|
|
||||||
class CheckCDX(Check):
|
class CrossDomain(Check):
|
||||||
"""
|
def __init__(self, domain):
|
||||||
检查crossdomain.xml文件收集子域名
|
|
||||||
"""
|
|
||||||
def __init__(self, domain: str):
|
|
||||||
Check.__init__(self)
|
Check.__init__(self)
|
||||||
self.domain = domain
|
self.domain = domain
|
||||||
self.module = 'Check'
|
self.module = 'check'
|
||||||
self.source = "CrossDomainXml"
|
self.source = "CrossDomainCheck"
|
||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
"""
|
"""
|
||||||
@@ -39,7 +36,7 @@ def run(domain):
|
|||||||
|
|
||||||
:param domain: 域名
|
:param domain: 域名
|
||||||
"""
|
"""
|
||||||
check = CheckCDX(domain)
|
check = CrossDomain(domain)
|
||||||
check.run()
|
check.run()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,16 +4,16 @@
|
|||||||
import socket
|
import socket
|
||||||
import ssl
|
import ssl
|
||||||
|
|
||||||
from common.module import Module
|
|
||||||
from config.log import logger
|
from config.log import logger
|
||||||
|
from common.check import Check
|
||||||
|
|
||||||
|
|
||||||
class CheckCert(Module):
|
class CertInfo(Check):
|
||||||
def __init__(self, domain):
|
def __init__(self, domain):
|
||||||
Module.__init__(self)
|
Check.__init__(self)
|
||||||
self.domain = domain
|
self.domain = domain
|
||||||
self.port = 443 # ssl port
|
self.port = 443
|
||||||
self.module = 'Check'
|
self.module = 'check'
|
||||||
self.source = 'CertInfo'
|
self.source = 'CertInfo'
|
||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
@@ -50,7 +50,7 @@ def run(domain):
|
|||||||
|
|
||||||
:param str domain: 域名
|
:param str domain: 域名
|
||||||
"""
|
"""
|
||||||
check = CheckCert(domain)
|
check = CertInfo(domain)
|
||||||
check.run()
|
check.run()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,19 +3,19 @@ Collect subdomains from ContentSecurityPolicy
|
|||||||
"""
|
"""
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from common.check import Check
|
|
||||||
from config.log import logger
|
from config.log import logger
|
||||||
|
from common.check import Check
|
||||||
|
|
||||||
|
|
||||||
class CheckCSP(Check):
|
class CSP(Check):
|
||||||
"""
|
"""
|
||||||
Collect subdomains from ContentSecurityPolicy
|
Collect subdomains from ContentSecurityPolicy
|
||||||
"""
|
"""
|
||||||
def __init__(self, domain, header):
|
def __init__(self, domain, header):
|
||||||
Check.__init__(self)
|
Check.__init__(self)
|
||||||
self.domain = domain
|
self.domain = domain
|
||||||
self.module = 'Check'
|
self.module = 'check'
|
||||||
self.source = 'ContentSecurityPolicy'
|
self.source = 'CSPCheck'
|
||||||
self.csp_header = header
|
self.csp_header = header
|
||||||
|
|
||||||
def grab_header(self):
|
def grab_header(self):
|
||||||
@@ -72,7 +72,7 @@ def run(domain, header=None):
|
|||||||
:param str domain: 域名
|
:param str domain: 域名
|
||||||
:param dict or None header: 响应头
|
:param dict or None header: 响应头
|
||||||
"""
|
"""
|
||||||
check = CheckCSP(domain, header)
|
check = CSP(domain, header)
|
||||||
check.run()
|
check.run()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
# https://www.icann.org/resources/pages/dnssec-what-is-it-why-important-2019-03-20-zh
|
# https://www.icann.org/resources/pages/dnssec-what-is-it-why-important-2019-03-20-zh
|
||||||
# https://appsecco.com/books/subdomain-enumeration/active_techniques/zone_walking.html
|
# https://appsecco.com/books/subdomain-enumeration/active_techniques/zone_walking.html
|
||||||
|
|
||||||
from common.module import Module
|
|
||||||
from common import utils
|
from common import utils
|
||||||
|
from common.check import Check
|
||||||
|
|
||||||
|
|
||||||
class CheckNSEC(Module):
|
class NSEC(Check):
|
||||||
def __init__(self, domain):
|
def __init__(self, domain):
|
||||||
Module.__init__(self)
|
Check.__init__(self)
|
||||||
self.domain = domain
|
self.domain = domain
|
||||||
self.module = 'check'
|
self.module = 'check'
|
||||||
self.source = "CheckNSEC"
|
self.source = "NSECCheck"
|
||||||
|
|
||||||
def walk(self):
|
def walk(self):
|
||||||
domain = self.domain
|
domain = self.domain
|
||||||
@@ -47,7 +47,7 @@ def run(domain):
|
|||||||
|
|
||||||
:param str domain: 域名
|
:param str domain: 域名
|
||||||
"""
|
"""
|
||||||
brute = CheckNSEC(domain)
|
brute = NSEC(domain)
|
||||||
brute.run()
|
brute.run()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,15 +4,12 @@
|
|||||||
from common.check import Check
|
from common.check import Check
|
||||||
|
|
||||||
|
|
||||||
class CheckRobots(Check):
|
class Robots(Check):
|
||||||
"""
|
|
||||||
检查robots.txt收集子域名
|
|
||||||
"""
|
|
||||||
def __init__(self, domain):
|
def __init__(self, domain):
|
||||||
Check.__init__(self)
|
Check.__init__(self)
|
||||||
self.domain = domain
|
self.domain = domain
|
||||||
self.module = 'Check'
|
self.module = 'check'
|
||||||
self.source = 'Robots'
|
self.source = 'RobotsCheck'
|
||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
"""
|
"""
|
||||||
@@ -39,7 +36,7 @@ def run(domain):
|
|||||||
|
|
||||||
:param str domain: 域名
|
:param str domain: 域名
|
||||||
"""
|
"""
|
||||||
check = CheckRobots(domain)
|
check = Robots(domain)
|
||||||
check.run()
|
check.run()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,15 +4,12 @@
|
|||||||
from common.check import Check
|
from common.check import Check
|
||||||
|
|
||||||
|
|
||||||
class CheckRobots(Check):
|
class Sitemap(Check):
|
||||||
"""
|
|
||||||
检查sitemap收集子域名
|
|
||||||
"""
|
|
||||||
def __init__(self, domain):
|
def __init__(self, domain):
|
||||||
Check.__init__(self)
|
Check.__init__(self)
|
||||||
self.domain = domain
|
self.domain = domain
|
||||||
self.module = 'Check'
|
self.module = 'check'
|
||||||
self.source = 'Sitemap'
|
self.source = 'SitemapCheck'
|
||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
"""
|
"""
|
||||||
@@ -39,7 +36,7 @@ def run(domain):
|
|||||||
|
|
||||||
:param str domain: 域名
|
:param str domain: 域名
|
||||||
"""
|
"""
|
||||||
check = CheckRobots(domain)
|
check = Sitemap(domain)
|
||||||
check.run()
|
check.run()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user