@@ -64,11 +64,11 @@ def _oneShotErrorUse(expression, field=None):
6464 threadData .resumed = retVal is not None and not partialValue
6565
6666 if Backend .isDbms (DBMS .MYSQL ):
67- chunk_length = MYSQL_ERROR_CHUNK_LENGTH
67+ chunkLength = MYSQL_ERROR_CHUNK_LENGTH
6868 elif Backend .isDbms (DBMS .MSSQL ):
69- chunk_length = MSSQL_ERROR_CHUNK_LENGTH
69+ chunkLength = MSSQL_ERROR_CHUNK_LENGTH
7070 else :
71- chunk_length = None
71+ chunkLength = None
7272
7373 if retVal is None or partialValue :
7474 try :
@@ -84,7 +84,7 @@ def _oneShotErrorUse(expression, field=None):
8484 if extendedField != field : # e.g. MIN(surname)
8585 nulledCastedField = extendedField .replace (field , nulledCastedField )
8686 field = extendedField
87- nulledCastedField = queries [Backend .getIdentifiedDbms ()].substring .query % (nulledCastedField , offset , chunk_length )
87+ nulledCastedField = queries [Backend .getIdentifiedDbms ()].substring .query % (nulledCastedField , offset , chunkLength )
8888
8989 # Forge the error-based SQL injection request
9090 vector = kb .injection .data [kb .technique ].vector
@@ -146,8 +146,8 @@ def _oneShotErrorUse(expression, field=None):
146146 else :
147147 retVal += output if output else ''
148148
149- if output and len (output ) >= chunk_length :
150- offset += chunk_length
149+ if output and len (output ) >= chunkLength :
150+ offset += chunkLength
151151 else :
152152 break
153153
0 commit comments