Skip to content

Commit

Permalink
在获取载荷时校验探针有效性
Browse files Browse the repository at this point in the history
  • Loading branch information
phplaber committed Aug 4, 2024
1 parent fe0ce50 commit 8aef810
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ def do_fuzz(self, requests, fuzz_results, flag, load_page):
for probe in self.probes:
if hasattr(Probe, probe) and callable(getattr(Probe, probe)):
getattr(Probe, probe)(probe_ins)
else:
if probe not in ['jsonp']:
print(f'[*] invalid probe: {probe}')

# 关闭 Chrome 浏览器
if chrome is not None:
Expand Down
2 changes: 2 additions & 0 deletions yawf.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@
payload_file = os.path.join(payload_path, f'{probe}.txt')
if check_file(payload_file):
probes_payload[probe] = read_file(payload_file)
elif probe not in ['jsonp']:
print(f'[*] invalid probe: {probe}')

# 初始化 dnslog 实例
dnslog = None
Expand Down
2 changes: 2 additions & 0 deletions yawf_bulk.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@
payload_file = os.path.join(payload_path, f'{probe}.txt')
if check_file(payload_file):
probes_payload[probe] = read_file(payload_file)
elif probe not in ['jsonp']:
print(f'[*] invalid probe: {probe}')

# 初始化 dnslog 实例
dnslog = None
Expand Down

0 comments on commit 8aef810

Please sign in to comment.