-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
41 lines (36 loc) · 1.1 KB
/
update.sh
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
#!/bin/bash
##########################################
# NetHunter update user-fiendly script #
##########################################
########## FUNCTIONS ##########
main_menu(){
clear
printf "[*] Welcome to the NH updater\n\n"
printf "[*] You can update/upgrade NetHunter here\n\n"
read -p "[*] Start NetHunter Update? (Y/n): " update
case $update in
[yY][eE][sS]|[yY])
sleep 0.5
printf "\n\n[*] Starting update... This can take some time, Wait!\n\n"
sleep 2
apt-get update
apt-get upgrade -y
pip3 install --upgrade pip
pip install --upgrade pip
apt-get autoremove -y
rm /root/nh-scripts -f -r
cd /root/
git clone https://github.com/rkhunt3r/nh-scripts
cd /root/nh-scripts/
chmod 777 *
printf "\n\n[*] DONE!!!\n\n"
;;
[nN][oO]|[nN])
printf "\n\n"
exit
;;
*) printf "[!] Wrong number! Try again...\n"; main_menu ;;
esac
}
####### Run #######
main_menu