mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	Implements #3689
This commit is contained in:
		
							parent
							
								
									36f2bb5390
								
							
						
					
					
						commit
						ea4052ec65
					
				| 
						 | 
				
			
			@ -18,7 +18,7 @@ from lib.core.enums import OS
 | 
			
		|||
from thirdparty.six import unichr as _unichr
 | 
			
		||||
 | 
			
		||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
			
		||||
VERSION = "1.3.5.122"
 | 
			
		||||
VERSION = "1.3.5.123"
 | 
			
		||||
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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										24
									
								
								waf/nexusguard.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								waf/nexusguard.py
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,24 @@
 | 
			
		|||
#!/usr/bin/env python
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
 | 
			
		||||
See the file 'LICENSE' for copying permission
 | 
			
		||||
"""
 | 
			
		||||
 | 
			
		||||
import re
 | 
			
		||||
 | 
			
		||||
from lib.core.settings import WAF_ATTACK_VECTORS
 | 
			
		||||
 | 
			
		||||
__product__ = "Nexusguard (Nexusguard Limited)"
 | 
			
		||||
 | 
			
		||||
def detect(get_page):
 | 
			
		||||
    retval = False
 | 
			
		||||
 | 
			
		||||
    for vector in WAF_ATTACK_VECTORS:
 | 
			
		||||
        page, _, _ = get_page(get=vector)
 | 
			
		||||
        retval |= "<p>Powered by Nexusguard</p>" in (page or "")
 | 
			
		||||
        retval |= re.search(r"speresources\.nexusguard\.com/wafpage/[^>]*#\d{3};", page or "") is not None
 | 
			
		||||
        if retval:
 | 
			
		||||
            break
 | 
			
		||||
 | 
			
		||||
    return retval
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user