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

Skip to content

Commit 5d6def4

Browse files
committed
Trivial cleanup
1 parent 7066e7c commit 5d6def4

4 files changed

Lines changed: 2 additions & 9 deletions

File tree

lib/core/agent.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,6 @@ def concatQuery(self, query, unpack=True):
789789
elif fieldsNoSelect:
790790
concatenatedQuery = "CONCAT(CONCAT('%s',%s),'%s')" % (kb.chars.start, concatenatedQuery, kb.chars.stop)
791791

792-
793792
return concatenatedQuery
794793

795794
def forgeUnionQuery(self, query, position, count, comment, prefix, suffix, char, where, multipleUnions=None, limited=False, fromTable=None):

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.11.12"
21+
VERSION = "1.4.11.13"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/techniques/blind/inference.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
123123
payload = payload.replace("SUBSTRING", "(SELECT%sSUBSTRING" % (match.group(1) if match.group(1) else " "), 1)
124124
expression = match.group(2).strip()
125125

126-
127-
#<inference query="(SELECT SUBSTRING((%s) FROM %d FOR 1) FROM %s)>'%c'"/>
128-
129-
try:
126+
try:
130127
# Set kb.partRun in case "common prediction" feature (a.k.a. "good samaritan") is used or the engine is called from the API
131128
if conf.predictOutput:
132129
kb.partRun = getPartRun()

plugins/dbms/hsqldb/fingerprint.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,9 @@ def getHostname(self):
145145
warnMsg = "on HSQLDB it is not possible to enumerate the hostname"
146146
logger.warn(warnMsg)
147147

148-
149148
def checkDbmsOs(self, detailed=False):
150149
if Backend.getOs():
151150
infoMsg = "the back-end DBMS operating system is %s" % Backend.getOs()
152151
logger.info(infoMsg)
153152
else:
154153
self.userChooseDbmsOs()
155-
156-

0 commit comments

Comments
 (0)