Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proof of work feature #64

Open
C0deH4cker opened this issue Nov 10, 2024 · 0 comments
Open

Add proof of work feature #64

C0deH4cker opened this issue Nov 10, 2024 · 0 comments
Assignees

Comments

@C0deH4cker
Copy link
Owner

For some challenges that are resource intensive for hosting per-connection (like kernel pwn or anything that runs a new container per connection), it's common practice to put such a challenge behind a proof of work. This typically involves making the player brute force some hashes to spend a configurable amount of time (approximate) before they're able to connect to the real challenge. This is something that can likely be integrated cleanly into PwnableHarness, so challenge authors can just add something like the following to their Build.mk files:

# Enable proof of work when connecting to the Docker container
DOCKER_PROOF_OF_WORK := 1

# Perhaps this is the average number of seconds it should take to complete the proof of work.
# This would likely be used to set the hash prefix length and potentially number of rounds of hashing.
# There will be a reasonable default for this, so an author will only need to modify this value
# if they want to increase it for an especially resource-intensive challenge.
DOCKER_PROOF_OF_WORK_DIFFICULTY := 10
@C0deH4cker C0deH4cker self-assigned this Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant