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

Skip to content

Commit 48c55d1

Browse files
committed
Minor update
1 parent 1e03b23 commit 48c55d1

8 files changed

Lines changed: 12 additions & 12 deletions

File tree

lib/controller/action.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ def action():
176176
except:
177177
raise
178178

179-
if conf.query:
180-
conf.dumper.query(conf.query, conf.dbmsHandler.sqlQuery(conf.query))
179+
if conf.sqlQuery:
180+
conf.dumper.sqlQuery(conf.sqlQuery, conf.dbmsHandler.sqlQuery(conf.sqlQuery))
181181

182182
if conf.sqlShell:
183183
conf.dbmsHandler.sqlShell()

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ def expandAsteriskForColumns(expression):
15921592
db, conf.tbl = _.split('.', 1) if '.' in _ else (None, _)
15931593

15941594
if db is None:
1595-
if expression != conf.query:
1595+
if expression != conf.sqlQuery:
15961596
conf.db = db
15971597
else:
15981598
expression = re.sub(r"([^\w])%s" % re.escape(conf.tbl), "\g<1>%s.%s" % (conf.db, conf.tbl), expression)

lib/core/dump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ def dbColumns(self, dbColumnsDict, colConsider, dbs):
704704

705705
self.dbTableColumns(_)
706706

707-
def query(self, query, queryRes):
707+
def sqlQuery(self, query, queryRes):
708708
self.string(query, queryRes, content_type=CONTENT_TYPE.SQL_QUERY)
709709

710710
def rFile(self, fileData):

lib/core/optiondict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
"limitStop": "integer",
151151
"firstChar": "integer",
152152
"lastChar": "integer",
153-
"query": "string",
153+
"sqlQuery": "string",
154154
"sqlShell": "boolean",
155155
"sqlFile": "string",
156156
},

lib/core/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from lib.core.enums import OS
1818

1919
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
20-
VERSION = "1.3.4.48"
20+
VERSION = "1.3.4.49"
2121
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2222
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2323
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
@@ -383,7 +383,7 @@
383383
SENSITIVE_DATA_REGEX = r"(\s|=)(?P<result>[^\s=]*\b%s\b[^\s]*)\s"
384384

385385
# Options to explicitly mask in anonymous (unhandled exception) reports (along with anything carrying the <hostname> inside)
386-
SENSITIVE_OPTIONS = ("hostname", "answers", "data", "dnsDomain", "googleDork", "authCred", "proxyCred", "tbl", "db", "col", "user", "cookie", "proxy", "fileRead", "fileWrite", "fileDest", "testParameter", "authCred")
386+
SENSITIVE_OPTIONS = ("hostname", "answers", "data", "dnsDomain", "googleDork", "authCred", "proxyCred", "tbl", "db", "col", "user", "cookie", "proxy", "fileRead", "fileWrite", "fileDest", "testParameter", "authCred", "sqlQuery")
387387

388388
# Maximum number of threads (avoiding connection issues and/or DoS)
389389
MAX_NUMBER_OF_THREADS = 10

lib/parse/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def cmdLineParser(argv=None):
448448
enumeration.add_option("--last", dest="lastChar", type="int",
449449
help="Last query output word character to retrieve")
450450

451-
enumeration.add_option("--sql-query", dest="query",
451+
enumeration.add_option("--sql-query", dest="sqlQuery",
452452
help="SQL statement to be executed")
453453

454454
enumeration.add_option("--sql-shell", dest="sqlShell", action="store_true",

plugins/generic/custom.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def sqlShell(self):
110110
output = self.sqlQuery(query)
111111

112112
if output and output != "Quit":
113-
conf.dumper.query(query, output)
113+
conf.dumper.sqlQuery(query, output)
114114

115115
elif not output:
116116
pass
@@ -134,6 +134,6 @@ def sqlFile(self):
134134
for query in (_ for _ in snippet.split(';' if ';' in snippet else '\n') if _):
135135
query = query.strip()
136136
if query:
137-
conf.dumper.query(query, self.sqlQuery(query))
137+
conf.dumper.sqlQuery(query, self.sqlQuery(query))
138138
else:
139-
conf.dumper.query(snippet, self.sqlQuery(snippet))
139+
conf.dumper.sqlQuery(snippet, self.sqlQuery(snippet))

sqlmap.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ lastChar = 0
544544

545545
# SQL statement to be executed.
546546
# Example: SELECT 'foo', 'bar'
547-
query =
547+
sqlQuery =
548548

549549
# Prompt for an interactive SQL shell.
550550
# Valid: True or False

0 commit comments

Comments
 (0)