mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 01:47:37 +03:00 
			
		
		
		
	bug fix (reported by ToR)
This commit is contained in:
		
							parent
							
								
									f3fe19c4e5
								
							
						
					
					
						commit
						96d88877ba
					
				| 
						 | 
				
			
			@ -31,8 +31,8 @@ from lib.core.enums import NULLCONNECTION
 | 
			
		|||
from lib.core.exception import sqlmapConnectionException
 | 
			
		||||
from lib.core.exception import sqlmapGenericException
 | 
			
		||||
from lib.core.exception import sqlmapNoneDataException
 | 
			
		||||
from lib.core.exception import sqlmapSiteTooDynamic
 | 
			
		||||
from lib.core.exception import sqlmapUserQuitException
 | 
			
		||||
from lib.core.exception import sqlmapSilentQuitException
 | 
			
		||||
from lib.core.session import setString
 | 
			
		||||
from lib.core.session import setRegexp
 | 
			
		||||
from lib.request.connect import Connect as Request
 | 
			
		||||
| 
						 | 
				
			
			@ -285,7 +285,8 @@ def checkStability():
 | 
			
		|||
 | 
			
		||||
                    kb.nullConnection = None
 | 
			
		||||
            else:
 | 
			
		||||
                raise sqlmapSilentQuitException
 | 
			
		||||
                errMsg = "Empty value supplied"
 | 
			
		||||
                raise sqlmapNoneDataException, errMsg
 | 
			
		||||
 | 
			
		||||
        elif test and test[0] in ("r", "R"):
 | 
			
		||||
            message = "please enter value for parameter 'regex': "
 | 
			
		||||
| 
						 | 
				
			
			@ -301,7 +302,8 @@ def checkStability():
 | 
			
		|||
 | 
			
		||||
                    kb.nullConnection = None
 | 
			
		||||
            else:
 | 
			
		||||
                raise sqlmapSilentQuitException
 | 
			
		||||
                errMsg = "Empty value supplied"
 | 
			
		||||
                raise sqlmapNoneDataException, errMsg
 | 
			
		||||
        else:
 | 
			
		||||
            checkDynamicContent(firstPage, secondPage)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -309,8 +311,7 @@ def checkStability():
 | 
			
		|||
                errMsg = "target url is too dynamic. unable to continue. "
 | 
			
		||||
                errMsg += "consider using other switches (e.g. "
 | 
			
		||||
                errMsg += "--longest-common, --string, --text-only, etc.)"
 | 
			
		||||
                logger.error(errMsg)
 | 
			
		||||
                raise sqlmapSilentQuitException
 | 
			
		||||
                raise sqlmapSiteTooDynamic, errMsg
 | 
			
		||||
 | 
			
		||||
    return kb.pageStable
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -308,9 +308,6 @@ def start():
 | 
			
		|||
                    checkForParenthesis()
 | 
			
		||||
                    action()
 | 
			
		||||
 | 
			
		||||
        except sqlmapSilentQuitException:
 | 
			
		||||
            raise
 | 
			
		||||
 | 
			
		||||
        except KeyboardInterrupt:
 | 
			
		||||
            if conf.multipleTargets:
 | 
			
		||||
                warnMsg = "Ctrl+C detected in multiple target mode"
 | 
			
		||||
| 
						 | 
				
			
			@ -331,6 +328,9 @@ def start():
 | 
			
		|||
        except sqlmapUserQuitException:
 | 
			
		||||
            raise
 | 
			
		||||
 | 
			
		||||
        except sqlmapSilentQuitException:
 | 
			
		||||
            raise
 | 
			
		||||
 | 
			
		||||
        except exceptionsTuple, e:
 | 
			
		||||
            e = getUnicode(e)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,6 +50,9 @@ class sqlmapUserQuitException(Exception):
 | 
			
		|||
class sqlmapRegExprException(Exception):
 | 
			
		||||
    pass
 | 
			
		||||
 | 
			
		||||
class sqlmapSiteTooDynamic(Exception):
 | 
			
		||||
    pass
 | 
			
		||||
 | 
			
		||||
class sqlmapSyntaxException(Exception):
 | 
			
		||||
    pass
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -89,9 +92,8 @@ exceptionsTuple = (
 | 
			
		|||
                    sqlmapMissingDependence,
 | 
			
		||||
                    sqlmapMissingMandatoryOptionException,
 | 
			
		||||
                    sqlmapNoneDataException,
 | 
			
		||||
                    sqlmapSilentQuitException,
 | 
			
		||||
                    sqlmapUserQuitException,
 | 
			
		||||
                    sqlmapRegExprException,
 | 
			
		||||
                    sqlmapSiteTooDynamic,
 | 
			
		||||
                    sqlmapSyntaxException,
 | 
			
		||||
                    sqlmapUndefinedMethod,
 | 
			
		||||
                    sqlmapMissingPrivileges,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user