mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
add possibility to provide a list of web server document root possible directories for web shell upload in --os-cmd and --os-shell for MySQL
This commit is contained in:
@@ -191,7 +191,7 @@ class Web:
|
||||
self.webApi = choices[int(choice) - 1]
|
||||
break
|
||||
|
||||
kb.docRoot = getDocRoot()
|
||||
kb.docRoot = arrayizeValue(getDocRoot())
|
||||
directories = sorted(getDirs())
|
||||
|
||||
backdoorName = "tmpb%s.%s" % (randomStr(lowercase=True), self.webApi)
|
||||
@@ -202,7 +202,7 @@ class Web:
|
||||
|
||||
success = False
|
||||
|
||||
for docRoot in arrayizeValue(kb.docRoot):
|
||||
for docRoot in kb.docRoot:
|
||||
if success:
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user