Skip to content

not set the type of disablePrecon  #1581

@Cnlouds

Description

@Cnlouds

env: win7 64bit
command : sqlmapapi.py -s

the disablePrecon is not set the default value or type

parser.add_option("--disable-precon", dest="disablePrecon", action="store_true",help=SUPPRESS_HELP)

rasie a error

{
    "log": [
        {
            "message": "unable to access item 'disablePrecon'",
            "level": "CRITICAL",
            "time": "18:01:02"
        }
    ],
    "success": true
}

fix: lib\core\optiondict.py line:230

"Hidden": {
                               "dummy":             "boolean",
                               "disablePrecon":     "boolean", # add
                               "binaryFields":      "string",
                               "profile":           "boolean",
                               "cpuThrottle":       "integer",
                               "forceDns":          "boolean",
                               "identifyWaf":       "boolean",
                               "skipWaf":           "boolean",
                               "ignore401":         "boolean",
                               "smokeTest":         "boolean",
                               "liveTest":          "boolean",
                               "stopFail":          "boolean",
                               "runCase":           "string",
                      }

thanks

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions