mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 01:47:37 +03:00 
			
		
		
		
	Probably fixes #3570
This commit is contained in:
		
							parent
							
								
									3275d9c709
								
							
						
					
					
						commit
						89c6cc725b
					
				| 
						 | 
				
			
			@ -17,7 +17,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME
 | 
			
		|||
from lib.core.enums import OS
 | 
			
		||||
 | 
			
		||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
			
		||||
VERSION = "1.3.4.2"
 | 
			
		||||
VERSION = "1.3.4.3"
 | 
			
		||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
 | 
			
		||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
 | 
			
		||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,6 +7,7 @@ See the file 'LICENSE' for copying permission
 | 
			
		|||
 | 
			
		||||
import re
 | 
			
		||||
 | 
			
		||||
from lib.core.common import getUnicode
 | 
			
		||||
from lib.core.data import kb
 | 
			
		||||
from lib.core.settings import GENERIC_PROTECTION_REGEX
 | 
			
		||||
from lib.core.settings import IPS_WAF_CHECK_PAYLOAD
 | 
			
		||||
| 
						 | 
				
			
			@ -26,7 +27,7 @@ def detect(get_page):
 | 
			
		|||
 | 
			
		||||
        if code >= 400 or (IPS_WAF_CHECK_PAYLOAD in vector and (code is None or re.search(GENERIC_PROTECTION_REGEX, page or "") and not re.search(GENERIC_PROTECTION_REGEX, original or ""))):
 | 
			
		||||
            if code is not None:
 | 
			
		||||
                kb.wafSpecificResponse = "HTTP/1.1 %s\n%s\n%s" % (code, "".join(_ for _ in (headers.headers if headers else {}) or [] if not _.startswith("URI")), page)
 | 
			
		||||
                kb.wafSpecificResponse = "HTTP/1.1 %s\n%s\n%s" % (code, "".join(getUnicode(_) for _ in (headers.headers if headers else {}) or [] if not _.startswith("URI")), getUnicode(page or ""))
 | 
			
		||||
 | 
			
		||||
            retval = True
 | 
			
		||||
            break
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user