mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-30 23:47:45 +03:00 
			
		
		
		
	Less problematic regex for MsSQL errors
This commit is contained in:
		
							parent
							
								
									2e2c62b6a7
								
							
						
					
					
						commit
						d9315830f9
					
				|  | @ -19,7 +19,7 @@ from lib.core.enums import OS | |||
| from lib.core.revision import getRevisionNumber | ||||
| 
 | ||||
| # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | ||||
| VERSION = "1.0.7.5" | ||||
| VERSION = "1.0.7.6" | ||||
| REVISION = getRevisionNumber() | ||||
| STABLE = VERSION.count('.') <= 2 | ||||
| VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") | ||||
|  | @ -612,7 +612,7 @@ MAX_HELP_OPTION_LENGTH = 18 | |||
| MAX_CONNECT_RETRIES = 100 | ||||
| 
 | ||||
| # Strings for detecting formatting errors | ||||
| FORMAT_EXCEPTION_STRINGS = ("Type mismatch", "Error converting", "Conversion failed", "String or binary data would be truncated", "Failed to convert", "unable to interpret text value", "Input string was not in a correct format", "System.FormatException", "java.lang.NumberFormatException", "ValueError: invalid literal", "DataTypeMismatchException", "CF_SQL_INTEGER", "InvalidParamTypeException", "Invalid parameter type") | ||||
| FORMAT_EXCEPTION_STRINGS = ("Type mismatch", "Error converting", "Conversion failed", "String or binary data would be truncated", "Failed to convert", "unable to interpret text value", "Input string was not in a correct format", "System.FormatException", "java.lang.NumberFormatException", "ValueError: invalid literal", "DataTypeMismatchException", "CF_SQL_INTEGER", "InvalidParamTypeException", "Invalid parameter type", "<cfif Not IsNumeric(") | ||||
| 
 | ||||
| # Regular expression used for extracting ASP.NET view state values | ||||
| VIEWSTATE_REGEX = r'(?i)(?P<name>__VIEWSTATE[^"]*)[^>]+value="(?P<result>[^"]+)' | ||||
|  |  | |||
|  | @ -27,7 +27,7 @@ | |||
|     <dbms value="Microsoft SQL Server"> | ||||
|         <error regexp="Driver.* SQL[\-\_\ ]*Server"/> | ||||
|         <error regexp="OLE DB.* SQL Server"/> | ||||
|         <error regexp="\bSQL Server.*Driver"/> | ||||
|         <error regexp="\bSQL Server[^<"]+Driver"/> | ||||
|         <error regexp="Warning.*(mssql|sqlsrv)_"/> | ||||
|         <error regexp="\bSQL Server.*[0-9a-fA-F]{8}"/> | ||||
|         <error regexp="(?s)Exception.*\WSystem\.Data\.SqlClient\."/> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user