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

Reorder shellcraft syscall templates #880

Closed
wants to merge 6 commits into from

Conversation

kristoff3r
Copy link
Contributor

Move autogenerated syscall shellcode into syscalls/ directories, making it easier to see the handwritten shellcode. Solves issue #685.

Based on #712 , which I closed because it was easier to merge with current dev by hand.

I'm sorry for the extra work this causes for #871. If it's easier, then feel free to disregard this and/or cherry pick stuff into that pull request instead.

@zachriggle
Copy link
Member

This looks like it requires more maintenance than #871, and doesn't have any way of bulk updating (e.g. If there is an error in the template).

#871 also supports complex types, so that shellcraft.i386.linux.read("/home/challenge/flag") works as expected.

Take a look at the generation script in #871 to see what I mean: https://github.com/zachriggle/pwntools/tree/c48e6b08f04f64d283232f5dd37ee95743ffc150/pwnlib/data/syscalls

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

Successfully merging this pull request may close these issues.

4 participants