1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-12-26 12:50:06 +00:00
Commit Graph

147 Commits

Author SHA1 Message Date
f649ca4a56 Win: Static builds & fixed winpersist.c 2022-05-14 13:24:20 -05:00
36aefba340 VMBoxGen: generate lboxconfig.h post build if LAIKA_OBFUSCATE 2022-05-11 14:50:42 -05:00
c4fc1a1fe6 misc. refactoring, updated comments and minor documentation 2022-05-10 21:03: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
062d8f1dd6 update README 2022-05-09 17:02:48 -05:00
b190f5dd16 Removed leftovers 2022-05-09 16:42:09 -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
7ca855410d Box: added LAIKA_BOX_DATA_INDX & LAIKA_BOX_UNLOCKED_INDX macros
- they represent the indx in the constant list the box's unlocked & data pointers will be
2022-05-08 01:45:36 -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
67f404dac6 removed unused macro 2022-05-03 15:54:42 -05:00
ead2f08c87 update README 2022-05-01 14:54:38 -05:00
a4239282b2 Box: added LAIKA_BOX_SKID, vmTest now uses the LAIKA_BOX_SKID box
- updated CONTRIB
2022-05-01 14:41:32 -05:00
f90c99ce64 Bot: Strip symbols 2022-05-01 14:21:44 -05:00
c63bfe00af VM: added OP_DECPTR, minor refactoring of laikaB_unlock 2022-04-30 16:21:29 -05:00
c16cdf3644 Windows: Fix laikaV_execute for MSVC 2022-04-30 13:06:18 -05:00
a4e04297a7 Tool: added VM Test
- includes a tiny demo for decoding secret messages
2022-04-29 15:51:59 -05:00
36c3c8a65f Box: implemented laikaB_unlock() & laikaB_lock() 2022-04-28 18:10:15 -05:00
4333d03a51 VM: minor refacotring, added OP_TESTJMP & OP_DEBUG 2022-04-28 11:57:32 -05:00
9cea98c86a Forced inlining for both GCC/clang & MSVC 2022-04-28 11:07:11 -05:00
64f7e40fa0 Windows: Persistence via windows registry 2022-04-22 17:20:31 -05:00
e80f007df9 Bot: Minor refactoring, tell cnc if failed to open shell 2022-04-20 10:23:00 -05:00
c3c42e298f Windows: use COMSPEC environment variable to grab the shell
- shells on windows are now opened from the COMSPEC env variable
- cnc will now ignore malformed shell packets from bots instead of killing them
2022-04-20 10:10:44 -05:00
cfe633f1d5 Windows: Added registry manipulation boilerplate 2022-04-18 17:05:26 -05:00
136d523607 CONTRIB: Documented packet handlers, added more smaller todos 2022-04-17 20:16:03 -05:00
2338e7215a Added CONTRIBUTING.md 2022-04-17 01:12:01 -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
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
d94a6a5e17 shellT_addChar(): Added ascii validation, ignore non-printable input 2022-04-15 15:40:25 -05:00
9a6562f440 Shell: CTRL+A now kills the shell 2022-04-15 15:27:50 -05:00
7d9ed4ab87 Switch to asciinema for demo 2022-04-15 00:35:37 -05:00
7bd256171b Fix: inet_ntop passed the wrong pointer 2022-04-15 00:25:36 -05:00
9d083608aa updated readme info 2022-04-14 12:38:57 -05:00
3eb467b6aa Fixed artifacts path for windows 2022-04-14 12:15:28 -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
89630b1a5e Linked to Ansible-Playbook 2022-04-11 12:56:42 -05:00
2fe297eb0e Missing semicolon 2022-04-11 12:01:59 -05:00
c6c187dcc7 Shell: use LAIKA_CNC_* macros 2022-04-11 09:51:10 -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
d34a824133 Remove unneeded check 2022-04-07 23:21:09 -05:00
2fb0ef29a6 Added CMake flag for enabling persistence 2022-04-07 19:04:42 -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
c0828a77c6 Require CNC to load a config, by default it loads 'server.ini' 2022-04-06 12:14:09 -05:00
9084afa738 Added commit hash to version display 2022-04-06 01:07:16 -05:00
5fcdb53740 list config in README 2022-04-06 00:45:29 -05:00
0f07f08938 updated demo 2022-04-06 00:42:52 -05:00