PwnableHarness icon indicating copy to clipboard operation
PwnableHarness copied to clipboard

Add support for passing arguments to the challenge binary

Open C0deH4cker opened this issue 1 year ago • 0 comments

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.

C0deH4cker avatar Jan 05 '24 22:01 C0deH4cker