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

shellcraft can't use break syscall #1312

Closed
disconnect3d opened this issue Jun 7, 2019 · 1 comment
Closed

shellcraft can't use break syscall #1312

disconnect3d opened this issue Jun 7, 2019 · 1 comment

Comments

@disconnect3d
Copy link
Contributor

It is not possible to use the (old and currently unimplemented) break syscall through pwn.shellcraft as break is a Python keyword and the module tries to define def break(...) function:

An example for amd64:

>>> 'break' in dir(pwn.shellcraft.amd64)
True
>>> pwn.shellcraft.amd64.break
  File "<stdin>", line 1
    pwn.shellcraft.amd64.break
                             ^
SyntaxError: invalid syntax

And arm:

>>> 'break' in dir(pwn.shellcraft.arm)
True
>>> pwn.shellcraft.arm.break
  File "<stdin>", line 1
    pwn.shellcraft.arm.break
                           ^
SyntaxError: invalid syntax

The real cause (described above) can be easily spotted when interacting with IPython interactive shell:
image

@disconnect3d
Copy link
Contributor Author

This was fixed in #1355 and released in 3.13.0.

Thanks! 👍

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

No branches or pull requests

2 participants