While testing, sometimes it's nice to try it in a more 'real' environment (or you're using this project for red-teaming). Before deploying the default LaikaCNC target to a public-facing VPS, we'll need to make some changes.
Generate a good keypair
Make sure you have a unique, self-generated keypair. You can do that by following this.
Pass port && ip back to cmake
This step can be combined with the compilation after you generated your keypair. Just set the LAIKA_CNC_IP and LAIKA_CNC_PORT configs in cmake, like so:
Make shell keypair
This keypair is unique per 'admin' user. Generate another keypair and update shell.ini && server.ini
Replace the pre-existing keypair with your newly generated key!!
Example shell.ini
Example server.ini
Deployment
Note that the CNC target expects 'server.ini' to be in the working directory. If you need to more this file for whatever reason, the ini config path can be passed to the server as a command line argument. Eg: