103 Commits

Author SHA1 Message Date
Andrew Rioux
4ae9f38812
fix: made uploads and downloads more consistent 2024-09-25 12:33:58 -04:00
Andrew Rioux
1dfd7e0499
fix: more cleaning up for FreeBSD 2024-09-19 02:45:16 -04:00
Andrew Rioux
f6428b92fe
feat: added FreeBSD support
to make use of it, create a FreeBSD VM with curl installed and install
rustup by default from rustup.rs, then run `cargo build -p sparse-05-server`
2024-09-19 02:44:31 -04:00
Andrew Rioux
2284480bc5
Trying to get Windows support to build for XP 2024-02-13 16:58:13 -05:00
Andrew Rioux
93754e2cba
fix: Destination ports used in network traffic 2024-02-08 19:03:28 -05:00
Andrew Rioux
607fb72e65
fixed checksum error 2024-02-08 14:49:05 -05:00
Andrew Rioux
7390a2e3bf
Cleaned up Windows server and added more docs 2024-01-25 16:53:05 -05:00
Andrew Rioux
28dd9f5138
Adding more cargo make targets to nix 2024-01-24 21:14:55 -05:00
Andrew Rioux
5fe4450f39
Removed extra logging 2024-01-24 20:09:57 -05:00
Andrew Rioux
41599f96f8
Added license to maintain legal requirements 2024-01-24 19:15:27 -05:00
Andrew Rioux
af5ceb66ab
Added Windows support for the bind shell
Brings in support from winpcap as npcap has a restrictive license
2024-01-24 19:12:45 -05:00
Andrew Rioux
862dc3e743
More flakes work
Removed old git submodules
Started adding Windows cross compilation support
2024-01-24 00:56:53 -05:00
Andrew Rioux
4475d23d1d
Finished adding a basic flake
It can now build the Linux C2 beacon
2024-01-23 23:26:58 -05:00
Andrew Rioux
b2278cc8e8
Continued work configuring nix flakes 2024-01-23 17:39:56 -05:00
Andrew Rioux
4905ab54f0
Added basic flake.nix 2024-01-23 10:25:20 -05:00
Andrew Rioux
53133debec
Added very, very basic C2 capability 2024-01-23 08:16:52 -05:00
Andrew Rioux
2f9746fa25
added some creature comforts and cleaned logging 2023-12-05 15:16:20 -05:00
Andrew Rioux
0021794c51
fixed compile error 2023-12-05 14:48:25 -05:00
Andrew Rioux
afcc62df93
updated logging for command receive in beacon 2023-12-05 14:46:24 -05:00
Andrew Rioux
56f39ad64c
took the tcp-test code and made a C2 server/beacon 2023-12-05 09:33:06 -05:00
Andrew Rioux
8c0ae083fe
made basic TCP connection to receive data
somewhat
2023-12-05 00:27:02 -05:00
Andrew Rioux
0bb2871568
feat: added the ability to respond to ARP requests 2023-09-26 01:57:10 -04:00
Andrew Rioux
0bda72491c
feat: added basic structure around packet transfer 2023-09-25 23:24:37 -04:00
Andrew Rioux
867464f673
feat: added more robust handling of actions 2023-09-21 13:39:02 -04:00
Andrew Rioux
ed13defb07
feat: started to make a TCP state machine 2023-09-20 20:50:04 -04:00
Andrew Rioux
f092548a8c
feat: worked some on the tcp client
found out ethtool helps make the program work with lxc sockets
2023-09-20 00:15:15 -04:00
Andrew Rioux
f5b31954d4
feat: trying out smoltcp 2023-09-19 19:19:29 -04:00
Andrew Rioux
022340ec95
feat: added the ability to test a connection 2023-09-19 15:46:17 -04:00
Andrew Rioux
35bcf5352b
feat: added test tcp client 2023-09-19 10:24:51 -04:00
Andrew Rioux
e5f6c2aa7e
feat: added modified TCP packet parser
checksum generation code is different, to allow for
some sneaky tricks with regards to identifying the sparse
session but binding to the same port multiple times
2023-09-18 01:29:05 -04:00
Andrew Rioux
25948a17f4
feat: starting the TCP client proof of concept 2023-09-17 14:07:31 -04:00
Andrew Rioux
0ef459bcfe
feat: added framework for TCP client 2023-09-14 01:30:29 -04:00
Andrew Rioux
fb98d062ef
fix: file operations acknowledge pwd now
file operations (edit, download, upload) on the client did not work
outside of the current working directory of the binary on the server, as
they did not acknowledge the current working directory on the client
2023-09-12 19:55:37 -04:00
Andrew Rioux
726e6dff13
feat: added cd
added cd and fixed all the warnings in the source code
2023-09-08 23:26:10 -04:00
Andrew Rioux
ae24c2e0ad
feat: added the ability to edit files remotely 2023-09-08 22:48:02 -04:00
Andrew Rioux
eb5e86067b
feat: added ability to download files 2023-09-08 21:25:20 -04:00
Andrew Rioux
239c5ccc40
fix: made code compile for now 2023-09-07 12:56:30 -04:00
Andrew Rioux
cd23ec1b80
feat: continuing work on downloading files 2023-09-06 19:44:13 -04:00
Andrew Rioux
50b5c1a921
feat: added upload file capability 2023-09-06 14:56:21 -04:00
Andrew Rioux
231108f2c3
fix: swapped to just run the binary on the server
moved away from `sh -c`
2023-09-06 09:04:26 -04:00
Andrew Rioux
17e6056a03
fix: fixed stdin for processes
started work on upload file command
2023-09-06 00:07:15 -04:00
Andrew Rioux
9bb31ee6fa
feat: added the ability to run commands remotely
commands can now be sent and their outputs received
2023-09-05 19:58:40 -04:00
Andrew Rioux
52538ac7d7
feat: added the ability to send commands 2023-09-05 19:05:26 -04:00
Andrew Rioux
47b2191335
feat: working on spawning commands 2023-09-05 09:43:00 -04:00
Andrew Rioux
1e5f515a25
feat: adding packet handling to server 2023-09-04 19:10:43 -04:00
Andrew Rioux
fb43a27ba3
feat: added ip to sysinfo 2023-09-04 01:30:01 -04:00
Andrew Rioux
7f1f43a601
feat: added a basic interactivity to the client 2023-09-04 01:11:55 -04:00
Andrew Rioux
7876e00dc8
fix: improved the logic for generating binaries
cross platform logic wasn't handled well for generating linux binaries
on windows or vice versa
2023-09-02 23:59:28 -04:00
Andrew Rioux
81fb2ed548
feat: added windows support
factored out the packet parsing logic from libpcap

will probably come back to linking against libpcap in a later version
2023-09-02 23:09:05 -04:00
Andrew Rioux
4449a771e2
feat: added connection and authentication
client can now generate a server binary, and try to connect to it and
get capabilities
2023-09-02 22:29:13 -04:00