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

pwntools now includes "pwn template" #2

Open
zachriggle opened this issue Feb 21, 2017 · 4 comments
Open

pwntools now includes "pwn template" #2

zachriggle opened this issue Feb 21, 2017 · 4 comments

Comments

@zachriggle
Copy link

As of the (future) Pwntools 3.6.0 release, a new command-line helper pwn template is available which supplants much of the functionality in pwnup. See here for more information: Gallopsled/pwntools#909.

The only thing that it does not do is the I/O recording, which seems useful, but less useful than the template generation.

Do you have any suggestions for the current pwn template implementation? Would you be willing to bless it as a pwnup replacement?

Thanks!
Zach

@vitapluvia
Copy link
Owner

Hi Zach!

Thanks so much for adding this feature to pwntools! This is incredible!

Before creating this tool I had thought of keeping common templates around, copying different client types based on what was needed, replacing the string for host & port etc.

I'd argue to keep the record feature in the future. It became very useful to be able to record stdio without having to worry about the minutia of characters to recvuntil, etc. It helps to have all of this figured out when we really want to focus on the CTF challenge, and keep our heads in the context of the game.

If possible, I'd love to contribute a pull request to pwntools to add the recording feature and possibly split apart the templates into the various types of clients, similar to how pwnup works right now (remote, ssh, local).

~Vita

@zachriggle
Copy link
Author

As things are now, there shouldn't be any need to split up the templates.

The design of the current template used by pwn template is so that you can trivially switch between remote and local exploitation, and easily enable / disable the debugger. This is something that pwnup doesn't appear to handle.

@vitapluvia
Copy link
Owner

vitapluvia commented Feb 21, 2017

Ah I see, I was only looking at the local & remote methods included in the TCP remote & SSH examples. Didn't see all the conditionals in the template.

That is a nice feature to be able to switch! Do you think the recording feature makes sense to add?

@vitapluvia
Copy link
Owner

Other than the recording, I'm ready to deprecate pwnup in favor of pwn template 👍

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

No branches or pull requests

2 participants