mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 07:57:47 +03:00 
			
		
		
		
	Patch for an Issue #901
This commit is contained in:
		
							parent
							
								
									78cc3853b6
								
							
						
					
					
						commit
						71c43be53a
					
				|  | @ -62,6 +62,7 @@ from lib.core.enums import REDIRECTION | ||||||
| from lib.core.enums import WEB_API | from lib.core.enums import WEB_API | ||||||
| from lib.core.exception import SqlmapCompressionException | from lib.core.exception import SqlmapCompressionException | ||||||
| from lib.core.exception import SqlmapConnectionException | from lib.core.exception import SqlmapConnectionException | ||||||
|  | from lib.core.exception import SqlmapGenericException | ||||||
| from lib.core.exception import SqlmapSyntaxException | from lib.core.exception import SqlmapSyntaxException | ||||||
| from lib.core.exception import SqlmapTokenException | from lib.core.exception import SqlmapTokenException | ||||||
| from lib.core.exception import SqlmapValueException | from lib.core.exception import SqlmapValueException | ||||||
|  | @ -651,7 +652,13 @@ class Connect(object): | ||||||
|         if payload: |         if payload: | ||||||
|             if kb.tamperFunctions: |             if kb.tamperFunctions: | ||||||
|                 for function in kb.tamperFunctions: |                 for function in kb.tamperFunctions: | ||||||
|                     payload = function(payload=payload, headers=auxHeaders) |                     try: | ||||||
|  |                         payload = function(payload=payload, headers=auxHeaders) | ||||||
|  |                     except Exception, ex: | ||||||
|  |                         errMsg = "error occurred while running tamper " | ||||||
|  |                         errMsg += "function '%s' ('%s')" % (function.func_name, ex) | ||||||
|  |                         raise SqlmapGenericException(errMsg) | ||||||
|  | 
 | ||||||
|                     if not isinstance(payload, basestring): |                     if not isinstance(payload, basestring): | ||||||
|                         errMsg = "tamper function '%s' returns " % function.func_name |                         errMsg = "tamper function '%s' returns " % function.func_name | ||||||
|                         errMsg += "invalid payload type ('%s')" % type(payload) |                         errMsg += "invalid payload type ('%s')" % type(payload) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user