Skip to content

Commit 3497bbd

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents f23bb9b + 3242149 commit 3497bbd

File tree

15 files changed

+170
-117
lines changed

15 files changed

+170
-117
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ FLAGS
279279

280280
## 📄版权
281281

282-
该项目签署了GPL-3.0授权许可,详情请参阅[LICENSE](https://github.com/shmilylty/OneForAll/LICENSE)
282+
该项目签署了GPL-3.0授权许可,详情请参阅[LICENSE](https://github.com/shmilylty/OneForAll/blob/master/LICENSE)
283283

284284
## 😘鸣谢
285285

brute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def main(self, domain):
579579
output_path = temp_dir.joinpath(output_name)
580580
log_path = result_dir.joinpath('massdns.log')
581581
check_dict()
582-
logger.log('INFOR', f'Running massdns to resolve subdomains')
582+
logger.log('INFOR', f'Running massdns to brute subdomains')
583583
utils.call_massdns(massdns_path, dict_path, ns_path, output_path,
584584
log_path, quiet_mode=self.quite,
585585
process_num=self.process_num,

common/resolve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def run_resolve(domain, data):
161161

162162
ns_path = setting.brute_nameservers_path
163163

164-
logger.log('INFOR', f'Running massdns to brute subdomains')
164+
logger.log('INFOR', f'Running massdns to resolve subdomains')
165165
utils.call_massdns(massdns_path, save_path, ns_path,
166166
output_path, log_path, quiet_mode=True)
167167

common/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def export_all_results(path, name, format, datas):
308308

309309
def export_all_subdomains(alive, path, name, datas):
310310
path = check_path(path, name, 'txt')
311-
logger.log('ALERT', f'The txt subdomain result for all main domains {path}')
311+
logger.log('ALERT', f'The txt subdomain result for all main domains: {path}')
312312
subdomains = set()
313313
for row in datas:
314314
subdomain = row.get('subdomain')

docs/en-us/README.md

Lines changed: 92 additions & 88 deletions
Large diffs are not rendered by default.

docs/en-us/usage_help.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The OneForAll command line interface is based on [Fire](https://github.com/googl
2121
oneforall.py --target=TARGET <flags>
2222

2323
DESCRIPTION
24-
OneForAll is a powerful subdomain collection tool
24+
OneForAll is a powerful subdomain integration tool
2525

2626
Example:
2727
python3 oneforall.py version

docs/installation_dependency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ git clone https://gitee.com/shmilylty/OneForAll.git
5252
3. 安装相关依赖
5353
```bash
5454
cd OneForAll/
55-
sudo yum install python3-devel python3-pip -y
55+
sudo yum install gcc python3-devel python3-pip -y
5656
sudo python3 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
5757
sudo pip3 install uvloop -i https://mirrors.aliyun.com/pypi/simple/
5858
sudo pip3 install --ignore-installed -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

modules/certificates/censys_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def query(self):
3131
json = resp.json()
3232
status = json.get('status')
3333
if status != 'ok':
34-
logger.log('ALERT', status)
34+
logger.log('ALERT', f'{self.source} module {status}')
3535
return
3636
subdomains = self.match_subdomains(self.domain, str(json))
3737
self.subdomains = self.subdomains.union(subdomains)

modules/check/axfr.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717

1818
class CheckAXFR(Module):
1919
"""
20-
DNS域传送漏洞检查类
20+
DNS zone transfer vulnerability base class
2121
"""
22+
2223
def __init__(self, domain: str):
2324
Module.__init__(self)
2425
self.domain = self.register(domain)
@@ -28,18 +29,18 @@ def __init__(self, domain: str):
2829

2930
def axfr(self, server):
3031
"""
31-
执行域传送
32+
Perform domain transfer
3233
33-
:param server: 域名服务器
34+
:param server: domain server
3435
"""
35-
logger.log('DEBUG', f'尝试对{self.domain}的域名服务器{server}进行域传送')
36+
logger.log('DEBUG', f'Trying to perform domain transfer in {server} of {self.domain}')
3637
try:
3738
xfr = dns.query.xfr(where=server, zone=self.domain,
3839
timeout=5.0, lifetime=10.0)
3940
zone = dns.zone.from_xfr(xfr)
4041
except Exception as e:
4142
logger.log('DEBUG', e.args)
42-
logger.log('DEBUG', f'{self.domain}的域名服务器{server}进行域传送失败')
43+
logger.log('DEBUG', f'Domain transfer to server {server} of {self.domain} failed')
4344
return
4445
names = zone.nodes.keys()
4546
for name in names:
@@ -49,13 +50,13 @@ def axfr(self, server):
4950
record = zone[name].to_text(name)
5051
self.results.append(record)
5152
if self.results:
52-
logger.log('DEBUG', f'发现{self.domain}{server}上的域传送记录')
53+
logger.log('DEBUG', f'Found the domain transfer record of {self.domain} on {server}')
5354
logger.log('DEBUG', '\n'.join(self.results))
5455
self.results = []
5556

5657
def check(self):
5758
"""
58-
正则匹配响应头中的内容安全策略字段以发现子域名
59+
check
5960
"""
6061
resolver = utils.dns_resolver()
6162
try:
@@ -65,7 +66,7 @@ def check(self):
6566
return
6667
nsservers = [str(answer) for answer in answers]
6768
if not len(nsservers):
68-
logger.log('ALERT', f'没有找到{self.domain}的NS域名服务器记录')
69+
logger.log('ALERT', f'No name server record found for {self.domain}')
6970
return
7071
for nsserver in nsservers:
7172
self.axfr(nsserver)

modules/check/csp.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
检查内容安全策略收集子域名收集子域名
2+
Collect subdomains from ContentSecurityPolicy
33
"""
44
import requests
55

@@ -10,7 +10,7 @@
1010

1111
class CheckCSP(Module):
1212
"""
13-
检查内容安全策略收集子域名
13+
Collect subdomains from ContentSecurityPolicy
1414
"""
1515
def __init__(self, domain, header):
1616
Module.__init__(self)
@@ -21,9 +21,9 @@ def __init__(self, domain, header):
2121

2222
def grab_header(self):
2323
"""
24-
抓取请求头
24+
Get header
2525
26-
:return: 请求头
26+
:return: ContentSecurityPolicy header
2727
"""
2828
csp_header = dict()
2929
urls = [f'http://{self.domain}',
@@ -47,10 +47,10 @@ def check(self):
4747
self.csp_header = self.grab_header()
4848
csp = self.header.get('Content-Security-Policy')
4949
if not self.csp_header:
50-
logger.log('DEBUG', f'获取{self.domain}域的请求头失败')
50+
logger.log('DEBUG', f'Failed to get header of {self.domain} domain')
5151
return
5252
if not csp:
53-
logger.log('DEBUG', f'{self.domain}域的响应头不存在内容安全策略字段')
53+
logger.log('DEBUG', f'There is no Content-Security-Policy in the header of {self.domain}')
5454
return
5555
self.subdomains = self.match_subdomains(self.domain, csp)
5656

0 commit comments

Comments
 (0)