PwnableHarness
PwnableHarness copied to clipboard
Add support for passing arguments to the challenge binary
As discussed in #25, there's currently no easy way to pass custom arguments to the challenge binary when it is run to handle a new connection. This is normally not needed if a challenge is developed from scratch using PwnableHarness. However, I can see how it could be useful if the challenge binary is some existing program that the challenge author would like to make accessible over a socket connection.
A new Build.mk
variable like DOCKER_CHALLENGE_ARGS
could be added that gets passed onto pwnable_server
, likely after a --
sentinel. Then, pwnable_server
can pass along these arguments directly to the challenge binary when it gets executed on an incoming connection.