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

DEBUG check in template doesn't work? #283

Open
poniponiponiponiponiponiponiponiponi opened this issue Sep 29, 2022 · 1 comment
Open

DEBUG check in template doesn't work? #283

poniponiponiponiponiponiponiponiponi opened this issue Sep 29, 2022 · 1 comment

Comments

@poniponiponiponiponiponiponiponiponi

I don't know if it's a bug in pwntools or what but the check if args.DEBUG: in the standard template doesn't work for me. It seems like launching solve.py with python3 solve.py LOCAL DEBUG only changes the log_level to debug.

@fission1110
Copy link

I am having the same issue. The code in pwntools appears to deliberately not expose arguments it hooks internally in args anymore.
From args.py These arguments are automatically extracted, regardless of their name, and exposed via :mod:`pwnlib.args.args`, which is exposed as the global variable :data:`args`. Arguments which ``pwntools`` reserves internally are not exposed this way.
https://github.com/Gallopsled/pwntools/blob/dev/pwnlib/args.py#L19

Maybe the default template should change to something else like args.GDB

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