mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Payload config, disable all logs feature
This commit is contained in:
Generated
+8
-1
@@ -272,6 +272,12 @@ dependencies = [
|
||||
"wasm-bindgen",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "lazy_static"
|
||||
version = "1.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.177"
|
||||
@@ -465,8 +471,9 @@ checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
|
||||
|
||||
[[package]]
|
||||
name = "unshell-cli"
|
||||
version = "0.1.0"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
"unshell-crypt",
|
||||
"unshell-lib",
|
||||
"unshell-obfuscate",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
[package]
|
||||
name = "unshell-cli"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
unshell-lib = {path = "../unshell-lib"}
|
||||
unshell-obfuscate = {path = "../unshell-obfuscate"}
|
||||
unshell-crypt = {path = "../unshell-crypt"}
|
||||
lazy_static = "1.5.0"
|
||||
|
||||
+16
-4
@@ -1,9 +1,21 @@
|
||||
use std::io::{Write, stdin, stdout};
|
||||
use lazy_static::lazy_static;
|
||||
use unshell_lib::{config::PayloadConfig, module::Manager};
|
||||
use unshell_obfuscate::symbol;
|
||||
|
||||
use unshell_lib::Announcement;
|
||||
lazy_static! {
|
||||
static ref PAYLOAD_CONFIG: PayloadConfig = PayloadConfig {
|
||||
id: symbol!("Test ID"),
|
||||
components: unshell_lib::get_components(),
|
||||
runtime_config: vec![],
|
||||
};
|
||||
}
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let mut serverruntime = unshell_lib::server::ListenerRuntime::new();
|
||||
unshell_lib::logger::PrettyLogger::init();
|
||||
|
||||
Manager::run(&PAYLOAD_CONFIG, Vec::new());
|
||||
|
||||
// let mut serverruntime = unshell_lib::server::ListenerRuntime::new();
|
||||
|
||||
// loop {
|
||||
// print!("> ");
|
||||
@@ -33,7 +45,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// // println!("{:?}", args);
|
||||
// }
|
||||
|
||||
serverruntime.send(&Announcement::GetRuntimes)?;
|
||||
// serverruntime.send(&Announcement::GetRuntimes)?;
|
||||
|
||||
// let response = serverruntime.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user