Skip to content

Commit

Permalink
prevent syscall from being filtered
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyongzheng committed Jul 7, 2015
1 parent 2850e2d commit 3e6532c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ropgadget/gadgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __checkMultiBr(self, insts, br):

def __passCleanX86(self, gadgets, multibr=False):
new = []
br = ["ret", "int", "sysenter", "jmp", "call"]
br = ["ret", "int", "sysenter", "jmp", "call", "syscall"]
for gadget in gadgets:
insts = gadget["gadget"].split(" ; ")
if len(insts) == 1 and insts[0].split(" ")[0] not in br:
Expand Down

0 comments on commit 3e6532c

Please sign in to comment.