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
b6eebdd5fb
Bot: fixed shell include errors
2022-06-27 19:02:49 -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
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
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
e80f007df9
Bot: Minor refactoring, tell cnc if failed to open shell
2022-04-20 10:23:00 -05:00
CPunch
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
CPunch
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
CPunch
e1ce053aa8
Added termsize 'cols & rows' to SHELL_OPEN packets
2022-03-07 15:16:46 -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
5c31fb861b
Added LAIKAPKT_SHELL_*, fixed variadic packets
...
- added bot/shell.[ch]
- simple demo cnc which runs 'ls -a' on the connect peer
2022-02-21 17:25:49 -06:00