Warbox API and instructions
These pages are for "Warbox" administrators.
A Warbox is a computer that offers hacking challenges, but does not keep track of it´s users and their progress.
If you are the admin of a Warbox, adding it to WeChall has never been easier.
All you need todo is make sure that you have an identd running on a port below 4141 and being reachable by wechall.net.
Also your box needs to be able to connect to wechall.net on port 4141.
How does it work?
When a user does the netcat(nc) command from your box, the identd will securely tell the service at port 4141 which level on your box sent the command.
As the user sends a unique Warbox token as well, the service at wechall.net can keep track of a users progress.
Users can then link your Warbox as any regular site, via wechall.net as a data proxy.
Of course adding a new site also requires us to choose a proper display name, hostname and other settings manually.
Send us an email with the required information to get your box added to wechall.
Let us thank epoch_qwert, for this fabulous idea and implementation!
Setting up identd
Some examples how to install an identd can be found here.
gentoo
su
emerge -av oidentd
/etc/init.d/oidentd start
rc-update add oidentd default
Configuring iptables
Allow incoming 113 from wechall.net
iptables -I INPUT -p tcp -m tcp --dport 113 -s wechall.net -j ACCEPT
Allow outgoing to wechall.net port 4141
iptables -I OUTPUT -p tcp -m tcp --dport 4141 -d wechall.net -j ACCEPT