From 2a6fcb6b7b5d618e0657ffc8158759ff8afa84b3 Mon Sep 17 00:00:00 2001 From: Alexander Zhang Date: Sun, 4 Aug 2024 14:01:30 -0700 Subject: [PATCH] Fix argument for enabling GDB in template.py (#292) The `DEBUG` argument is reserved by pwntools for turning on its debugging output and pwntools does not expose reserved arguments in `args`. This commit changes the argument name to `GDB` so that it does not conflict with a reserved argument. --- README.md | 2 +- src/template.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e17ce92..9f18dbd 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ context.binary = exe def conn(): if args.LOCAL: r = process([exe.path]) - if args.DEBUG: + if args.GDB: gdb.attach(r) else: r = remote("addr", 1337) diff --git a/src/template.py b/src/template.py index 961da1c..1afe2f0 100644 --- a/src/template.py +++ b/src/template.py @@ -10,7 +10,7 @@ def conn(): if args.LOCAL: r = process({proc_args}) - if args.DEBUG: + if args.GDB: gdb.attach(r) else: r = remote("addr", 1337)