The Hidden Switches tab contains advanced, specialized, and less commonly used SQLmap options that provide fine-grained control over injection techniques, evasion methods, and experimental features.
The Hidden Switches tab contains five main sections:
Parameter: --skip-parameter-check
Description: Skip parameter validity check
Behavior: Tests all parameters regardless of format
Use Cases:
Parameter: --skip-dbms-banner
Description: Skip DBMS banner retrieval
Behavior: Assumes DBMS type without verification
Use Cases:
Parameter: --skip-dynamic
Description: Skip dynamic parameters
Behavior: Ignores parameters that change between requests
Use Cases:
Parameter: --force-parameter=PARAM
Description: Force test of specific parameter
Examples:
--force-parameter=id
--force-parameter=username,password
--force-parameter=custom_param
Use Cases:
Parameter: --ignore-401
Description: Ignore HTTP 401 Unauthorized responses
Behavior: Continues testing despite authentication errors
Use Cases:
Parameter: --ignore-redirects
Description: Ignore HTTP redirects
Behavior: Doesn’t follow 3xx responses
Use Cases:
Parameter: --ignore-timeouts
Description: Ignore connection timeouts
Behavior: Continues despite timeout errors
Use Cases:
Parameter: --skip-waf
Description: Skip WAF detection
Behavior: Assumes no WAF present
Use Cases:
Parameter: --disable-precon
Description: Disable payload pre-connect test
Behavior: Skips payload validation
Use Cases:
Parameter: --skip-all
Description: Skip all optimization checks
Behavior: Maximum performance, minimum safety
Use Cases:
Parameter: --flush-cache
Description: Flush HTTP cache
Behavior: Clears cached responses
Use Cases:
Parameter: --fresh-cache
Description: Generate fresh HTTP cache
Behavior: Ignores existing cache
Use Cases:
Parameter: --cache-dir=DIR
Description: HTTP cache directory
Examples:
--cache-dir=/tmp/sqlmap_cache/
--cache-dir=C:\sqlmap\cache\
--cache-dir=./.cache/
Use Cases:
Parameter: --force-method=METHOD
Description: Force HTTP method
Supported Methods: GET, POST, PUT, DELETE, HEAD, OPTIONS, TRACE, PATCH
Examples:
--force-method=POST
--force-method=PUT
--force-method=DELETE
Use Cases:
Parameter: --method-tamper=METHOD
Description: Tamper HTTP method
Behavior: Modifies HTTP method in request
Use Cases:
Parameter: --user-agent=AGENT
Description: Custom User-Agent header
Examples:
--user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
--user-agent="sqlmap/1.6.5#stable (https://sqlmap.org)"
--user-agent="Googlebot/2.1 (+http://www.google.com/bot.html)"
Use Cases:
Parameter: --random-agent
Description: Use random User-Agent
Behavior: Rotates User-Agent headers
Use Cases:
Parameter: --host=HOST
Description: Custom Host header
Examples:
--host=example.com
--host=internal.example.com
--host=127.0.0.1
Use Cases:
Parameter: --referer=REFERER
Description: Custom Referer header
Examples:
--referer="http://google.com"
--referer="http://example.com/login.php"
--referer="http://malicious.com"
Use Cases:
Parameter: --debug
Description: Debug HTTP traffic
Behavior: Shows detailed HTTP request/response information
Use Cases:
Parameter: --traffic-file=FILE
Description: Log all HTTP traffic to file
Examples:
--traffic-file=./traffic.log
--traffic-file=/var/log/sqlmap_traffic.txt
--traffic-file=C:\logs\http_traffic.log
Use Cases:
Parameter: --save-traffic=FILE
Description: Save HTTP traffic to file
Behavior: Records all HTTP communications
Use Cases:
Parameter: --hex
Description: Use hex representation for data
Behavior: Shows data in hexadecimal format
Use Cases:
Parameter: --smart
Description: Conduct thorough tests only if positive heuristic
Behavior: Conservative scanning approach
Use Cases:
Parameter: --dry-run
Description: Dry run, only show what would be done
Behavior: Shows planned actions without executing
Use Cases:
Parameter: --tor
Description: Use Tor anonymity network
Behavior: Routes traffic through Tor
Use Cases:
Parameter: --tor-type=TYPE
Description: Tor proxy type
Options: HTTP, SOCKS4, SOCKS5
Examples:
--tor-type=SOCKS5
--tor-type=HTTP
Use Cases:
Parameter: --tor-port=PORT
Description: Tor proxy port
Default: 9050
Examples:
--tor-port=9050
--tor-port=9150
Use Cases:
Parameter: --check-tor
Description: Check Tor connection
Behavior: Verifies Tor connectivity
Use Cases:
Parameter: --delay=SECONDS
Description: Delay between each HTTP request
Examples:
--delay=1
--delay=0.5
--delay=2.5
Use Cases:
Parameter: --timeout=SECONDS
Description: Seconds to wait for each response
Default: 30
Examples:
--timeout=10
--timeout=60
--timeout=120
Use Cases:
Parameter: --retries=NUM
Description: Retries when connection timeout occurs
Default: 3
Examples:
--retries=1
--retries=5
--retries=10
Use Cases:
Parameter: --randomize=PARAM
Description: Randomize value for given parameter
Examples:
--randomize=id
--randomize=session
--randomize=token
Use Cases:
Parameter: --skip-charsets
Description: Skip payload character set checks
Behavior: Uses all character sets
Use Cases:
Skip WAF Detection: ✓ Enabled
Skip All Checks: ✓ Enabled
Flush HTTP Cache: ✓ Enabled
Random User-Agent: ✓ Enabled
Delay: 2 seconds
Generated Command:
sqlmap -u "http://example.com/page.php?id=1" --skip-waf --skip-all --flush-cache --random-agent --delay=2
Force HTTP Method: POST
Custom User-Agent: sqlmap/1.6.5
Host Header: internal.example.com
Referer: http://google.com
Tor: ✓ Enabled
Generated Command:
sqlmap -u "http://example.com/api.php" --force-method=POST --user-agent="sqlmap/1.6.5" --host=internal.example.com --referer="http://google.com" --tor
Debug: ✓ Enabled
Traffic File: ./debug_traffic.log
Hex Dump: ✓ Enabled
Dry Run: ✓ Enabled
Smart Mode: ✓ Enabled
Generated Command:
sqlmap -u "http://example.com/debug.php?id=1" --debug --traffic-file=./debug_traffic.log --hex --dry-run --smart
Timeout: 60 seconds
Retries: 5
Randomize: session
Skip Character Set: ✓ Enabled
Fresh Cache: ✓ Enabled
Generated Command:
sqlmap -u "http://example.com/unstable.php?id=1" --timeout=60 --retries=5 --randomize=session --skip-charsets --fresh-cache
Skip Parameter Check: ✓ Enabled
Ignore Redirects: ✓ Enabled
Force Method: PUT
Random Agent: ✓ Enabled
Tor: ✓ Enabled
Debug: ✓ Enabled
Smart: ✓ Enabled
Delay: 1.5 seconds
Generated Command:
sqlmap -u "http://example.com/advanced.php?id=1" --skip-parameter-check --ignore-redirects --force-method=PUT --random-agent --tor --debug --smart --delay=1.5
Problem: Tor connection failing Solutions:
Problem: Scanning significantly slower Solutions:
Problem: Frequent connection timeouts Solutions:
Problem: Legitimate requests blocked by WAF Solutions:
Problem: Debug output overwhelming Solutions: