-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcleanup_guide.py
More file actions
31 lines (29 loc) · 1.14 KB
/
Copy pathcleanup_guide.py
File metadata and controls
31 lines (29 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python3
"""
Script to clean up verbose println! and tracing statements from runner.rs
This will be manually applied based on the logic here.
"""
# Remove these verbose println! statements:
verbose_patterns_to_remove = [
'println!("[*] Cleaning previous scan results...");',
'println!("[-] Removed: {}", path.file_name()...',
'println!("[+] Results directory cleaned");',
'println!("[+] Created results directory: {}", results_dir);',
'println!("[+] Found {} subdomains"',
'println!("[+] Subdomain report saved to: {}"',
'println!("[+] Adding API subdomain to scan: {}"',
'println!("[+] Total targets to scan: {}"',
'println!("[*] Deep JS Analysis: Scanning..."', # Replace with cleaner version
'println!(" [+] Endpoints: {}"', # Combine into one line
'tracing::info!', # Most of these
'tracing::debug!', # All of these
]
# Keep only essential output:
essential_patterns_to_keep = [
'println!("\\n╔══..."', # Scan headers
'println!("[*] Target: {}"',
'println!("📊 Summary:")',
'println!("🔍 Security Findings:")',
# Severity emoji outputs
# Final summary
]