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
f62363d4e4
Lib: MAX & MIN are now inlined functions
2022-05-18 14:12:20 -05:00
3e60cc3c0f
Lib: Minor refactoring, boilerplate content packet handlers
...
- content contexts now have events
- minor comments
2022-05-18 12:04:19 -05:00
83002faa62
Lib: minor refactoring, more lcontent.c boilerplate
2022-05-17 10:37:58 -05:00
b02f48c006
Lib: Added content stream boilerplate
...
- code is untested
2022-05-16 18:48:32 -05:00
81360a8072
Re-added lboxconfig.h
2022-05-16 17:23:45 -05:00
7f587f3df2
Bot: windows builds no longer open a console
2022-05-15 18:14:29 -05:00
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
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
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
a4239282b2
Box: added LAIKA_BOX_SKID, vmTest now uses the LAIKA_BOX_SKID box
...
- updated CONTRIB
2022-05-01 14:41:32 -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
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
2fb0ef29a6
Added CMake flag for enabling persistence
2022-04-07 19:04:42 -05:00
9084afa738
Added commit hash to version display
2022-04-06 01:07:16 -05:00
08d17d56b3
Increased shell data buffer
2022-04-06 00:35:50 -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
b6bd8b2518
Bot persistence boilerplate
2022-04-04 12:12:37 -05:00
3515d10b1c
Minor refactoring
2022-04-01 14:10:06 -05:00
4594e6194b
Removed redundant packets
2022-03-28 20:28:39 -05:00
a4dc723e15
Added Tunnel & Tunnel Connection boilerplate to lib
2022-03-28 15:49:50 -05:00
42199fc7c9
minor refactoring, proper no op macros
2022-03-28 14:02:33 -05:00
5ece351025
Moved setPollIn flag to sLaika_socket from sLaika_peer
2022-03-27 17:32:32 -05:00
7baced7b8f
Refactored polling, lpolllist.c now handles poll events & flushes the poll queue
...
- Sockets now have event callbacks, onPollIn, onPollOut & onPollFail. If these are set to NULL they're ignored
2022-03-24 10:26:06 -05:00
e3b1cf586b
Sanity check to shellS_getPeer, visual improvements
2022-03-21 19:47:18 -05:00
192bf22225
Shell: improved looks, added colored output
2022-03-21 17:47:46 -05:00
30f7ffb73b
Added lsodium.c, laikaK_loadKeys, laikaK_genKeys
2022-03-21 15:24:05 -05:00
af9cdfdaed
lvm.h: added basic implementation of laikaV_execute
2022-03-21 14:59:04 -05:00
26a1977609
Fixed Windows Shell detection for shell closing
...
- updated demo.gif
2022-03-18 17:46:28 -05:00
6f60c7a5b7
Added OSTYPE, added OS info to handshake & peer-related packets
2022-03-17 23:05:18 -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
e2537efb3f
Added LAIKA_CNC_IP & LAIKA_CNC_PORT to cmake config
2022-03-15 13:05:11 -05:00
dfdcb04608
Fixed MSVC VLAs
2022-03-14 12:17:19 -05:00
cb9823d21c
Refactored VLAs to support macrohard
2022-03-14 12:06:32 -05:00
e1ce053aa8
Added termsize 'cols & rows' to SHELL_OPEN packets
2022-03-07 15:16:46 -06:00
0c2d4968d9
Refactored LAIKAPKT_HANDSHAKE_REQ, laikaS_acceptFrom
...
- added inet member to peer structs
2022-03-04 20:17:03 -06:00
8ab3033bf3
Added 'shell' command to LaikaShell
...
- another major refactoring
2022-03-02 10:38:16 -06:00
2d8e9ed106
Implemented laikaC_handleAuthenticatedShellData & laikaC_handleAuthenticatedShellOpen
2022-02-28 16:39:02 -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
c092d5a9a0
Deprecated panel, added shell, lrsa.h -> lsodium.h
...
- Refactoring
2022-02-24 22:13:05 -06:00