Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

umem_search doesn't return list of tuples. #23

Open
otomist opened this issue Nov 15, 2018 · 0 comments
Open

umem_search doesn't return list of tuples. #23

otomist opened this issue Nov 15, 2018 · 0 comments

Comments

@otomist
Copy link

otomist commented Nov 15, 2018

In the

READ.ME example it says shows umem_search returning a list of tuples.

>> l=[x for x in mw.umem_search("hello")]
>> l

[('', <Addr: 0x003287B0>)]


However it should just return a lists of addresses:
>>> from memorpy import *
>>> mw = MemWorker(pid=pid1)
>>> 
>>> l=[x for x in mw.umem_search("hello")]
>>> l
[<Addr: 0x7F68C83B0770>, <Addr: 0x7F68C83B3D5C>, <Addr: 0x7F68C83B6024>, <Addr: 0x7F68C8A7A0A2>]
>>> l.dump
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'dump'
>>> l.dump()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'dump'
>>> a=l[0][0]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'Address' object does not support indexing
>>> a=l[0]
>>> a
<Addr: 0x7F68C83B0770>
>>> l
[<Addr: 0x7F68C83B0770>, <Addr: 0x7F68C83B3D5C>, <Addr: 0x7F68C83B6024>, <Addr: 0x7F68C8A7A0A2>]
>>> a.dump()





Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant