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

Skip to content

Commit 40f21c3

Browse files
committed
minor update
1 parent 14e8ca6 commit 40f21c3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/techniques/union/use.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ def unionUse(expression, unpack=True, dump=False):
163163

164164
_, _, _, _, _, expressionFieldsList, expressionFields, _ = agent.getFields(origExpr)
165165

166+
if expressionFieldsList and len(expressionFieldsList) > 1 and " ORDER BY " in expression:
167+
# No need for it in and just slowing down on large table dumps
168+
expression = expression[:expression.rindex(" ORDER BY ")]
169+
166170
# We have to check if the SQL query might return multiple entries
167171
# and in such case forge the SQL limiting the query output one
168172
# entry per time

0 commit comments

Comments
 (0)