-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwireshark-server.sh
148 lines (134 loc) · 5.04 KB
/
wireshark-server.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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#!/bin/bash
R="\033[1;31m"
G="\033[1;32m"
Y="\033[1;33m"
PU="\033[1;34m"
PI="\033[1;35m"
B="\033[1;36m"
W="\033[1;37m"
BL="\033[1;30m"
Gre="\033[92m"
Purple="\e[38;5;93m"
Gold="\e[38;5;220m"
clear
banner() {
echo -e "\033[1;32m"
echo -e "\t⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀"
echo -e "\t⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀"
echo -e "\t⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀"
echo -e "\t⢠⣾⣿⣏⠉⠉⠉⠉⠉⠉⢡⣶⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠻⢿⣿⣿⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⡄⠀"
echo -e "\t⠈⣿⣿⣿⣿⣦⣽⣦⡀⠀⠀⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⢧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣿⠀⠀"
echo -e "\t⠀⠘⢿⣿⣿⣿⣿⣿⣿⣦⣄⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⣿⠇⠀⠀"
echo -e "\t⠀⠀⠈⠻⣿⣿⣿⣿⡟⢿⠻⠛⠙⠉⠋⠛⠳⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⡟⠀⠀⠀"
echo -e "\t⠀⠀⠀⠀⠈⠙⢿⡇⣠⣤⣶⣶⣾⡉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣰⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⠾⢇⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⠃⠀⠀⠀"
echo -e "\t⠀⠀⠀⠀⠀⠀⠀⠱⣿⣿⣿⣿⣿⣿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⠤⢤⣀⣀⣀⣀⣀⣀⣠⣤⣤⣤⣬⣭⣿⣿⠀⠀⠀⠀"
echo -e "\t⠀⠀⠀⠀⠀⠀⠀⠀⠈⠛⢿⣿⣿⣿⣿⣿⣶⣤⣄⣀⣀⣠⣴⣾⣿⣿⣿⣷⣤⣀⡀⠀⠀⠀⠀⠀⠀⣀⣀⣤⣾⣿⣿⣿⣿⡿⠿⠛⠛⠻⣿⣿⣿⣿⣇⠀⠀⠀"
echo -e "\t⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣤⣤⣘⡛⠿⢿⡿⠟⠛⠉⠁⠀⠀⠀⠀⠀⠈⠻⣿⣿⣿⣦⠀⠀"
echo -e "\t⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⢿⣿⣿⣿⣿⣿⣶⣦⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⣿⣿⡄⠀"
echo -e "\t⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣾⣿⣿⣿⠿⠛⠉⠁⠀⠈⠉⠙⠛⠛⠻⠿⠿⠿⠿⠟⠛⠃⠀⠀⠀⠉⠉⠉⠛⠛⠛⠿⠿⠿⣶⣦⣄⡀⠀⠀⠀⠀⠀⠈⠙⠛⠂"
echo -e "\t⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⠿⠛⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀"
}
banner
for ((i=1; i<=2; i++))
do
echo
done
echo -e "\t\t${Gold}Crated ${W}By ${Purple}Manjunath"
for ((i=1; i<=2; i++))
do
echo
done
shark_text() {
echo -e "${Y}\t╦ ╦╦╦═╗╔═╗╔═╗╦ ╦╔═╗╦═╗╦╔═"
echo -e "${G}\t║║║║╠╦╝║╣ ╚═╗╠═╣╠═╣╠╦╝╠╩╗"
echo -e "${R}\t╚╩╝╩╩╚═╚═╝╚═╝╩ ╩╩ ╩╩╚═╩ ╩"
}
shark_text
for ((i=1; i<=3; i++))
do
echo
done
echo -e "\t${Gre}[${W} 1${Gre} ]${PI} Start ${B}Wireshark"
echo
echo -e "\t${Gre}[${W} 2${Gre} ]${PI} Stop ${B}Wireshark"
echo
echo -e "\t${Gre}[${W} 3${Gre} ]${Y} Exit"
echo
echo -e "\t${Gre}[${W} 4${Gre} ]${PI} About ${B}This And Installation"
for ((i=1; i<=3; i++))
do
echo
done
echo -e "\033[1;32m"
read -p "Choose To Use Now : " choice
if [[ $choice != "1" && $choice != "2" && $choice != "3" && $choice != "4" ]]; then
echo -e "\t${R}Invalid choice. ${G}Please enter a valid choice."
exit 1
fi
# Start or stop or Exit Wireshark
case $choice in
"1")
clear
banner
shark_text
for ((i=1; i<=3; i++))
do
echo -e "\a\n"
done
echo -e "\a${W}Starting ${G}Wireshark...\n"
vncserver -geometry 800x600
export DISPLAY=":1"
grep -E "Failed to connect to generic netlink."
wireshark
;;
"2")
clear
banner
echo -e "\a\n"
shark_text
for ((i=1; i<=3; i++))
do
echo
done
echo -e "\a${W}Stopping ${G}Wireshark...\n"
for ((i=1; i<=3; i++)) do
echo
done
vncserver -kill :1
;;
"3")
clear
banner
echo
shark_text
for ((i=1; i<=3; i++))
do
echo
done
echo -e "${G}Exiting..."
for ((i=1; i<=3; i++))
do
echo
done
exit 0
;;
"4")
clear
for ((i=1; i<=3; i++)) do
echo
done
echo -e "All requirements I had a explained on Github Repository And all information about on this Tool On github"
echo -e "\033[1;32m"
for ((i=1; i<=4; i++)) do
echo
done
read -p "Boss Follow On Github Now ? (yes/no) : " Tell
if [ "$Tell" == "Yes" ] || [ "$Tell" == "yes" ]; then
xdg-open "https://github.com/Dark-Legends/wireshark-termux"
elif [ "$Tell" == "No" ] || [ "$Tell" == "no" ]; then
echo
else
echo -e "${R}Invalid input. Please type ${G}'yes' ${R}or ${G}'no'."
fi
;;
esac