CPunch
b23057b219
Refactoring: reorganized files
2022-09-01 20:00:37 -05:00
CPunch
dbbe5f5a2a
CNC: laikaC_sendPeerList() now uses laikaC_iterPeersNext()
2022-08-03 20:50:55 -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
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
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
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
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
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
4594e6194b
Removed redundant packets
2022-03-28 20:28:39 -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
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
2d8e9ed106
Implemented laikaC_handleAuthenticatedShellData & laikaC_handleAuthenticatedShellOpen
2022-02-28 16:39:02 -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
CPunch
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
CPunch
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
CPunch
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
CPunch
a442f2f493
Added cnc's panel list, minor refactoring of packets
2022-02-12 18:21:59 -06:00