Skip to content

Commit

Permalink
Fix argument for enabling GDB in template.py (#292)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bkrl authored Aug 4, 2024
1 parent ef64318 commit 2a6fcb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2a6fcb6

Please sign in to comment.