Gallopsled / pwntools

CTF framework and exploit development library
http://pwntools.com
Other
11.69k stars 1.67k forks source link

Add `port`, `gdb_args`, and `gdbserver_args` to gdb.debug() #2382

Open gfelber opened 3 months ago

gfelber commented 3 months ago

added two arguments to gdb.debug()

also downgraded "GDB Python API is supported only for local processes" to a warning, because it seems to work.

These changes are made for compatibility with my pwntools "plugin" vagd which currently uses a workaround on Pwngd.debug() (basically the same behaviour as the patch)

gfelber commented 3 months ago

additionally added the optional argument gdbserver_args, which could be useful for some setups or troubleshooting

gfelber commented 1 month ago

Addressed change requests in 7305502.

regarding:

Your "plugin" looks nice, do you have plans to upstream features? I'd rather have nice docker and qemu integration than patchwork changes to make the external tool work. :D

The initial reason this has turned into a "plugin" i maintain myself is so i can basically make changes whenever i encounter a problem or run into an issue (or want to add a new feature).

Generally speaking I don't mind adding the functionality to upstream, but this might require some time because

Maybe we can move this discussion somewhere else? My discord tag is @gfelber (I'm also on the official discord server).