Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 115be9d

Browse files
committed
minor fixes
1 parent 6f61fc0 commit 115be9d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

lib/core/common.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,8 @@ def getDocRoot():
619619
infoMsg = "retrieved the web server document root: '%s'" % docRoot
620620
logger.info(infoMsg)
621621
else:
622-
warnMsg = "unable to retrieve the web server document root"
622+
warnMsg = "unable to retrieve automatically the web server "
623+
warnMsg += "document root"
623624
logger.warn(warnMsg)
624625

625626
docRoot = []
@@ -673,15 +674,15 @@ def getDirs():
673674
directory = ntToPosixSlashes(directory)
674675
directories.add(directory)
675676
else:
676-
warnMsg = "unable to retrieve any web server path"
677+
warnMsg = "unable to retrieve automatically any web server path"
677678
logger.warn(warnMsg)
678679

679680
webDir = extractRegexResult(r"//[^/]+?/(?P<result>.*)/.", conf.url)
680681
if webDir:
681682
directories.add(webDir)
682683

683684
message = "please provide additional comma separated file paths to "
684-
message += "try to upload the agent inside the possible document "
685+
message += "try to upload the agent inside the possible document: "
685686
message += "root%s [Enter for None]: " % "s" if len(kb.docRoot) > 1 else ""
686687
inputDirs = readInput(message)
687688

xml/livetests.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2577,7 +2577,7 @@
25772577
<url value="http://debiandev/sqlmap/mysql/get_int.php?id=1"/>
25782578
<tech value="B"/>
25792579
<osCmd value="id"/>
2580-
<answers value="please provide any additional web server=/var/www/test"/>
2580+
<answers value="please provide additional comma separated file=test"/>
25812581
</switches>
25822582
<parse>
25832583
<item value="command standard output: 'uid="/>

0 commit comments

Comments
 (0)