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

31 Commits

Author SHA1 Message Date
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
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
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
c6c187dcc7 Shell: use LAIKA_CNC_* macros 2022-04-11 09:51:10 -05:00
56fb305ef2 Implemented linpersist.c:laikaB_checkRoot(), fixed Shell config argument 2022-04-06 15:22:01 -05:00
9084afa738 Added commit hash to version display 2022-04-06 01:07:16 -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
3515d10b1c Minor refactoring 2022-04-01 14:10:06 -05:00
4594e6194b Removed redundant packets 2022-03-28 20:28:39 -05:00
e2e25f5a49 Added info command, better sanity check for shellS_getPeer() 2022-03-25 22:11:15 -05:00
dd9cb2af00 made with <3 2022-03-24 19:45:07 -05:00
541e75f183 Switched Shell & Bot to use laikaP_flushOutQueue()
- they both now have handlers for onPollFail
2022-03-24 18:03:08 -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
94bcabadfd Added 'quit' command 2022-03-22 09:50:22 -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
7e9597902f Added line-conversions for shells 2022-03-17 23:49:25 -05:00
6f60c7a5b7 Added OSTYPE, added OS info to handshake & peer-related packets 2022-03-17 23:05:18 -05:00
e2537efb3f Added LAIKA_CNC_IP & LAIKA_CNC_PORT to cmake config 2022-03-15 13:05:11 -05:00
6a5afb18a0 CMake: Require C11 for each target 2022-03-14 01:11:13 -05:00
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
9432aaf594 Minor cmake refactoring 2022-03-14 00:51:11 -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
e6dbada6ec Handled edgecase of shell peer disconnecting
- minor refactor of shell client, added shellC_isShellOpen()
2022-03-03 10:28:43 -06:00
8ab3033bf3 Added 'shell' command to LaikaShell
- another major refactoring
2022-03-02 10:38:16 -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