Skip to content

Commit 2a6fcb6

Browse files
authored
Fix argument for enabling GDB in template.py (io12#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.
1 parent ef64318 commit 2a6fcb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ context.binary = exe
105105
def conn():
106106
if args.LOCAL:
107107
r = process([exe.path])
108-
if args.DEBUG:
108+
if args.GDB:
109109
gdb.attach(r)
110110
else:
111111
r = remote("addr", 1337)

src/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
def conn():
1111
if args.LOCAL:
1212
r = process({proc_args})
13-
if args.DEBUG:
13+
if args.GDB:
1414
gdb.attach(r)
1515
else:
1616
r = remote("addr", 1337)

0 commit comments

Comments
 (0)