Commit Graph

24 Commits

Author SHA1 Message Date
CPunch 3316c77667 minor 'DEBUG' refactoring
- for debug builds, the LAIKA_DEBUG_BUILD macro will be defined in lconfig.h
- LAIKA_OBFUSCATE now controls the winobf IAT obfuscation as well
2022-10-05 20:36:49 -05:00
CPunch b23057b219 Refactoring: reorganized files 2022-09-01 20:00:37 -05:00
CPunch ed96b75577 Moved API obfuscation to LaikaLib target 2022-07-16 16:09:33 -05:00
CPunch b2f8efc402 Bot: Added boilerplate windows API obfuscation
- Grabs the functions directly from the loaded library by walking the exported address table and comparing hashes
- For now, only ShellExecuteA has been setup, more to come
2022-07-10 19:24:48 -05:00
CPunch 2e4c63c0c6 Bot: misc. formatting fixes 2022-06-29 17:45:51 -05:00
CPunch 48fa8935c3 Added .clang-format, formatted codebase 2022-06-27 18:57:00 -05:00
CPunch b00ac16cb3 Shell/CNC: Moved line endings conversion from cnc to shell
- Also fixed DEBUG output for windows LaikaBot builds
2022-06-03 20:55:14 -05:00
CPunch 5aecc1b63f 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
2022-05-19 01:42:40 -05:00
CPunch 7f587f3df2 Bot: windows builds no longer open a console 2022-05-15 18:14:29 -05:00
CPunch 34dd36fb67 Windows: implemented laikaB_markRunning() & laikaB_unmarkRunning()
- use Sleep() for LAIKA_PERSISTENCE in main()
- use Mutex for checking existing LaikaBots
- switched to TEXT() for win32 strings
2022-04-16 23:54:07 -05:00
CPunch b60203d3f2 Linux: implemented laikaB_markRunning() & laikaB_unmarkRunning()
- switched to file locks as that's more discreet
    - tied to LAIKA_PERSISTENCE being defined
2022-04-16 22:56:05 -05:00
CPunch dac99ddd85 Bot: Only run shell task when shell is open
- since the shell task is only ran when the shell is open, i decreased the delta to 50ms. this should improve latancy while improving performance for 99% of the time. yay!
2022-04-14 12:11:29 -05:00
CPunch 9694ae67d8 Added LAIKAPKT_PINGPONG
- shell now has it's own task service, it's polled in shellC_poll()
- default timeout for peers is 60 seconds, to change this edit the LAIKA_PEER_TIMEOUT in cnc.h
2022-04-13 12:19:06 -05:00
CPunch 59c01d422b More resilient persistence
- bot will keep trying to connect if it failed to connect to the CNC or if the bot was killed
- if crontab isn't installed the bot will still run
2022-04-10 15:45:30 -05:00
CPunch 412418ec0a Added crontab persistence, disabled by default with LAIKA_NOINSTALL
- undefine LAIKA_NOINSTALL in persist.h to enable persistence
- windows persistence is still unimplemented
2022-04-07 18:11:58 -05:00
CPunch e228c98c80 Added config inis, key refactoring
- CNC can accept multiple different auth keys now
- laikaK_checkAuth() added
- shell defaults to using shell.ini config file
- CNC doesn't require a config file however it's highly recommended
2022-04-05 23:57:37 -05:00
CPunch e2537efb3f Added LAIKA_CNC_IP & LAIKA_CNC_PORT to cmake config 2022-03-15 13:05:11 -05:00
CPunch 8ab3033bf3 Added 'shell' command to LaikaShell
- another major refactoring
2022-03-02 10:38:16 -06:00
CPunch 8438378560 Major refactoring
lots and lots of changes. too many to list tbh, might rebase this commit later if i get bored enough.
2022-02-28 16:27:55 -06:00
CPunch 5c31fb861b Added LAIKAPKT_SHELL_*, fixed variadic packets
- added bot/shell.[ch]
- simple demo cnc which runs 'ls -a' on the connect peer
2022-02-21 17:25:49 -06:00
CPunch 56c6db1d62 Added laikaS_readENC laikaS_writeENC, minor refactoring 2022-01-29 00:26:15 -06:00
CPunch 04f02b4371 Protected handler calls in bot.c
- Added support for LAIKAPKT_HANDSHAKE_RES
2022-01-25 11:58:36 -06:00
CPunch 1bccc78117 First actual runnable version
- many warnings & bug fixes
- added bot/ source
2022-01-24 21:46:29 -06:00
CPunch 8133a8d3cb Inital commit
lib/ is just [FoxNet](https://git.openpunk.com/CPunch/FoxNet) ported to C99
2022-01-23 21:28:16 -06:00