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

175 Commits

Author SHA1 Message Date
14d17adf89 Added README badges 2022-03-17 23:51:53 -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
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
851cb95d75 Updated README.md requirements 2022-03-15 13:24:29 -05:00
e2537efb3f Added LAIKA_CNC_IP & LAIKA_CNC_PORT to cmake config 2022-03-15 13:05:11 -05:00
33219ee9d6 Removed MacOS target 2022-03-15 12:57:58 -05:00
35e85252ee Resolved library dependencies 2022-03-14 12:21:29 -05:00
dfdcb04608 Fixed MSVC VLAs 2022-03-14 12:17:19 -05:00
a8c1b44bb9 lsocket.c: Fixed arithmatic with void pointer 2022-03-14 12:13:31 -05:00
cb9823d21c Refactored VLAs to support macrohard 2022-03-14 12:06:32 -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
7a000c1caa fixed laikaT_newTask, check for MacOS 2022-03-14 00:58:58 -05:00
2cf7ab52ab Added util library to bot's CMakeList.txt target_link_libraries() 2022-03-14 00:53:32 -05:00
9432aaf594 Minor cmake refactoring 2022-03-14 00:51:11 -05:00
1d7efeba24 variable redefinition in poll() path 2022-03-14 00:33:23 -05:00
0fc94802b1 Added CI, testing builds for Linux, MacOS & Windows 2022-03-14 00:31:30 -05:00
cbe8715b02 Added Windows support (for the binaries that support it) 2022-03-13 21:54:47 -05:00
76c5899ed5 Vendored LibSodium to make compilation easier 2022-03-13 21:48:09 -05:00
e1ce053aa8 Added termsize 'cols & rows' to SHELL_OPEN packets 2022-03-07 15:16:46 -06:00
d283b977d9 added demo gif 2022-03-07 11:06:56 -06:00
5b96e73f90 added software license (finally) 2022-03-07 10:58:20 -06:00
12f0e47ab0 added docs to bot.c 2022-03-05 20:46:35 -06:00
0c2d4968d9 Refactored LAIKAPKT_HANDSHAKE_REQ, laikaS_acceptFrom
- added inet member to peer structs
2022-03-04 20:17:03 -06:00
12a1329101 Removed Panel client, updated README requirements 2022-03-03 10:57:33 -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
72e0b6d5d0 updated readme 2022-03-02 10:54:31 -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
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
02c3176bc4 Added laikaS_startVarPacket() & laikaS_endVarPacket() 2022-02-18 19:32:16 -06:00
f8ac74881e updated README, minor CMake improvements 2022-02-18 15:26:29 -06:00
574afdda16 Updated README 2022-02-17 18:21:29 -06:00
291c4479ff Statically link LibSodium, updated README 2022-02-17 17:57:08 -06:00
fb731cfe48 Moved vendor sources to lib/vendor 2022-02-17 17:38:34 -06:00
4e928464bd TaskService refactoring 2022-02-17 17:24:46 -06:00
4e8febe916 minor refactoring, better docs in lpacket.h
- fixed minor bug in panel_getChar()
2022-02-17 16:55:42 -06:00
9a15ce1463 Re-added variadic packets
- minor refacotring
2022-02-16 17:58:07 -06:00
c21be8dfee Added hostname, ip info to handshake
- Panel now lists bots by hostname & ip instead of public key
2022-02-15 16:57:21 -06:00
fb71dfb3c3 Added panel!
- minor refactoring
- TODO: panel & cnc should really use unique keys. maybe add config file?
2022-02-14 00:22:36 -06:00
e7265ad15b Added laikaP_pushOutQueue, minor refactoring
- sLaika_pollList now holds an outQueue, if events are sent to a peer,
	the pollList will keep track so the caller (cnc, bot, etc)
	can handle each pollOut for the queued peers.
2022-02-13 23:55:30 -06:00
a442f2f493 Added cnc's panel list, minor refactoring of packets 2022-02-12 18:21:59 -06:00
49a992c70a Added panel-specific packets
- laikaP_iterList for iterating over pollList
- laikaS_consumeRead for throwing away padding or otherwise unneeded bytes
	in the socket's inbuffer
- incremented minor version
2022-02-10 16:56:40 -06:00
a6bd244431 Added TaskService, ltask.[ch]
- cnc's main.c has an example of scheduling tasks
- switched to C11, might go back to C99 if i get the motivation
	to write a windows-specific getTime() implementation
2022-02-04 13:15:06 -06:00
85d6cdcba1 refactored laikaS_*Packet functions, added debugging output 2022-02-03 20:51:32 -06:00
5fe72e9eb0 laikaS_endInPacket() bug fix
- sock->inCount was not properly set
2022-02-03 16:46:12 -06:00
dd173ee422 Key exchange refactoring!
- LAIKAPKT_HANDSHAKE_REQ now only sends the bot's pub key
	a shared key is generated using the other peer's pub key,
	allowing for fully encrypted packet bodies, (packet ID is
	left in plain-text)
- laikaS_startOutPacket(), laikaS_endOutPacket(),
	laikaS_startInPacket() & laikaS_endInPacket() have been
	added.
- laikaS_setSecure() has been added to turn on/off encrypted packets.
- genKey now generates kx keypairs
- major refactoring for relevant packet handlers
- variadic packets have been temporarily disabled
2022-02-03 16:25:49 -06:00