sqlmapproject/sqlmap · error · SqlmapSyntaxException
option '--safe-freq' requires usage of option '--safe-url'…
Error message
option '--safe-freq' requires usage of option '--safe-url' or '--safe-req'
What it means
Startup option-dependency guard in _basicOptionValidation: --safe-freq sets how often the safe request is sent, but there must be a safe request defined. Fires when conf.safeFreq is set without either conf.safeUrl (--safe-url) or conf.safeReqFile (--safe-req).
Solutions
- Provide --safe-url='http://site/safe' (optionally with --safe-post)
- Provide --safe-req=requestfile.txt instead
- Remove --safe-freq if no safe request is intended
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at lib/core/option.py:2984 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/27fcb9b7e788741b.
Report an issue: GitHub.
Appendix: source
Thrown at lib/core/option.py:2984
if conf.threads > MAX_NUMBER_OF_THREADS and not conf.get("skipThreadCheck"):
errMsg = "maximum number of used threads is %d avoiding potential connection issues" % MAX_NUMBER_OF_THREADS
raise SqlmapSyntaxException(errMsg)
if conf.forms and not any((conf.url, conf.googleDork, conf.bulkFile)):
errMsg = "switch '--forms' requires usage of option '-u' ('--url'), '-g' or '-m'"
raise SqlmapSyntaxException(errMsg)
if conf.crawlExclude and not conf.crawlDepth:
errMsg = "option '--crawl-exclude' requires usage of switch '--crawl'"
raise SqlmapSyntaxException(errMsg)
if conf.safePost and not conf.safeUrl:
errMsg = "option '--safe-post' requires usage of option '--safe-url'"
raise SqlmapSyntaxException(errMsg)
if conf.safeFreq and not any((conf.safeUrl, conf.safeReqFile)):
errMsg = "option '--safe-freq' requires usage of option '--safe-url' or '--safe-req'"
raise SqlmapSyntaxException(errMsg)
if conf.safeReqFile and any((conf.safeUrl, conf.safePost)):
errMsg = "option '--safe-req' is incompatible with option '--safe-url' and option '--safe-post'"
raise SqlmapSyntaxException(errMsg)
if conf.csrfUrl and not conf.csrfToken:
errMsg = "option '--csrf-url' requires usage of option '--csrf-token'"
raise SqlmapSyntaxException(errMsg)
if conf.csrfMethod and not conf.csrfToken:
errMsg = "option '--csrf-method' requires usage of option '--csrf-token'"
raise SqlmapSyntaxException(errMsg)
if conf.csrfData and not conf.csrfToken:
errMsg = "option '--csrf-data' requires usage of option '--csrf-token'"
raise SqlmapSyntaxException(errMsg)
if conf.csrfToken and conf.threads > 1:View on GitHub (pinned to 0a35b20e39)