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
7f587f3df2
Bot: windows builds no longer open a console
2022-05-15 18:14:29 -05:00
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
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
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
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
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
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
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
e2537efb3f
Added LAIKA_CNC_IP & LAIKA_CNC_PORT to cmake config
2022-03-15 13:05:11 -05:00
8ab3033bf3
Added 'shell' command to LaikaShell
...
- another major refactoring
2022-03-02 10:38:16 -06:00
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
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
56c6db1d62
Added laikaS_readENC laikaS_writeENC, minor refactoring
2022-01-29 00:26:15 -06:00
04f02b4371
Protected handler calls in bot.c
...
- Added support for LAIKAPKT_HANDSHAKE_RES
2022-01-25 11:58:36 -06:00
1bccc78117
First actual runnable version
...
- many warnings & bug fixes
- added bot/ source
2022-01-24 21:46:29 -06:00
8133a8d3cb
Inital commit
...
lib/ is just [FoxNet](https://git.openpunk.com/CPunch/FoxNet ) ported to C99
2022-01-23 21:28:16 -06:00