'Leaks memory within the process at the specified address.
Arguments:
address(int): Address to leak memory at
count(int): Number of bytes to leak at that address.
Example:
>>> e = ELF(\'/bin/sh\')
>>> p = process(e.path)
In order to make sure there\'s not a race condition against
the process getting set up...
>>> p.sendline(\'echo hello\')
>>> p.recvuntil(\'hello\')
\'hello\'
Now we can leak some data!
>>> p.leak(e.address, 4)
\'\x7fELF\''

def leak(self, address, count=1):

    if ('qemu-' in os.path.realpath(('/proc/%i/exe' % self.pid))):
        self.error('Cannot    use    leaker    on    binaries    under    QEMU.')
    with open(('/proc/%i/mem' % self.pid), 'rb') as mem:
        mem.seek(address)
        return (mem.read(count) or None)
