MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / setOptimize

Function setOptimize

lib/core/common.py:3551–3563  ·  view source on GitHub ↗

Sets options turned on by switch '-o'

()

Source from the content-addressed store, hash-verified

3549 return any(isTechniqueAvailable(_) for _ in (PAYLOAD.TECHNIQUE.BOOLEAN, PAYLOAD.TECHNIQUE.STACKED, PAYLOAD.TECHNIQUE.TIME))
3550
3551def setOptimize():
3552 """
3553 Sets options turned on by switch '-o'
3554 """
3555
3556 # conf.predictOutput = True
3557 conf.keepAlive = True
3558 conf.threads = 3 if conf.threads < 3 and cmdLineOptions.threads is None else conf.threads
3559 conf.nullConnection = not any((conf.data, conf.textOnly, conf.titles, conf.string, conf.notString, conf.regexp, conf.tor))
3560
3561 if not conf.nullConnection:
3562 debugMsg = "turning off switch '--null-connection' used indirectly by switch '-o'"
3563 logger.debug(debugMsg)
3564
3565def saveConfig(conf, filename):
3566 """

Callers 2

_cleanupOptionsFunction · 0.90
initTechniqueFunction · 0.85

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…