config/config.json file is the primary configuration file for scan4all. It controls all aspects of scanning behavior, from performance settings to dictionary paths.
File Location
scan4all searches forconfig.json in the following locations:
./config/config.json(current directory)./config.json$HOME/config/config.json$HOME/.config/config.json/etc/config.json
The first found configuration file will be used. Environment variables can override any setting.
Core Settings
Performance & Resources
| Field | Type | Default | Description |
|---|---|---|---|
ScanPoolSize | integer | 5000 | Maximum concurrent scan operations |
Fuzzthreads | integer | 32 | Number of fuzzing threads (2, 4, 8, 16, 32) |
esthread | integer | 8 | Elasticsearch worker threads |
hydrathread | integer | 64 | Password brute-force threads |
LimitReader | integer | 819200 | Max response body size (bytes) |
MaxErrorTimes | integer | 100 | Max errors before stopping |
Scan Behavior
| Field | Type | Default | Description |
|---|---|---|---|
priorityNmap | boolean | true | Use nmap for port scanning if available |
noScan | boolean | false | Skip port scanning (read nmap XML results) |
UrlPrecise | boolean | true | Enable precise URL scanning |
ParseSSl | boolean | true | Deep analysis of SSL certificates |
EnableSubfinder | boolean | false | Enable subdomain enumeration |
EnableKsubdomain | boolean | true | Enable ksubdomain scanning |
EnableHoneyportDetection | boolean | true | Detect and skip honeypots |
enableNuclei | boolean | true | Enable Nuclei vulnerability scanner |
enableMultNuclei | boolean | false | Enable multiple Nuclei instances |
enableByWaf | boolean | true | Enable WAF bypass techniques |
enableEmbedYaml | boolean | true | Use embedded YAML templates |
enableFileFuzz | boolean | true | Enable file fuzzing |
enableWebScan | boolean | false | Enable web application scanning |
CheckWeakPassword | boolean | true | Enable password brute-forcing |
Network & Protocol Settings
| Field | Type | Default | Description |
|---|---|---|---|
OnClient | boolean | true | Enable client mode |
Cookie | string | "" | Custom cookie header for requests |
nmapScan | string | See below | Nmap execution command with sudo |
nmap | string | See below | Nmap parameters |
KsubdomainRegxp | string | See below | Ksubdomain regex pattern |
Nmap requires root privileges. Set the
PPSSWWDD environment variable with your root password:httpx Configuration
| Field | Type | Default | Description |
|---|---|---|---|
Pipeline | boolean | false | Enable HTTP pipelining |
HTTP2Probe | boolean | false | Probe for HTTP/2 support |
VHost | boolean | false | Enable virtual host discovery |
CSPProbe | boolean | true | Check Content-Security-Policy |
TLSProbe | boolean | true | Probe TLS/SSL configuration |
TechDetect | boolean | true | Detect technologies |
FollowRedirects | boolean | false | Follow HTTP redirects |
MaxRedirects | integer | 3 | Maximum redirect hops |
naabu Configuration
| Field | Type | Default | Description |
|---|---|---|---|
TopPorts | string | ”http” | Port category to scan |
ScanAllIPS | boolean | true | Scan all IPs for a domain |
Threads | integer | 50 | Number of scanning threads |
EnableProgressBar | boolean | false | Show progress bar |
Integration Settings
Elasticsearch
| Field | Type | Default | Description |
|---|---|---|---|
enableEsSv | boolean | true | Enable Elasticsearch storage |
esUrl | string | See below | Elasticsearch endpoint URL |
External Services
| Field | Type | Default | Description |
|---|---|---|---|
CeyeDomain | string | scan4all.51pwn.com | Ceye domain for DNS callback |
JndiAddress | string | See config | JNDI server address |
ldapServer | string | See config | LDAP server for exploits |
Dictionary Configuration
All dictionary paths are relative to the scan4all directory. See Custom Dictionaries for details.Brute-Force Dictionaries
SSH Dictionaries
SSH Dictionaries
Database Dictionaries
Database Dictionaries
Web Application Dictionaries
Web Application Dictionaries
Fuzzing Dictionaries
Fuzzing Dictionaries
Fingerprint Dictionaries
Exploit Configuration
| Field | Description |
|---|---|
Path | Directory containing custom POC files |
Logs | Error log file location |
Cache Settings
| Field | Type | Default | Description |
|---|---|---|---|
CacheName | string | .DbCache | Cache directory name |
autoRmCache | string | true | Auto-remove cache on exit |
The cache is automatically removed on Windows or when
autoRmCache is enabled.Advanced Settings
Development & Debugging
Hydra Password Defaults
Complete Example
Next Steps
- Configure custom dictionaries
- Set up Elasticsearch integration
- Learn about environment variables