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

Skip to content

Commit 524dd75

Browse files
committed
that query variable hasn't been used anywhere (obsolete for some time)
1 parent 6af110d commit 524dd75

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

lib/techniques/union/test.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ def __unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix
241241

242242
validPayload = None
243243
vector = None
244-
query = agent.prefixQuery("UNION ALL SELECT %s" % kb.uChar)
245244

246245
# In case that user explicitly stated number of columns affected
247246
if conf.uColsStop == conf.uColsStart:
@@ -250,15 +249,6 @@ def __unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix
250249
count = __findUnionCharCount(comment, place, parameter, value, prefix, suffix, PAYLOAD.WHERE.ORIGINAL if isNullValue(kb.uChar) else PAYLOAD.WHERE.NEGATIVE)
251250

252251
if count:
253-
if Backend.getIdentifiedDbms() in FROM_DUMMY_TABLE and query.endswith(FROM_DUMMY_TABLE[Backend.getIdentifiedDbms()]):
254-
query = query[:-len(FROM_DUMMY_TABLE[Backend.getIdentifiedDbms()])]
255-
256-
if count:
257-
query += ", %s" % kb.uChar
258-
259-
if Backend.getIdentifiedDbms() in FROM_DUMMY_TABLE:
260-
query += FROM_DUMMY_TABLE[Backend.getIdentifiedDbms()]
261-
262252
validPayload, vector = __unionConfirm(comment, place, parameter, prefix, suffix, count)
263253

264254
if not all([validPayload, vector]) and not all([conf.uChar, conf.dbms]):

0 commit comments

Comments
 (0)