{"record":{"id":"a28fd40e7605add3","repo":"sqlmapproject/sqlmap","slug":"it-appears-that-tor-is-not-properly-set-please-tr","errorCode":null,"errorMessage":"it appears that Tor is not properly set. Please try using options '--tor-type' and/or '--tor-port'","messagePattern":"it appears that Tor is not properly set\\. Please try using options '--tor-type' and/or '--tor-port'","errorType":"exception","errorClass":"SqlmapConnectionException","httpStatus":null,"severity":"error","filePath":"lib/core/option.py","lineNumber":2768,"sourceCode":"        _http_client.HTTPConnection._http_vsn = 10\n        _http_client.HTTPConnection._http_vsn_str = 'HTTP/1.0'\n\ndef _checkTor():\n    if not conf.checkTor:\n        return\n\n    infoMsg = \"checking Tor connection\"\n    logger.info(infoMsg)\n\n    try:\n        page, _, _ = Request.getPage(url=\"https://check.torproject.org/api/ip\", raise404=False)\n        tor_status = json.loads(page)\n    except (SqlmapConnectionException, TypeError, ValueError):\n        tor_status = None\n\n    if not tor_status or not tor_status.get(\"IsTor\"):\n        errMsg = \"it appears that Tor is not properly set. Please try using options '--tor-type' and/or '--tor-port'\"\n        raise SqlmapConnectionException(errMsg)\n    else:\n        infoMsg = \"Tor is properly being used\"\n        logger.info(infoMsg)\n\ndef _basicOptionValidation():\n    _nonSqlTechniques = [\"--%s\" % _ for _ in NONSQL_TECHNIQUES if conf.get(_)]\n    if len(_nonSqlTechniques) > 1:\n        errMsg = \"only one non-SQL technique switch may be used at a time (found: %s). \" % \", \".join(_nonSqlTechniques)\n        errMsg += \"each is a self-contained scan for a different back-end class - pick one\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.limitStart is not None and not (isinstance(conf.limitStart, int) and conf.limitStart > 0):\n        errMsg = \"value for option '--start' (limitStart) must be an integer value greater than zero (>0)\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.limitStop is not None and not (isinstance(conf.limitStop, int) and conf.limitStop > 0):\n        errMsg = \"value for option '--stop' (limitStop) must be an integer value greater than zero (>0)\"\n        raise SqlmapSyntaxException(errMsg)","sourceCodeStart":2750,"sourceCodeEnd":2786,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/option.py#L2750-L2786","documentation":"Error \"it appears that Tor is not properly set. Please try using options '--tor-type' and/or '--tor-port'\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/core/option.py:2768 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"}