mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
Added option --search to work in conjunction with -D (done), -T (soon) or -C (replaces --dump -C) - See #190:
* --search -D foobar: searches all database names like the ones provided * --search -T foobar: searches all databases' table names like the ones provided (soon) * --search -C foobar: replaces --dump -C
This commit is contained in:
@@ -1006,7 +1006,7 @@ def normalizePath(path):
|
||||
return retVal
|
||||
|
||||
def safeStringFormat(formatStr, params):
|
||||
retVal = formatStr.replace('%d', '%s')
|
||||
retVal = formatStr.replace("%d", "%s")
|
||||
|
||||
if isinstance(params, str):
|
||||
retVal = retVal.replace("%s", params)
|
||||
@@ -1015,7 +1015,7 @@ def safeStringFormat(formatStr, params):
|
||||
index = 0
|
||||
|
||||
while index != -1:
|
||||
index = retVal.find('%s')
|
||||
index = retVal.find("%s")
|
||||
|
||||
if index != -1:
|
||||
if count < len(params):
|
||||
|
||||
@@ -96,6 +96,7 @@ optDict = {
|
||||
"getColumns": "boolean",
|
||||
"dumpTable": "boolean",
|
||||
"dumpAll": "boolean",
|
||||
"search": "boolean",
|
||||
"user": "string",
|
||||
"db": "string",
|
||||
"tbl": "string",
|
||||
|
||||
Reference in New Issue
Block a user