{"record":{"id":"036a9ed736e7c5c4","repo":"sqlmapproject/sqlmap","slug":"value-for-option-first-firstchar-must-be-sma","errorCode":null,"errorMessage":"value for option '--first' (firstChar) must be smaller than or equal to value for --last (lastChar) option","messagePattern":"value for option '--first' \\(firstChar\\) must be smaller than or equal to value for --last \\(lastChar\\) option","errorType":"exception","errorClass":"SqlmapSyntaxException","httpStatus":null,"severity":"error","filePath":"lib/core/option.py","lineNumber":2804,"sourceCode":"        raise SqlmapSyntaxException(errMsg)\n\n    if conf.level is not None and not (isinstance(conf.level, int) and conf.level >= 1 and conf.level <= 5):\n        errMsg = \"value for option '--level' must be an integer value from range [1, 5]\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.risk is not None and not (isinstance(conf.risk, int) and conf.risk >= 1 and conf.risk <= 3):\n        errMsg = \"value for option '--risk' must be an integer value from range [1, 3]\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if isinstance(conf.limitStart, int) and conf.limitStart > 0 and \\\n       isinstance(conf.limitStop, int) and conf.limitStop < conf.limitStart:\n        warnMsg = \"usage of option '--start' (limitStart) which is bigger than value for --stop (limitStop) option is considered unstable\"\n        logger.warning(warnMsg)\n\n    if isinstance(conf.firstChar, int) and conf.firstChar > 0 and \\\n       isinstance(conf.lastChar, int) and conf.lastChar < conf.firstChar:\n        errMsg = \"value for option '--first' (firstChar) must be smaller than or equal to value for --last (lastChar) option\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.proxyFile and not any((conf.randomAgent, conf.mobile, conf.agent, conf.requestFile)):\n        warnMsg = \"usage of switch '--random-agent' is strongly recommended when \"\n        warnMsg += \"using option '--proxy-file'\"\n        logger.warning(warnMsg)\n\n    if conf.textOnly and conf.nullConnection:\n        errMsg = \"switch '--text-only' is incompatible with switch '--null-connection'\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.http2 and any((conf.tor, conf.proxy and conf.proxy.lower().startswith(\"socks\"))):\n        errMsg = \"HTTP/2 support is currently incompatible with SOCKS/Tor proxies\"\n        raise SqlmapSyntaxException(errMsg)\n\n    if conf.uValues and conf.uChar:\n        errMsg = \"option '--union-values' is incompatible with option '--union-char'\"\n        raise SqlmapSyntaxException(errMsg)\n","sourceCodeStart":2786,"sourceCodeEnd":2822,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/option.py#L2786-L2822","documentation":"Error \"value for option '--first' (firstChar) must be smaller than or equal to value for --last (lastChar) option\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/core/option.py:2804 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"}