Module Expr Str Import alias ClassDef bases body Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareIs Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
Triggers are used in conjunction with injectors to determine the result
of an injection.

This module provides a default class (Trigger) and two other classes implement-
ing status-based triggering and regexp-based triggering.

Two modes are available: MODE_ERROR and MODE_SUCCESS.MODE_ERROR must be used
with triggers detecting errors, while MODE_SUCCESS must be used with triggers
detecting success answers. 

Note that PySQLi exploitation engine is based on conditional errors (when
the tested condition is false)

classes:
    
    Trigger (default trigger)
    StatusTrigger (status-based trigger)
    RegexpTrigger (regexp-based trigger)

 N/A re Trigger N/A N/A N/A MODE_ERROR 0 N/A MODE_SUCCESS 1 N/A MODE_UNKNOWN 2 __init__ N/A N/A self mode N/A MODE_SUCCESS N/A N/A N/A self _mode mode N/A N/A is_error N/A N/A self N/A N/A N/A 
        Determine if MODE_ERROR is set
         N/A N/A N/A self _mode N/A Trigger MODE_ERROR N/A get_mode N/A N/A self N/A N/A N/A 
        Retrieve the mode
         N/A N/A self _mode N/A set_mode N/A N/A self mode N/A N/A N/A 
        Set mode
         N/A N/A self _mode mode N/A execute N/A N/A self response N/A N/A N/A 
        Process response
         N/A None N/A N/A StatusTrigger N/A Trigger N/A N/A 
    Status-based trigger
     __init__ N/A N/A self status N/A args kwargs N/A N/A N/A N/A Trigger __init__ self args kwargs N/A N/A self _status status N/A execute N/A N/A self response N/A N/A N/A 
        Check if status code is the one expected
         N/A N/A N/A N/A response get_status N/A self _status N/A N/A RegexpTrigger N/A Trigger N/A N/A 
    Regexp-based trigger
     __init__ N/A N/A self regexps N/A args kwargs N/A N/A 
        Constructor
        
        regexps: either a list of regexp or a string representing a regexp to match
         N/A N/A N/A Trigger __init__ self args kwargs N/A N/A self _regexps N/A N/A N/A isinstance regexps list N/A N/A regexp regexps N/A N/A N/A N/A N/A self _regexps append N/A N/A re compile regexp N/A N/A re I N/A re MULTILINE N/A N/A N/A self _regexps N/A N/A N/A re compile regexps N/A execute N/A N/A self response N/A N/A N/A 
        Process response
        
        Loop on every regexp and if one matches then returns True.
         N/A content N/A N/A response get_content N/A regexp N/A self _regexps N/A N/A N/A N/A regexp search content N/A N/A True N/A False N/A N/A