b23057b219
Refactoring: reorganized files
2022-09-01 20:00:37 -05:00
ed96b75577
Moved API obfuscation to LaikaLib target
2022-07-16 16:09:33 -05:00
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
48fa8935c3
Added .clang-format, formatted codebase
2022-06-27 18:57:00 -05:00
1d6ce15b3d
Minor comments refactoring
2022-06-27 18:20:23 -05:00
e3a1f51d60
added 'LAIKA_OBFUSCATE' cmake option
...
- if defined, enables LAIKA_BOX obfuscation for variables
- new macros (LAIKA_BOX_SKID_START & LAIKA_BOX_SKID_END), become no-ops if LAIKA_OBFUSCATE is undefined
- TODO: use cmake to automate the generation of lboxconfig.h
2022-05-10 20:28:54 -05:00
71db213261
Implemented VMBoxes, linux persistence related strings are obfuscated, added VMBoxGen tool
...
- lboxconfig.h holds obfuscated data, which is generated by VMBoxGen
- linpersist.c now uses obfuscated strings
2022-05-09 16:41:01 -05:00
63e36d1ebb
Bot: small shell.[ch] + native refactor
...
- `struct sLaika_shell` is now a shared struct, `struct sLaika_RAWshell` is the native implementation with `struct sLaika_shell` as it's first member
2022-05-08 01:21:37 -05:00
7d96f3252c
Major shell packet refactoring
...
- can now open multiple shells per peer (change LAIKA_MAX_SHELLS)
- more sanity checking for public keys (new peers with duplicate keys are killed
- misc. refactoring, added cnc/cpeer.[ch]
2022-05-07 20:09:42 -05:00
64f7e40fa0
Windows: Persistence via windows registry
2022-04-22 17:20:31 -05:00
231881c960
Bot: Minor laikaB_freeShell refactoring
2022-04-16 23:08:21 -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
2fe297eb0e
Missing semicolon
2022-04-11 12:01:59 -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
bb6e489945
check if installed in crontab before installing
2022-04-08 12:51:03 -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
56fb305ef2
Implemented linpersist.c:laikaB_checkRoot(), fixed Shell config argument
2022-04-06 15:22:01 -05:00
b6bd8b2518
Bot persistence boilerplate
2022-04-04 12:12:37 -05:00
4833dea67f
Added Windows Bot client
...
- Shells 'work' but line endings aren't converted yet so pressing enter doesn't work lol
2022-03-17 18:22:26 -05:00