-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstart
executable file
·99 lines (84 loc) · 2.62 KB
/
start
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
91
92
93
94
95
96
97
98
99
#!/usr/bin/bash
function ok(){
printf "\033[32;1mOk\033[0m\n"
}
function check_wget(){
printf "checking for package wget ...."
if [ -f /data/data/com.termux/files/usr/bin/wget ];then
ok
else
printf "\033[33;m1Installing\033[0m\n"
pkg install wget
check_wget
fi
}
function Setup_Storage(){
printf "checking for storage access ...."
if [ -d $HOME/storage ];then
ok
else
printf "\033[33;1mproceed\033[0m\n"
termux-setup-storage
sleep 3
if [ -d $HOME/storage ];then
printf "\033[33;1mThis process need storage access to store data\033[0m\n"
Setup_Storage
fi
fi
}
function check_Network(){
printf "checking for Network ...."
wget -q --spider http://google.com
if [ $? -eq 0 ];
then
ok
else
printf "\033[31;mFailed\033[0m\n"
printf "\033[33m-Make sure you are connected to Network and\033[0m [\033[32;1mPressEnter\033[0m]\r"
read _
check_Network
fi
}
function process(){
cd $HOME
wget -O install-nethunter-termux https://offs.ec/2MceZWr
chmod +x install-nethunter-termux
printf "Mode of '\033[32;1minstall-nethunter-termux\033[0m' is changed to exe\n"
printf "\033[32;1mInstalling kali-arm64.tar.xz....\033[0m"
./install-nethunter-termux || bash install-nethunter-termux
}
function banner(){
printf "\033[32;1m
+--------------------------------------------------------------------------------+
| \033[31;1mCommand\033[32;1m | \033[31;1m destination\033[32;1m |
+--------------------------------------------------------------------------------+
| nethunter | start Kali NetHunter command line interface |
| nethunter -r | start Kali NetHunter command line interface (root) |
| nethunter kex passwd | Configure the KeX password (only needed before 1st use) |
| nethunter kex & | start Kali NetHunter Desktop Experience |
| nethunter kex stop | stop Kali NetHunter Desktop Experiencce |
+--------------------------------------------------------------------------------+
\033[0m"
}
function check_again(){
if [ -d $HOME/kali-arm64 ];then
printf "\n\n\n[ \033[32;1mSucessfully Installed\033[0m ]\n\n\n"
else
if [ -f $HOME/kali-arm64.tar.xz ];then
tar -cjf kali-arm64.tar.xz kali-arm64 && mv kali-arm64.tar.xz
else
if [ -f $HOME/install-nethunter-termux ];then
./install-nethunter-termux || bash install-nethunter-termux
else
process
check_again
fi
fi
fi
}
Setup_Storage # check Access to storage
check_Network # check for Network status
check_wget # check for package wget
#process # Install netnunter
check_again # Check again
banner # Print banner