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:
Bernardo Damele
2013-01-19 18:04:33 +00:00
parent 6a62292a3f
commit adf97e630f
3 changed files with 40 additions and 17 deletions

View File

@@ -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