mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-30 18:10:12 +03:00
Merge 5ca0e11acb
into 98e449e38c
This commit is contained in:
commit
fcca91dd66
|
@ -583,6 +583,11 @@ def cmdLineParser(argv=None):
|
||||||
help="Remote absolute path of temporary files "
|
help="Remote absolute path of temporary files "
|
||||||
"directory")
|
"directory")
|
||||||
|
|
||||||
|
takeover.add_option("--rw-dirs", dest="rwDirs",
|
||||||
|
help="Remote absolute path of writable "
|
||||||
|
"directories for overriding defaults "
|
||||||
|
"(comma separated if multiple)")
|
||||||
|
|
||||||
# Windows registry options
|
# Windows registry options
|
||||||
windows = OptionGroup(parser, "Windows registry access", "These "
|
windows = OptionGroup(parser, "Windows registry access", "These "
|
||||||
"options can be used to access the back-end "
|
"options can be used to access the back-end "
|
||||||
|
|
|
@ -196,7 +196,13 @@ class Web:
|
||||||
self.webApi = choices[int(choice) - 1]
|
self.webApi = choices[int(choice) - 1]
|
||||||
break
|
break
|
||||||
|
|
||||||
|
# If specified in the conf file/cmd line then use those, else ask/use defaults for them
|
||||||
|
if conf.rwDirs:
|
||||||
|
logger.info("Trying to upload to user supplied dirs: %s" % conf.rwDirs)
|
||||||
|
directories = conf.rwDirs.split(',')
|
||||||
|
else:
|
||||||
directories = list(arrayizeValue(getManualDirectories()))
|
directories = list(arrayizeValue(getManualDirectories()))
|
||||||
|
|
||||||
directories.extend(getAutoDirectories())
|
directories.extend(getAutoDirectories())
|
||||||
directories = list(oset(directories))
|
directories = list(oset(directories))
|
||||||
|
|
||||||
|
|
|
@ -624,6 +624,12 @@ msfPath =
|
||||||
# Valid: absolute file system path
|
# Valid: absolute file system path
|
||||||
tmpPath =
|
tmpPath =
|
||||||
|
|
||||||
|
# Remote absolute path of writable directories
|
||||||
|
# for overriding defaults (comma separated if
|
||||||
|
# multiple)
|
||||||
|
# E.g.: /var/www/html/uploads,/var/www/wordpress/images
|
||||||
|
rwDirs =
|
||||||
|
|
||||||
|
|
||||||
# These options can be used to access the back-end database management
|
# These options can be used to access the back-end database management
|
||||||
# system Windows registry.
|
# system Windows registry.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user