mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	Fixes #4671
This commit is contained in:
		
							parent
							
								
									94ab17829e
								
							
						
					
					
						commit
						3c25f79a9b
					
				| 
						 | 
					@ -19,7 +19,7 @@ from lib.core.enums import OS
 | 
				
			||||||
from thirdparty.six import unichr as _unichr
 | 
					from thirdparty.six import unichr as _unichr
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
					# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
				
			||||||
VERSION = "1.5.5.9"
 | 
					VERSION = "1.5.5.10"
 | 
				
			||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
 | 
					TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
 | 
				
			||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
 | 
					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)
 | 
					VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,6 +13,7 @@ from lib.core.common import extractRegexResult
 | 
				
			||||||
from lib.core.common import getFilteredPageContent
 | 
					from lib.core.common import getFilteredPageContent
 | 
				
			||||||
from lib.core.common import listToStrValue
 | 
					from lib.core.common import listToStrValue
 | 
				
			||||||
from lib.core.common import removeDynamicContent
 | 
					from lib.core.common import removeDynamicContent
 | 
				
			||||||
 | 
					from lib.core.common import getLastRequestHTTPError
 | 
				
			||||||
from lib.core.common import wasLastResponseDBMSError
 | 
					from lib.core.common import wasLastResponseDBMSError
 | 
				
			||||||
from lib.core.common import wasLastResponseHTTPError
 | 
					from lib.core.common import wasLastResponseHTTPError
 | 
				
			||||||
from lib.core.convert import getBytes
 | 
					from lib.core.convert import getBytes
 | 
				
			||||||
| 
						 | 
					@ -91,7 +92,8 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
 | 
				
			||||||
    if page:
 | 
					    if page:
 | 
				
			||||||
        # In case of an DBMS error page return None
 | 
					        # In case of an DBMS error page return None
 | 
				
			||||||
        if kb.errorIsNone and (wasLastResponseDBMSError() or wasLastResponseHTTPError()) and not kb.negativeLogic:
 | 
					        if kb.errorIsNone and (wasLastResponseDBMSError() or wasLastResponseHTTPError()) and not kb.negativeLogic:
 | 
				
			||||||
            return None
 | 
					            if not (wasLastResponseHTTPError() and getLastRequestHTTPError() in (conf.ignoreCode or [])):
 | 
				
			||||||
 | 
					                return None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Dynamic content lines to be excluded before comparison
 | 
					        # Dynamic content lines to be excluded before comparison
 | 
				
			||||||
        if not kb.nullConnection:
 | 
					        if not kb.nullConnection:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user