summaryrefslogtreecommitdiffstats
path: root/sploit/rev/elf.py
diff options
context:
space:
mode:
Diffstat (limited to 'sploit/rev/elf.py')
-rw-r--r--sploit/rev/elf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sploit/rev/elf.py b/sploit/rev/elf.py
index 990cfde..28cd08d 100644
--- a/sploit/rev/elf.py
+++ b/sploit/rev/elf.py
@@ -198,8 +198,8 @@ class ELF:
cont (bool): If true, this function will return all of the assembly past
the found gadget up to the next return point.
"""
- return r2.rop_gadgets(self.path, *regexes, cont=cont)
+ return [ self.sym[g] for g in r2.rop_gadgets(self.path, *regexes, cont=cont) ]
def gadget(self, *regexes):
"""Returns the first gadget found that matches the given regex list."""
- return r2.rop_gadget(self.path, *regexes)
+ return self.sym[r2.rop_gadget(self.path, *regexes)]