Force the back-end DBMS operating system option.
()
| 669 | conf.fileWriteType = getFileType(conf.fileWrite) |
| 670 | |
| 671 | def _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 | |
| 694 | def _setTechnique(): |
| 695 | validTechniques = sorted(getPublicTypeMembers(PAYLOAD.TECHNIQUE), key=lambda x: x[1]) |
no test coverage detected
searching dependent graphs…