scan4all provides multiple ways to configure its behavior through configuration files, environment variables, and command-line parameters. This flexible configuration system allows you to customize everything from scan settings to dictionary paths.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GhostTroops/scan4all/llms.txt
Use this file to discover all available pages before exploring further.
Configuration Priority
scan4all uses the following priority order when loading configuration:- Environment Variables - Highest priority
- Configuration File (
config/config.json) - Default settings - Default Values - Built-in fallbacks
Environment variables always override settings in the configuration file. This allows for quick adjustments without modifying files.
Configuration File Location
Theconfig.json file is searched in the following locations (in order):
./config/config.json./config.json$HOME/config/config.json$HOME/.config/config.json/etc/config.json
Main Configuration Areas
Scan Performance
Control the performance and resource usage of scans:- ScanPoolSize - Maximum concurrent scan threads (default: 5000)
- Fuzzthreads - Number of fuzzing threads (default: 32)
- esthread - Elasticsearch worker threads (default: 8)
- hydrathread - Password brute-force threads (default: 64)
Scan Behavior
Network Settings
- LimitReader - Maximum response body size in bytes (default: 819200)
- MaxErrorTimes - Maximum errors before stopping (default: 100)
- OnClient - Enable client mode (default: true)
Integration Settings
- enableEsSv - Enable Elasticsearch integration (default: true)
- esUrl - Elasticsearch endpoint URL
- CeyeDomain - Ceye domain for DNS callback detection
- JndiAddress - JNDI server address for exploitation
Configuration Categories
Config File
Detailed reference for all config.json options
Custom Dictionaries
Configure custom wordlists for brute-force attacks
Elasticsearch
Set up result storage and indexing
Environment Variables
Override settings with environment variables
Quick Configuration Examples
Enable Verbose Output
Disable Port Scanning
Use Custom Dictionary
Editconfig/config.json:
Enable Subdomain Discovery
Cache Configuration
scan4all uses a local cache to improve performance:- CacheName - Cache directory name (default:
.DbCache) - autoRmCache - Automatically remove cache on exit (default: true)
autoRmCache is enabled.
Next Steps
- Review the complete configuration file reference
- Learn about custom dictionary configuration
- Set up Elasticsearch integration
- Explore environment variables