mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
adding filtering of strings for control chars in blind inference mode (way to handle either errornous values, or either binary data)
This commit is contained in:
parent
c83e9f6ca5
commit
7ae5192070
3 changed files with 14 additions and 5 deletions
|
|
@ -61,6 +61,7 @@ from lib.core.settings import IS_WIN
|
|||
from lib.core.settings import PLATFORM
|
||||
from lib.core.settings import SITE
|
||||
from lib.core.settings import ERROR_PARSING_REGEXES
|
||||
from lib.core.settings import NON_CONTROL_CHAR_REGEX
|
||||
from lib.core.settings import SQL_STATEMENTS
|
||||
from lib.core.settings import SUPPORTED_DBMS
|
||||
from lib.core.settings import UNKNOWN_DBMS_VERSION
|
||||
|
|
@ -1823,6 +1824,13 @@ def filterStringValue(value, regex, replace=None):
|
|||
|
||||
return retVal
|
||||
|
||||
def filterControlChars(value):
|
||||
"""
|
||||
Returns string value with control
|
||||
chars being supstituted with ' '
|
||||
"""
|
||||
return filterStringValue(output, NON_CONTROL_CHAR_REGEX, ' ')
|
||||
|
||||
def isDBMSVersionAtLeast(version):
|
||||
"""
|
||||
Checks if the recognized DBMS version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue