(address, key, count)
xor(address, key, count)

    XOR ``count`` bytes at ``address`` with the key ``key``.
xor(address, key, count)
xor ( address key count )
def xor(address, key, count):
    '''xor(address, key, count)

    XOR ``count`` bytes at ``address`` with the key ``key``.
    '''
    if not isinstance(address, int):
        try:
            address = int(address, 0)
        except ValueError:
            print('Invalid address %s' % address)
            return

    try:
        xorred_memory = xor_memory(address, key, count)
        pwndbg.memory.write(address, xorred_memory)
    except gdb.error as e:
        print(e)
def xor ( address , key , count ) : if not isinstance ( address , int ) : try : address = int ( address , 0 ) except ValueError : print ( 'Invalid address %s' % address ) return try : xorred_memory = xor_memory ( address , key , count ) pwndbg . memory . write ( address , xorred_memory ) except gdb . error as e : print ( e )