@@ -12,6 +12,8 @@ function check_command() {
1212function check_requirements() {
1313 check_command " awk" " awk is required for parsing the output of commands, please install it." || return 2
1414 check_command " sed" " sed is required for parsing the output of commands, please install it." || return 2
15+ check_command " grep" " grep is required for parsing the output of commands, please install it." || return 2
16+ check_command " tr" " tr is required for parsing the output of commands, please install it." || return 2
1517 check_command " zsh" " zsh is core to WeaponizedVSCode integrated shell." || return 2
1618 check_command " vim" " vim is required for task edit /etc/hosts, please install it or change it." || return 2
1719 check_command " nc" " nc is core for netcat shell session handling or u can't use it, please install it." || return 2
@@ -52,7 +54,7 @@ function main() {
5254 mkdir -p $LOCATION && echo " Weapon directory created at $LOCATION ."
5355 cp -f ./createhackenv.sh $LOCATION && echo " createhackenv.sh copied to $LOCATION ."
5456 echo " " >> $LOCATION /createhackenv.sh
55- echo " export WEAPON_LOCATION= $LOCATION " >> $LOCATION /createhackenv.sh # overwrite if exists
57+ sed -i " s/__REPLACE__/ $LOCATION /g " $LOCATION /createhackenv.sh && echo " createhackenv.sh updated with WEAPON_LOCATION. "
5658 cp -f ./zsh_history $LOCATION && echo " zsh_history copied to $LOCATION ."
5759
5860 grep -zq " source $LOCATION /createhackenv.sh" ~ /.zshrc
@@ -64,7 +66,6 @@ function main() {
6466 fi
6567
6668 echo " Weaponized VSCode installation completed."
67-
6869}
6970
7071main " $@ "
0 commit comments