mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Probable fix for --technique=Q --dbms=Firebird (but also other potential issues with splitting of fields in expressions)
This commit is contained in:
@@ -3310,6 +3310,18 @@ def zeroDepthSearch(expression, value):
|
||||
|
||||
return retVal
|
||||
|
||||
def splitFields(fields, delimiter=','):
|
||||
"""
|
||||
Returns list of fields splitted by delimiter
|
||||
"""
|
||||
|
||||
fields = fields.replace("%s " % delimiter, delimiter)
|
||||
commas = [-1, len(fields)]
|
||||
commas.extend(zeroDepthSearch(fields, ','))
|
||||
commas = sorted(commas)
|
||||
|
||||
return [fields[x + 1:y] for (x, y) in zip(commas, commas[1:])]
|
||||
|
||||
def pollProcess(process, suppress_errors=False):
|
||||
while True:
|
||||
dataToStdout(".")
|
||||
|
||||
Reference in New Issue
Block a user