-
Notifications
You must be signed in to change notification settings - Fork 276
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 hashcash PoW challenge #143
Comments
@sroettger wdyt? |
Example:
|
The The downside of this is that the pow script needs to live in the challenge chroot which exposes an unnecessary implementation detail. |
@sirdarckcat fyi |
Wouldn't it make sense to add some pool of preexec modules (configurable) instead? Adding If this is something useful for many, then maybe something like
We could add a simple login/password thing, and pow, and maybe something else. I'll defer to your all judgement, so just my 2c. |
would the preexec_module run inside the jail or outside? |
Hi, about a month ago I've created simple PoC for Depending on the mode, it is executing the wrapper with argv set to If that's fine I can create PR with that. |
I'm still a bit on the side of builtin modules, as
or
WDYT, if there will be no support for this idea, I'd be fine with --exec_wrapper. |
The --exec-wrapper is still something we would like to use for https://github.com/google/kctf. |
I implemented this as a poc (needs some polishing): Wdyt? |
We're going to use socat + nsjail in mode "once" now for our usecase: google/kctf#168 |
It would be nice to have a
--hashcash
option for-Ml
, so that nsjail would generate a PoW challenge with configured difficulty.That would make it easier for hosting CTF challenges that needs some anti-ddos protection.
On the other hand, I am not sure if that's something that should be a core nsjail functionality, so maybe this should be realized as some kind of
--exec-wrapper
flag or just by the jailed program.The text was updated successfully, but these errors were encountered: