File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.4.5.4 "
21+ VERSION = "1.4.5.5 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -167,6 +167,12 @@ def _(regex):
167167 warnMsg += "(probably due to its length and/or content): "
168168 warnMsg += safecharencode (trimmed )
169169 logger .warn (warnMsg )
170+ elif re .search (r"ORDER BY [^ ]+\Z" , expression ):
171+ debugMsg = "retrying failed SQL query without the ORDER BY clause"
172+ logger .debug (debugMsg )
173+
174+ expression = re .sub (r"\s*ORDER BY [^ ]+\Z" , "" , expression )
175+ retVal = _oneShotUnionUse (expression , unpack = True , limited = False )
170176 else :
171177 vector = kb .injection .data [PAYLOAD .TECHNIQUE .UNION ].vector
172178 kb .unionDuplicates = vector [7 ]
You can’t perform that action at this time.
0 commit comments