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

Function _setOS

lib/core/option.py:671–692  ·  view source on GitHub ↗

Force the back-end DBMS operating system option.

()

Source from the content-addressed store, hash-verified

669 conf.fileWriteType = getFileType(conf.fileWrite)
670
671def _setOS():
672 """
673 Force the back-end DBMS operating system option.
674 """
675
676 if not conf.os:
677 return
678
679 if conf.os.lower() not in SUPPORTED_OS:
680 errMsg = "you provided an unsupported back-end DBMS operating "
681 errMsg += "system. The supported DBMS operating systems for OS "
682 errMsg += "and file system access are %s. " % ', '.join([o.capitalize() for o in SUPPORTED_OS])
683 errMsg += "If you do not know the back-end DBMS underlying OS, "
684 errMsg += "do not provide it and sqlmap will fingerprint it for "
685 errMsg += "you."
686 raise SqlmapUnsupportedDBMSException(errMsg)
687
688 debugMsg = "forcing back-end DBMS operating system to user defined "
689 debugMsg += "value '%s'" % conf.os
690 logger.debug(debugMsg)
691
692 Backend.setOs(conf.os)
693
694def _setTechnique():
695 validTechniques = sorted(getPublicTypeMembers(PAYLOAD.TECHNIQUE), key=lambda x: x[1])

Callers 1

initFunction · 0.85

Calls 4

capitalizeMethod · 0.80
debugMethod · 0.80
setOsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…