You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhances shell scripts and VS Code tasks for usability
Adds `read` prompts to improve user interaction in shell scripts. Updates default values and environment handling for better flexibility. Enhances `dump_users` output with additional details. Introduces a `differ` function for file comparison. Refines VS Code settings and tasks for improved task execution and user guidance. Removes unused or redundant configurations and commands. Improves installer script by refining requirement checks and user prompts.
Copy file name to clipboardExpand all lines: installer.sh
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
#!/bin/zsh
2
2
3
3
functioncheck_command() {
4
-
local prompt=$2
5
4
command -v "$1">/dev/null 2>&1&& {
6
5
} || {
7
-
echo"$1 is not installed."
8
-
echo"Install it for better experience."
9
-
echo"$prompt"
6
+
echo"detect $1 is not installed."
7
+
echo"$2"
10
8
return 2
11
9
}
12
10
}
13
11
14
12
functioncheck_requirements() {
13
+
check_command "awk""awk is required for parsing the output of commands, please install it."||return 2
14
+
check_command "sed""sed is required for parsing the output of commands, please install it."||return 2
15
15
check_command "zsh""zsh is core to WeaponizedVSCode integrated shell."||return 2
16
16
check_command "vim""vim is required for task edit /etc/hosts, please install it or change it."||return 2
17
17
check_command "nc""nc is core for netcat shell session handling or u can't use it, please install it."||return 2
@@ -22,6 +22,7 @@ function check_requirements() {
22
22
check_command "simplehttpserver""simplehttpserver is cool for serving files with upload feature and dump http requests, install it with https://github.com/projectdiscovery/simplehttpserver"||return 2
23
23
check_command "rustscan""rustscan is required for the auto scanning task in vscode, fast and reliable, install it with https://github.com/bee-san/RustScan"||return 2
24
24
check_command "wfuzz""wfuzz is required for command wfuzz_vhost_https and wfuzz_vhost_http, to fuzz the subdomain and vhost. install it or u can't use that"||return 2
25
+
check_command "hashcat""hashcat is required for the hashcat cracking task in vscode, install it with 'apt install hashcat' or 'brew install hashcat'."||return 2
25
26
check_command "python3""Python3 is required for the Python scripts in WeaponizedVSCode, please install it."||return 2
26
27
check_command "uv""uv is optional but recommended for better performance, install it with 'pip install uv'. Their script is useful"
27
28
}
@@ -45,7 +46,7 @@ function main() {
45
46
exit 0
46
47
fi
47
48
export LOCATION="$WEAPON_LOCATION"
48
-
echo"Weapon will be installed to $LOCATION, Press any key to continue or Ctrl+C to cancel..."
49
+
echo"Weapon will be installed to $LOCATION, Press Enter key to continue or Ctrl+C to cancel..."
49
50
read
50
51
echo"Installing Weapon..."
51
52
mkdir -p $LOCATION&&echo"Weapon directory created at $LOCATION."
0 commit comments