From df11ce92543aa635bfe44ee4d8af870d7609f4d0 Mon Sep 17 00:00:00 2001 From: CPunch Date: Fri, 8 Jul 2022 00:08:38 -0500 Subject: [PATCH] Created CNC setup (markdown) --- CNC-setup.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 CNC-setup.md diff --git a/CNC-setup.md b/CNC-setup.md new file mode 100644 index 0000000..5c62868 --- /dev/null +++ b/CNC-setup.md @@ -0,0 +1,19 @@ +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. + +## Generating a keypair + +Generate a keypair using the `./bin/genKey` binary. Just run it like: + +```sh +$ ./bin/genKey +``` + +These keypairs will then need to be passed back to cmake, you'll need to re-build the whole target using these keys. This looks something like: + +```sh +$ rm -rf bin build &&\ + cmake -B build -DLAIKA_PUBKEY=997d026d1c65deb6c30468525132be4ea44116d6f194c142347b67ee73d18814 -DLAIKA_PRIVKEY=1dbd33962f1e170d1e745c6d3e19175049b5616822fac2fa3535d7477957a841 -DCMAKE_BUILD_TYPE=MinSizeRel &&\ + cmake --build build +``` + +## Update the keys in server.ini & shell.ini \ No newline at end of file