We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ref: Gallopsled/pwntools#932 (comment)
Output in a more parsable format sounds a good idea to make one_gadget be more usable across different tools.
one_gadget
The text was updated successfully, but these errors were encountered:
Example output (detailed field names might be changed during implementation, will update this comment once I have a PR):
$ one_gadget /lib/x86_64-linux-gnu/libc.so.6 -o json
{ "gadgets": [ { "value": 932606, "effect": "execve('/bin/sh', r15, r12)", "constraints": ["[r15] == NULL || r15 == NULL || r15 is a valid argv", "[r12] == NULL || r12 == NULL || r12 is a valid envp"] }, { ... } ] }
For the case of --near provided, output would become an array on the top level: $ one_gadget /lib/x86_64-linux-gnu/libc.so.6 --near exit,mkdir -o json
--near
$ one_gadget /lib/x86_64-linux-gnu/libc.so.6 --near exit,mkdir -o json
[ { "near": "exit", "near_offset": <offset of exit in libc>, "gadgets": [ { ... } ] }, { "near": "mkdir", "near_offset": <offset of mkdir in libc>, "gadgets": [ { ... } ] } ]
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
ref: Gallopsled/pwntools#932 (comment)
Output in a more parsable format sounds a good idea to make
one_gadget
be more usable across different tools.The text was updated successfully, but these errors were encountered: