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

Method initialize_options

lib/utils/api.py:138–158  ·  view source on GitHub ↗
(self, taskid)

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.95

Calls 4

AttribDictClass · 0.90
unArrayizeValueFunction · 0.90
itemsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected