seqre / rast Goto Github PK
View Code? Open in Web Editor NEWA cross platform C2 server written in Rust!
License: GNU General Public License v3.0
A cross platform C2 server written in Rust!
License: GNU General Public License v3.0
Any functionality added to the agent and/or C2 server that is not required to run should be behind the Rust feature to allow for enabling/disabling them by the user.
Implement a new one or improve protocol from #3 to enable sending data between agents and the C2 server.
In the current state, only instances of String
up to 255 characters are allowed to be sent. This should be changed to send some predefined data structure that can be (de)serialized to be able to send it over the Internet and successfully recreate it.
Agents should be able to execute system commands.
A handler of the C2 server should be able to send commands to be executed on the chosen agent and receive a response.
Implement using ICMP for data transfer between agents and the C2 server.
yaml-rust is unmaintained.
Details | |
---|---|
Status | unmaintained |
Package | yaml-rust |
Version | 0.4.5 |
URL | rustsec/advisory-db#1921 |
Date | 2024-03-20 |
The maintainer seems unreachable.
Many issues and pull requests have been submitted over the years
without any response.
Consider switching to the actively maintained yaml-rust2
fork of the original project:
See advisory page for additional details.
Implement using DNS for data transfer between agents and C2 server.
Requirements:
Requirements:
Implement using HTTP(s) for data transfer between agents and C2 server.
Implement an option for agents and C2 server to be able to load config at runtime or compile time. The config should specify options such as C2 server location, ports/protocols in use, etc.
Implement a basic shell inside the C2 server able to execute built-in commands and just send commands to be executed on the agents.
For embedding config in prod and loading in dev for the agent, this flag will be of use: https://doc.rust-lang.org/reference/conditional-compilation.html#debug_assertions
Possible implementation: https://github.com/pyrossh/rust-embed/blob/master/src/lib.rs
Originally posted by @seqre in #4 (comment)
Agents should be able to update themselves to the newer version requested from the C2 server.
CI pipeline should be set up to test for proper compilation, lining, and formatting of the code.
Requirements:
Add commands for common system information gathering.
The server binary should be able to accept connections from multiple agents.
Extend shell and agent functionality in terms of file manipulations. The built-in shell should be able to change directories, create/manipulate files, download/upload files, etc. without executing commands directly on the host.
Tungstenite allows remote attackers to cause a denial of service
Details | |
---|---|
Package | tungstenite |
Version | 0.17.3 |
URL | snapview/tungstenite-rs#376 |
Date | 2023-09-25 |
Patched versions | >=0.20.1 |
The Tungstenite crate through 0.20.0 for Rust allows remote attackers to cause
a denial of service (minutes of CPU consumption) via an excessive length of an
HTTP header in a client handshake. The length affects both how many times a parse
is attempted (e.g., thousands of times) and the average amount of data for each
parse attempt (e.g., millions of bytes).
See advisory page for additional details.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.