Commit Graph

47 Commits

Author SHA1 Message Date
CPunch 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
CPunch 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
CPunch b23057b219 Refactoring: reorganized files 2022-09-01 20:00:37 -05:00
CPunch 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
CPunch 25c18db6bc Bot: added Registry related API to laikaO_init()
- Also fixed misc. shell bug.
2022-07-12 18:09:23 -05:00
CPunch 18a6fdd124 Lib: Variadic packets now use the 'size' field as a minimum requirement 2022-06-30 20:19:35 -05:00
CPunch 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
CPunch 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
CPunch 48fa8935c3 Added .clang-format, formatted codebase 2022-06-27 18:57:00 -05:00
CPunch 1d6ce15b3d Minor comments refactoring 2022-06-27 18:20:23 -05:00
CPunch fb464f579f Shell: Support for spaces in arguments
- Just like a normal shell, any space after a '\' will be treated as a raw space and not a command delimiter
- minor refactoring
2022-06-09 20:57:57 -05:00
CPunch c4c5bc9ce5 Lib: Added support for IPV6 connections 2022-06-04 10:11:28 -05:00
CPunch b00ac16cb3 Shell/CNC: Moved line endings conversion from cnc to shell
- Also fixed DEBUG output for windows LaikaBot builds
2022-06-03 20:55:14 -05:00
CPunch 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
CPunch f649ca4a56 Win: Static builds & fixed winpersist.c 2022-05-14 13:24:20 -05:00
CPunch 36aefba340 VMBoxGen: generate lboxconfig.h post build if LAIKA_OBFUSCATE 2022-05-11 14:50:42 -05:00
CPunch 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
CPunch 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
CPunch d94a6a5e17 shellT_addChar(): Added ascii validation, ignore non-printable input 2022-04-15 15:40:25 -05:00
CPunch 9a6562f440 Shell: CTRL+A now kills the shell 2022-04-15 15:27:50 -05:00
CPunch 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
CPunch c6c187dcc7 Shell: use LAIKA_CNC_* macros 2022-04-11 09:51:10 -05:00
CPunch 56fb305ef2 Implemented linpersist.c:laikaB_checkRoot(), fixed Shell config argument 2022-04-06 15:22:01 -05:00
CPunch 9084afa738 Added commit hash to version display 2022-04-06 01:07:16 -05:00
CPunch 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
CPunch 3515d10b1c Minor refactoring 2022-04-01 14:10:06 -05:00
CPunch 4594e6194b Removed redundant packets 2022-03-28 20:28:39 -05:00
CPunch e2e25f5a49 Added info command, better sanity check for shellS_getPeer() 2022-03-25 22:11:15 -05:00
CPunch dd9cb2af00 made with <3 2022-03-24 19:45:07 -05:00
CPunch 541e75f183 Switched Shell & Bot to use laikaP_flushOutQueue()
- they both now have handlers for onPollFail
2022-03-24 18:03:08 -05:00
CPunch 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
CPunch 94bcabadfd Added 'quit' command 2022-03-22 09:50:22 -05:00
CPunch e3b1cf586b Sanity check to shellS_getPeer, visual improvements 2022-03-21 19:47:18 -05:00
CPunch 192bf22225 Shell: improved looks, added colored output 2022-03-21 17:47:46 -05:00
CPunch 30f7ffb73b Added lsodium.c, laikaK_loadKeys, laikaK_genKeys 2022-03-21 15:24:05 -05:00
CPunch 7e9597902f Added line-conversions for shells 2022-03-17 23:49:25 -05:00
CPunch 6f60c7a5b7 Added OSTYPE, added OS info to handshake & peer-related packets 2022-03-17 23:05:18 -05:00
CPunch e2537efb3f Added LAIKA_CNC_IP & LAIKA_CNC_PORT to cmake config 2022-03-15 13:05:11 -05:00
CPunch 6a5afb18a0 CMake: Require C11 for each target 2022-03-14 01:11:13 -05:00
CPunch 29129923b3 minor refactoring
- removed unused alloca.h header in lsocket.c
- fixed type cast warning in sterm.c
2022-03-14 01:01:47 -05:00
CPunch 9432aaf594 Minor cmake refactoring 2022-03-14 00:51:11 -05:00
CPunch e1ce053aa8 Added termsize 'cols & rows' to SHELL_OPEN packets 2022-03-07 15:16:46 -06:00
CPunch 0c2d4968d9 Refactored LAIKAPKT_HANDSHAKE_REQ, laikaS_acceptFrom
- added inet member to peer structs
2022-03-04 20:17:03 -06:00
CPunch e6dbada6ec Handled edgecase of shell peer disconnecting
- minor refactor of shell client, added shellC_isShellOpen()
2022-03-03 10:28:43 -06:00
CPunch 8ab3033bf3 Added 'shell' command to LaikaShell
- another major refactoring
2022-03-02 10:38:16 -06:00
CPunch 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
CPunch c092d5a9a0 Deprecated panel, added shell, lrsa.h -> lsodium.h
- Refactoring
2022-02-24 22:13:05 -06:00