(self, taskid)
| 136 | self.initialize_options(taskid) |
| 137 | |
| 138 | def initialize_options(self, taskid): |
| 139 | datatype = {"boolean": False, "string": None, "integer": None, "float": None} |
| 140 | self.options = AttribDict() |
| 141 | |
| 142 | for _ in optDict: |
| 143 | for name, type_ in optDict[_].items(): |
| 144 | type_ = unArrayizeValue(type_) |
| 145 | self.options[name] = _defaults.get(name, datatype[type_]) |
| 146 | |
| 147 | # Let sqlmap engine knows it is getting called by the API, |
| 148 | # the task ID and the file path of the IPC database |
| 149 | self.options.api = True |
| 150 | self.options.taskid = taskid |
| 151 | self.options.database = Database.filepath |
| 152 | |
| 153 | # Enforce batch mode and disable coloring and ETA |
| 154 | self.options.batch = True |
| 155 | self.options.disableColoring = True |
| 156 | self.options.eta = False |
| 157 | |
| 158 | self._original_options = AttribDict(self.options) |
| 159 | |
| 160 | def set_option(self, option, value): |
| 161 | self.options[option] = value |
no test coverage detected