-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·90 lines (79 loc) · 2.3 KB
/
install.sh
File metadata and controls
executable file
·90 lines (79 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/bash
# The sole purpose of this script is not to bother installing tools (manually)
# each and every time...
username="$USER"
directory="/home/$username/Tools"
verbose="false" # true: display some more info
install="false" # false: download only, true: install dependencies + requirements + install
source "./core/functions.sh"
# Handle arguments
while getopts ":u:d:ivh" opt; do
case $opt in
u) username="$OPTARG" ;;
d) directory="$OPTARG" ;;
i) install=true ;;
v) verbose=true ;;
h) f_help ;;
\?) $ECHO -e "\n[!] Invalid option -$OPTARG" >&2; f_help ;;
esac
done
# Options
if [ "$verbose" == "false" ]; then
QUIET="--quiet"
else
QUIET=""
fi
# Quick failsafe
if [ -z "$username" ] || [ -z "$directory" ]; then
f_help
fi
# Ask for user confirmation
while true; do
f_print "\n[-] Tools will be installed @:$directory, with \"$username\" privileges (verbosity: \"$verbose\", install: \"$install\")" "ok"
read -p "Are you sure? (y/Y) " -n 1 -r REPLY
if [[ $REPLY =~ ^[Yy]$ ]]; then
break
elif [[ $REPLY =~ ^[Nn]$ ]]; then
f_print "Exiting..." "error"
exit 1
fi
done
# Source all files
source "apps.conf"
source "./core/f_dependencies.sh"
source "./core/f_install_network.sh"
source "./core/f_install_recon.sh"
source "./core/f_install_web.sh"
source "./core/f_install_windows.sh"
source "./core/f_install_pwcracking.sh"
source "./core/f_install_forensic.sh"
source "./core/f_install_wordlist.sh"
source "./core/f_install_database.sh"
source "./core/f_install_exploits.sh"
source "./core/f_install_reverse.sh"
source "./core/f_install_mobile.sh"
source "./core/f_install_RFID.sh"
source "./core/f_wrapup.sh"
########################################
# Main function
########################################
# Required dependencies
f_install_dependencies
# Creating some folders
f_print "\n[*] Creating some directories..." "ok"
$MKDIR -p "$directory"/{network,recon,web,windows,pwcracking,forensic,wordlists,database,exploits,reverse,mobile,RFID}
# Let's go
f_install_tools_network
f_install_tools_recon
f_install_tools_web
f_install_tools_windows
f_install_tools_pwcracking
f_install_tools_forensic
f_install_tools_wordlists
f_install_tools_database
f_install_tools_exploits
f_install_tools_reverse
#f_install_tools_thickClients
f_install_tools_mobile
f_install_tools_RFID
f_wrapup