(payload, **kwargs)
return retVal
Replaces AND and OR logical operators with their symbolic counterparts (&& and ||)

    >>> tamper("1 AND '1'='1")
    "1 %26%26 '1'='1"
Replaces AND and OR logical operators with their symbolic counterparts (&& and ||)
Replaces AND and OR logical operators with their symbolic counterparts ( && and || )
def tamper(payload, **kwargs):
    """
    Replaces AND and OR logical operators with their symbolic counterparts (&& and ||)

    >>> tamper("1 AND '1'='1")
    "1 %26%26 '1'='1"
    """

    retVal = payload

    if payload:
        retVal = re.sub(r"(?i)\bAND\b", "%26%26", re.sub(r"(?i)\bOR\b", "%7C%7C", payload))

    return retVal
def tamper ( payload , * * kwargs ) : retVal = payload if payload : retVal = re . sub ( r"(?i)\bAND\b" , "%26%26" , re . sub ( r"(?i)\bOR\b" , "%7C%7C" , payload ) ) return retVal