mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	Fix for an Issue #346
This commit is contained in:
		
							parent
							
								
									3ab4a5e36d
								
							
						
					
					
						commit
						9428d1819e
					
				| 
						 | 
					@ -917,7 +917,7 @@ def setPaths():
 | 
				
			||||||
    paths.SQLMAP_UDF_PATH = os.path.join(paths.SQLMAP_ROOT_PATH, "udf")
 | 
					    paths.SQLMAP_UDF_PATH = os.path.join(paths.SQLMAP_ROOT_PATH, "udf")
 | 
				
			||||||
    paths.SQLMAP_XML_PATH = os.path.join(paths.SQLMAP_ROOT_PATH, "xml")
 | 
					    paths.SQLMAP_XML_PATH = os.path.join(paths.SQLMAP_ROOT_PATH, "xml")
 | 
				
			||||||
    paths.SQLMAP_XML_BANNER_PATH = os.path.join(paths.SQLMAP_XML_PATH, "banner")
 | 
					    paths.SQLMAP_XML_BANNER_PATH = os.path.join(paths.SQLMAP_XML_PATH, "banner")
 | 
				
			||||||
    paths.SQLMAP_OUTPUT_PATH = os.path.join(paths.SQLMAP_ROOT_PATH, "output")
 | 
					    paths.SQLMAP_OUTPUT_PATH = paths.get("SQLMAP_OUTPUT_PATH", os.path.join(paths.SQLMAP_ROOT_PATH, "output"))
 | 
				
			||||||
    paths.SQLMAP_DUMP_PATH = os.path.join(paths.SQLMAP_OUTPUT_PATH, "%s", "dump")
 | 
					    paths.SQLMAP_DUMP_PATH = os.path.join(paths.SQLMAP_OUTPUT_PATH, "%s", "dump")
 | 
				
			||||||
    paths.SQLMAP_FILES_PATH = os.path.join(paths.SQLMAP_OUTPUT_PATH, "%s", "files")
 | 
					    paths.SQLMAP_FILES_PATH = os.path.join(paths.SQLMAP_OUTPUT_PATH, "%s", "files")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -48,6 +48,7 @@ from lib.core.common import resetCookieJar
 | 
				
			||||||
from lib.core.common import runningAsAdmin
 | 
					from lib.core.common import runningAsAdmin
 | 
				
			||||||
from lib.core.common import sanitizeStr
 | 
					from lib.core.common import sanitizeStr
 | 
				
			||||||
from lib.core.common import setOptimize
 | 
					from lib.core.common import setOptimize
 | 
				
			||||||
 | 
					from lib.core.common import setPaths
 | 
				
			||||||
from lib.core.common import singleTimeWarnMessage
 | 
					from lib.core.common import singleTimeWarnMessage
 | 
				
			||||||
from lib.core.common import UnicodeRawConfigParser
 | 
					from lib.core.common import UnicodeRawConfigParser
 | 
				
			||||||
from lib.core.common import urldecode
 | 
					from lib.core.common import urldecode
 | 
				
			||||||
| 
						 | 
					@ -1420,6 +1421,7 @@ def _cleanupOptions():
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if conf.oDir:
 | 
					    if conf.oDir:
 | 
				
			||||||
        paths.SQLMAP_OUTPUT_PATH = conf.oDir
 | 
					        paths.SQLMAP_OUTPUT_PATH = conf.oDir
 | 
				
			||||||
 | 
					        setPaths()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if conf.string:
 | 
					    if conf.string:
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user