File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 191191 "forms" : "boolean" ,
192192 "freshQueries" : "boolean" ,
193193 "hexConvert" : "boolean" ,
194- "oDir" : "string" ,
194+ "outputDir" : "string" ,
195195 "parseErrors" : "boolean" ,
196196 "pivotColumn" : "string" ,
197197 "saveCmdline" : "boolean" ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change @@ -664,7 +664,7 @@ freshQueries = False
664664hexConvert = 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
You can’t perform that action at this time.
0 commit comments