mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
Another bug fix for --union-test
This commit is contained in:
parent
a0fb96816f
commit
0bfc1b411a
|
@ -53,13 +53,7 @@ def __unionPosition(negative=False, falseCond=False):
|
||||||
# Perform the request
|
# Perform the request
|
||||||
resultPage, _ = Request.queryPage(payload, content=True)
|
resultPage, _ = Request.queryPage(payload, content=True)
|
||||||
|
|
||||||
# We have to assure that the randQuery value is not within the
|
if resultPage and randQuery in resultPage:
|
||||||
# HTML code of the result page because, for instance, it is there
|
|
||||||
# when the query is wrong and the back-end DBMS is Microsoft SQL
|
|
||||||
# server
|
|
||||||
htmlParsed = htmlParser(resultPage)
|
|
||||||
|
|
||||||
if resultPage and randQuery in resultPage and not htmlParsed:
|
|
||||||
setUnion(position=exprPosition)
|
setUnion(position=exprPosition)
|
||||||
validPayload = payload
|
validPayload = payload
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user