{"record":{"id":"acab44459c5e1ec9","repo":"sqlmapproject/sqlmap","slug":"switch-check-tor-requires-usage-of-switch-t","errorCode":null,"errorMessage":"switch '--check-tor' requires usage of switch '--tor' (or option '--proxy' with HTTP proxy address of Tor service)","messagePattern":"switch '--check-tor' requires usage of switch '--tor' \\(or option '--proxy' with HTTP proxy address of Tor service\\)","errorType":"exception","errorClass":"SqlmapSyntaxException","httpStatus":null,"severity":"error","filePath":"lib/core/option.py","lineNumber":3040,"sourceCode":"    if conf.tor and conf.ignoreProxy:\n        errMsg = \"switch '--tor' is incompatible with switch '--ignore-proxy'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.tor and conf.proxy:\n        errMsg = \"switch '--tor' is incompatible with option '--proxy'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.proxy and conf.proxyFile:\n        errMsg = \"switch '--proxy' is incompatible with option '--proxy-file'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.proxyFreq and not conf.proxyFile:\n        errMsg = \"option '--proxy-freq' requires usage of option '--proxy-file'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.checkTor and not any((conf.tor, conf.proxy)):\n        errMsg = \"switch '--check-tor' requires usage of switch '--tor' (or option '--proxy' with HTTP proxy address of Tor service)\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.torPort is not None and not (isinstance(conf.torPort, int) and conf.torPort >= 0 and conf.torPort <= 65535):\n        errMsg = \"value for option '--tor-port' must be in range [0, 65535]\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.torType not in getPublicTypeMembers(PROXY_TYPE, True):\n        errMsg = \"option '--tor-type' accepts one of following values: %s\" % \", \".join(getPublicTypeMembers(PROXY_TYPE, True))\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.dumpFormat not in getPublicTypeMembers(DUMP_FORMAT, True):\n        errMsg = \"option '--dump-format' accepts one of following values: %s\" % \", \".join(getPublicTypeMembers(DUMP_FORMAT, True))\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.uValues and (not re.search(r\"\\A['\\w\\s.,()%s-]+\\Z\" % CUSTOM_INJECTION_MARK_CHAR, conf.uValues) or conf.uValues.count(CUSTOM_INJECTION_MARK_CHAR) != 1):\n        errMsg = \"option '--union-values' must contain valid UNION column values, along with the injection position \"\n        errMsg += \"(e.g. 'NULL,1,%s,NULL')\" % CUSTOM_INJECTION_MARK_CHAR\n        raise SqlmapSyntaxException(errMsg)\n","sourceCodeStart":3022,"sourceCodeEnd":3058,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/option.py#L3022-L3058","documentation":"Error \"switch '--check-tor' requires usage of switch '--tor' (or option '--proxy' with HTTP proxy address of Tor service)\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/core/option.py:3040 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}