Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 053b0fd

Browse files
committed
Renaming conf.oDir to conf.outputDir
1 parent 7cc4159 commit 053b0fd

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

lib/core/option.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,8 +1507,8 @@ def _cleanupOptions():
15071507
if conf.torType:
15081508
conf.torType = conf.torType.upper()
15091509

1510-
if conf.oDir:
1511-
paths.SQLMAP_OUTPUT_PATH = conf.oDir
1510+
if conf.outputDir:
1511+
paths.SQLMAP_OUTPUT_PATH = conf.outputDir
15121512
setPaths()
15131513

15141514
if conf.string:

lib/core/optiondict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
"forms": "boolean",
192192
"freshQueries": "boolean",
193193
"hexConvert": "boolean",
194-
"oDir": "string",
194+
"outputDir": "string",
195195
"parseErrors": "boolean",
196196
"pivotColumn": "string",
197197
"saveCmdline": "boolean",

lib/parse/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def cmdLineParser():
611611
action="store_true",
612612
help="Use DBMS hex function(s) for data retrieval")
613613

614-
general.add_option("--output-dir", dest="oDir",
614+
general.add_option("--output-dir", dest="outputDir",
615615
action="store",
616616
help="Custom output directory path")
617617

lib/utils/api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,20 +144,20 @@ def reset_options(self):
144144
self.options = AttribDict(self._original_options)
145145

146146
def set_output_directory(self):
147-
if self.get_option("oDir"):
148-
if os.path.isdir(self.get_option("oDir")):
149-
self.output_directory = self.get_option("oDir")
147+
if self.get_option("outputDir"):
148+
if os.path.isdir(self.get_option("outputDir")):
149+
self.output_directory = self.get_option("outputDir")
150150
else:
151151
try:
152-
os.makedirs(self.get_option("oDir"))
153-
self.output_directory = self.get_option("oDir")
152+
os.makedirs(self.get_option("outputDir"))
153+
self.output_directory = self.get_option("outputDir")
154154
except OSError:
155155
pass
156156

157157
if not self.output_directory or not os.path.isdir(self.output_directory):
158158
self.output_directory = tempfile.mkdtemp(prefix="sqlmapoutput-")
159159
self.temporary_directory = True
160-
self.set_option("oDir", self.output_directory)
160+
self.set_option("outputDir", self.output_directory)
161161

162162
def clean_filesystem(self):
163163
if self.output_directory and self.temporary_directory:

sqlmap.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ freshQueries = False
664664
hexConvert = False
665665

666666
# Custom output directory path.
667-
oDir =
667+
outputDir =
668668

669669
# Parse and display DBMS error messages from responses.
670670
# Valid: True or False

0 commit comments

Comments
 (0)