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

Skip to content

Commit 73917fc

Browse files
committed
Minor update (same, but safer)
1 parent 0b449bb commit 73917fc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/techniques/union/use.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,11 @@ def _oneShotUnionUse(expression, unpack=True, limited=False):
6161
# Prepare expression with delimiters
6262
injExpression = unescaper.escape(agent.concatQuery(expression, unpack))
6363

64-
where = PAYLOAD.WHERE.NEGATIVE if conf.limitStart or conf.limitStop else None
65-
6664
# Forge the union SQL injection request
6765
vector = kb.injection.data[PAYLOAD.TECHNIQUE.UNION].vector
6866
kb.unionDuplicates = vector[7]
6967
query = agent.forgeUnionQuery(injExpression, vector[0], vector[1], vector[2], vector[3], vector[4], vector[5], vector[6], None, limited)
68+
where = PAYLOAD.WHERE.NEGATIVE if conf.limitStart or conf.limitStop else vector[6]
7069
payload = agent.payload(newValue=query, where=where)
7170

7271
# Perform the request

0 commit comments

Comments
 (0)