From bdb9c37a7e120167d908d289e7d16576b921fa9f Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 25 Oct 2010 15:17:59 +0000 Subject: [PATCH] Cosmetics --- lib/parse/cmdline.py | 2 +- lib/takeover/web.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)