mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
fix for a major bug reported by k1971@live.co.uk (1..9 99..)
This commit is contained in:
parent
494503b334
commit
900ee0ff93
|
@ -424,6 +424,9 @@ Alessandro Tanasi <alessandro@tanasi.it>
|
|||
Andres Tarasco <atarasco@gmail.com>
|
||||
for providing me with good feedback
|
||||
|
||||
Tom Thumb <k1971@live.co.uk>
|
||||
for reporting a major bug
|
||||
|
||||
Kazim Bugra Tombul <mhackmail@gmail.com>
|
||||
for reporting a minor bug
|
||||
|
||||
|
|
|
@ -370,10 +370,13 @@ class Agent:
|
|||
fieldsExists = getCompiledRegex("EXISTS(.*)", re.I).search(query)
|
||||
fieldsSelect = getCompiledRegex("\ASELECT%s\s+(.*)" % prefixRegex, re.I).search(query)
|
||||
fieldsSubstr = getCompiledRegex("\A(SUBSTR|MID\()", re.I).search(query)
|
||||
fieldsMinMaxstr = getCompiledRegex("(?:MIN|MAX)\(([^\(\)]+)\)", re.I).search(query)
|
||||
fieldsNoSelect = query
|
||||
|
||||
if fieldsSubstr:
|
||||
fieldsToCastStr = query
|
||||
elif fieldsMinMaxstr:
|
||||
fieldsToCastStr = fieldsMinMaxstr.groups()[0]
|
||||
elif fieldsExists:
|
||||
fieldsToCastStr = fieldsSelect.groups()[0]
|
||||
elif fieldsSelectTop:
|
||||
|
|
Loading…
Reference in New Issue
Block a user