(address, key, count)
return mem
Helper function for xorring memory in gdb
Helper function for xorring memory in gdb
Helper function for xorring memory in gdb
def xor_memory(address, key, count):
    """
    Helper function for xorring memory in gdb
    """
    mem = pwndbg.memory.read(address, count, partial=True)

    for index, byte in enumerate(mem):
        key_index = index % len(key)
        mem[index] = byte ^ ord(key[key_index])

    return mem
def xor_memory ( address , key , count ) : mem = pwndbg . memory . read ( address , count , partial = True ) for index , byte in enumerate ( mem ) : key_index = index % len ( key ) mem [ index ] = byte ^ ord ( key [ key_index ] ) return mem