mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
Another update for an Issue #380 (--common-... switches)
This commit is contained in:
parent
f5844eabae
commit
cfcf8a3abb
|
@ -426,6 +426,10 @@ class Agent(object):
|
|||
fieldsMinMaxstr = re.search(r"(?:MIN|MAX)\(([^\(\)]+)\)", query, re.I)
|
||||
fieldsNoSelect = query
|
||||
|
||||
_ = zeroDepthSearch(query, " FROM ")
|
||||
if not _:
|
||||
fieldsSelectFrom = None
|
||||
|
||||
if fieldsSubstr:
|
||||
fieldsToCastStr = query
|
||||
elif fieldsMinMaxstr:
|
||||
|
@ -441,7 +445,6 @@ class Agent(object):
|
|||
elif fieldsSelectCase:
|
||||
fieldsToCastStr = fieldsSelectCase.groups()[0]
|
||||
elif fieldsSelectFrom:
|
||||
_ = zeroDepthSearch(query, " FROM ")
|
||||
fieldsToCastStr = query[:unArrayizeValue(_)] if _ else query
|
||||
fieldsToCastStr = re.sub(r"\ASELECT%s\s+" % prefixRegex, "", fieldsToCastStr)
|
||||
elif fieldsSelect:
|
||||
|
|
Loading…
Reference in New Issue
Block a user