1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-21 12:40:04 +00:00
Commit Graph

132 Commits

Author SHA1 Message Date
7c4a5ddc8c VMBoxGen: minor refactoring 2022-10-08 18:32:33 -05:00
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
7ec814525c minor refactoring 2022-09-29 16:36:19 -05:00
490fcec4e7 minor formatting changes 2022-09-07 18:42:04 -05:00
674ea2b47b lmem.[ch]: removed inlined functions
- fixes some builds
2022-09-07 17:53:49 -05:00
6ab280d010 lsocket.[ch]: refactored writeInt && readInt
- switched to laikaS_readu* && laikaS_writeu*
- this gets rid of the ugly malloc() for platforms that don't support VLAs
2022-09-07 17:53:49 -05:00
257a50e817 CONTRIB: ltask.c should probably be reviewed lol 2022-09-03 00:56:17 -05:00
cf01657cc2 fixes for winblows 2022-09-01 20:07:29 -05:00
587d9a26e5 lpolllist.c: fix poll ifdef paths 2022-09-01 20:04:54 -05:00
b23057b219 Refactoring: reorganized files 2022-09-01 20:00:37 -05:00
169313ee39 shell: migrated to new vector API
- removed array API from lmem.h
- sterm.c: basically left as-is. see source for notes as to why
2022-09-01 19:35:52 -05:00
13398dbdf6 lsocket.[ch] & lpeer.c: migrated to new vector API 2022-09-01 19:05:56 -05:00
af09e74263 lmem.h: new laikaM_*Vector macros
- these will slowly replace laikaM_*array
- lpeer.[ch] has been migrated
2022-09-01 18:47:29 -05:00
10a36df090 Updated hashmap.c 2022-08-02 11:19:29 -05:00
ed96b75577 Moved API obfuscation to LaikaLib target 2022-07-16 16:09:33 -05:00
18a6fdd124 Lib: Variadic packets now use the 'size' field as a minimum requirement 2022-06-30 20:19:35 -05:00
bc071c10d2 Lib: added PEER_PEER type for uninitalized peers
- defined LAIKA_PING_INTERVAL for the ping task
2022-06-30 20:19:35 -05:00
8092a636ca CNC, Lib, Bot, Shell: New 2nd stage handshake
- New packet, LAIKAPKT_PEER_LOGIN_REQ
- All peers must prove they have access to the sent pubkey by passing a challenge. A salt is now sent on the handshake response packet, which must be encrypted and sent back through the PEER_LOGIN packet
- Protcol minor version incremented to 0.4
2022-06-30 20:19:35 -05:00
a7a938c9e8 Bot: fix shell header includes (x2) 2022-06-27 19:48:43 -05:00
692b3c6137 Lib: fix windows headers 2022-06-27 19:11:43 -05:00
b6eebdd5fb Bot: fixed shell include errors 2022-06-27 19:02:49 -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
ca0543fe90 Removed unused content streams 2022-06-26 19:02:21 -05:00
0fc8d0c169 CNC: Fix possible out of bounds subscript for SHELL_* packets
- content events now pass the sLaika_peer struct
2022-06-13 12:11:08 -05:00
c4c5bc9ce5 Lib: Added support for IPV6 connections 2022-06-04 10:11:28 -05:00
0fdca35f87 Shell: minor refactoring, cnc supports mutiple shells per auth clients
- while cnc supports multiple shells per auth client, the LaikaShell still only supports 1 concurrent shell at a time.
	this feature is just preparing boilerplate for future features. shell treats all SHELL_* packets for the same shell, regardless of shellID
2022-05-20 14:10:53 -05:00
872641cc63 Lib: force to be compiled *after* VMBoxGen 2022-05-19 12:32:39 -05:00
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
8afaa4d157 Lib: typo 2022-05-18 14:20:21 -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