mirror of
https://github.com/Gallopsled/pwntools.git
synced 2026-11-08 08:06:05 -10:00
Enable passing an elf.Function to flat()
This commit is contained in:
1 parent
bd88c92991
commit
0c8006ca4e
1 file changed
+3
@@ -97,6 +97,9 @@ class Function(object):
|
||||
self.elf
|
||||
)
|
||||
|
||||
def __flag__(self):
|
||||
return packing.pack(self.address)
|
||||
|
||||
def load(*args, **kwargs):
|
||||
"""Compatibility wrapper for pwntools v1"""
|
||||
return ELF(*args, **kwargs)
|
||||
|
||||
Reference in new issue
Block a user