{"record":{"id":"7686be4b245c06e6","repo":"sqlmapproject/sqlmap","slug":"unknown-option-s-s-scan-expects-sqlmap-optio","errorCode":null,"errorMessage":"unknown option(s) %s - scan() expects sqlmap option names as used in a configuration file (e.g. getBanner, dumpTable, tbl, technique, level), not command line switches","messagePattern":"unknown option\\(s\\) (.+?) - scan\\(\\) expects sqlmap option names as used in a configuration file \\(e\\.g\\. getBanner, dumpTable, tbl, technique, level\\), not command line switches","errorType":"validation","errorClass":"SqlmapError","httpStatus":null,"severity":"error","filePath":"lib/utils/library.py","lineNumber":110,"sourceCode":"        raise SqlmapError(\"scan() requires either 'url' or 'requestFile'\")\n\n    if not os.path.isfile(SQLMAP_FILE):\n        raise SqlmapError(\"could not locate the sqlmap engine ('%s')\" % SQLMAP_FILE)\n\n    knownOptions = set()\n    for family in optDict.values():\n        knownOptions.update(family)\n\n    config = {}\n    if url:\n        config[\"url\"] = url\n    if requestFile:\n        config[\"requestFile\"] = requestFile\n    config.update(options)\n\n    unknown = [_ for _ in config if _ not in knownOptions]\n    if unknown:\n        raise SqlmapError(\"unknown option(s) %s - scan() expects sqlmap option names as used in a configuration file (e.g. getBanner, dumpTable, tbl, technique, level), not command line switches\" % \", \".join(repr(_) for _ in sorted(unknown)))\n\n    handle, report = tempfile.mkstemp(prefix=\"sqlmap-\", suffix=\".json\")\n    os.close(handle)\n\n    # Each run gets its own output directory so concurrent scans can not collide on session/dump files\n    # and no scan state piles up on disk. A caller-provided 'outputDir' is respected and left in place.\n    ownOutput = not outputDir\n    if ownOutput:\n        outputDir = tempfile.mkdtemp(prefix=\"sqlmap-output-\")\n\n    # engine plumbing goes through the very same option namespace\n    config[\"batch\"] = True\n    config[\"disableColoring\"] = True\n    config[\"outputDir\"] = outputDir\n    config[\"reportJson\"] = report\n\n    handle, configFile = tempfile.mkstemp(prefix=\"sqlmap-\", suffix=\".conf\")\n    os.close(handle)","sourceCodeStart":92,"sourceCodeEnd":128,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/utils/library.py#L92-L128","documentation":"Error \"unknown option(s) %s - scan() expects sqlmap option names as used in a configuration file (e.g. getBanner, dumpTable, tbl, technique, level), not command line switches\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/utils/library.py:110 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"}