mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-01 07:44:18 +03:00
minor fixes
This commit is contained in:
parent
6f61fc04f1
commit
115be9d7b5
|
@ -619,7 +619,8 @@ def getDocRoot():
|
||||||
infoMsg = "retrieved the web server document root: '%s'" % docRoot
|
infoMsg = "retrieved the web server document root: '%s'" % docRoot
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
else:
|
else:
|
||||||
warnMsg = "unable to retrieve the web server document root"
|
warnMsg = "unable to retrieve automatically the web server "
|
||||||
|
warnMsg += "document root"
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
docRoot = []
|
docRoot = []
|
||||||
|
@ -673,7 +674,7 @@ def getDirs():
|
||||||
directory = ntToPosixSlashes(directory)
|
directory = ntToPosixSlashes(directory)
|
||||||
directories.add(directory)
|
directories.add(directory)
|
||||||
else:
|
else:
|
||||||
warnMsg = "unable to retrieve any web server path"
|
warnMsg = "unable to retrieve automatically any web server path"
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
webDir = extractRegexResult(r"//[^/]+?/(?P<result>.*)/.", conf.url)
|
webDir = extractRegexResult(r"//[^/]+?/(?P<result>.*)/.", conf.url)
|
||||||
|
@ -681,7 +682,7 @@ def getDirs():
|
||||||
directories.add(webDir)
|
directories.add(webDir)
|
||||||
|
|
||||||
message = "please provide additional comma separated file paths to "
|
message = "please provide additional comma separated file paths to "
|
||||||
message += "try to upload the agent inside the possible document "
|
message += "try to upload the agent inside the possible document: "
|
||||||
message += "root%s [Enter for None]: " % "s" if len(kb.docRoot) > 1 else ""
|
message += "root%s [Enter for None]: " % "s" if len(kb.docRoot) > 1 else ""
|
||||||
inputDirs = readInput(message)
|
inputDirs = readInput(message)
|
||||||
|
|
||||||
|
|
|
@ -2577,7 +2577,7 @@
|
||||||
<url value="http://debiandev/sqlmap/mysql/get_int.php?id=1"/>
|
<url value="http://debiandev/sqlmap/mysql/get_int.php?id=1"/>
|
||||||
<tech value="B"/>
|
<tech value="B"/>
|
||||||
<osCmd value="id"/>
|
<osCmd value="id"/>
|
||||||
<answers value="please provide any additional web server=/var/www/test"/>
|
<answers value="please provide additional comma separated file=test"/>
|
||||||
</switches>
|
</switches>
|
||||||
<parse>
|
<parse>
|
||||||
<item value="command standard output: 'uid="/>
|
<item value="command standard output: 'uid="/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user