-
Notifications
You must be signed in to change notification settings - Fork 107
/
Copy pathinstall.sh
566 lines (534 loc) · 18.1 KB
/
install.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
#!/bin/bash
#colors
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[0;33m'
blue='\033[0;34m'
purple='\033[0;35m'
cyan='\033[0;36m'
rest='\033[0m'
case "$(uname -m)" in
x86_64 | x64 | amd64)
cpu=amd64
;;
i386 | i686)
cpu=386
;;
armv8 | armv8l | arm64 | aarch64)
cpu=arm64
;;
armv7l)
cpu=arm
;;
*)
echo "The current architecture is $(uname -m), not supported"
exit
;;
esac
cfwarpIP() {
if [[ ! -f "$PREFIX/bin/warpendpoint" ]]; then
echo "Downloading warpendpoint program"
if [[ -n $cpu ]]; then
curl -L -o warpendpoint -# --retry 2 https://raw.githubusercontent.com/Ptechgithub/warp/main/endip/$cpu
cp warpendpoint $PREFIX/bin
chmod +x $PREFIX/bin/warpendpoint
fi
fi
}
endipv4() {
n=0
iplist=100
while true; do
temp[$n]=$(echo 162.159.192.$(($RANDOM % 256)))
n=$(($n + 1))
if [ $n -ge $iplist ]; then
break
fi
temp[$n]=$(echo 162.159.193.$(($RANDOM % 256)))
n=$(($n + 1))
if [ $n -ge $iplist ]; then
break
fi
temp[$n]=$(echo 162.159.195.$(($RANDOM % 256)))
n=$(($n + 1))
if [ $n -ge $iplist ]; then
break
fi
temp[$n]=$(echo 188.114.96.$(($RANDOM % 256)))
n=$(($n + 1))
if [ $n -ge $iplist ]; then
break
fi
temp[$n]=$(echo 188.114.97.$(($RANDOM % 256)))
n=$(($n + 1))
if [ $n -ge $iplist ]; then
break
fi
temp[$n]=$(echo 188.114.98.$(($RANDOM % 256)))
n=$(($n + 1))
if [ $n -ge $iplist ]; then
break
fi
temp[$n]=$(echo 188.114.99.$(($RANDOM % 256)))
n=$(($n + 1))
if [ $n -ge $iplist ]; then
break
fi
done
while true; do
if [ $(echo "${temp[@]}" | sed -e 's/ /\n/g' | sort -u | wc -l) -ge $iplist ]; then
break
else
temp[$n]=$(echo 162.159.192.$(($RANDOM % 256)))
n=$(($n + 1))
fi
if [ $(echo "${temp[@]}" | sed -e 's/ /\n/g' | sort -u | wc -l) -ge $iplist ]; then
break
else
temp[$n]=$(echo 162.159.193.$(($RANDOM % 256)))
n=$(($n + 1))
fi
if [ $(echo "${temp[@]}" | sed -e 's/ /\n/g' | sort -u | wc -l) -ge $iplist ]; then
break
else
temp[$n]=$(echo 162.159.195.$(($RANDOM % 256)))
n=$(($n + 1))
fi
if [ $(echo "${temp[@]}" | sed -e 's/ /\n/g' | sort -u | wc -l) -ge $iplist ]; then
break
else
temp[$n]=$(echo 188.114.96.$(($RANDOM % 256)))
n=$(($n + 1))
fi
if [ $(echo "${temp[@]}" | sed -e 's/ /\n/g' | sort -u | wc -l) -ge $iplist ]; then
break
else
temp[$n]=$(echo 188.114.97.$(($RANDOM % 256)))
n=$(($n + 1))
fi
if [ $(echo "${temp[@]}" | sed -e 's/ /\n/g' | sort -u | wc -l) -ge $iplist ]; then
break
else
temp[$n]=$(echo 188.114.98.$(($RANDOM % 256)))
n=$(($n + 1))
fi
if [ $(echo "${temp[@]}" | sed -e 's/ /\n/g' | sort -u | wc -l) -ge $iplist ]; then
break
else
temp[$n]=$(echo 188.114.99.$(($RANDOM % 256)))
n=$(($n + 1))
fi
done
}
endipv6() {
n=0
iplist=100
while true; do
temp[$n]=$(echo [2606:4700:d0::$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2))):$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2))):$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2))):$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2)))])
n=$(($n + 1))
if [ $n -ge $iplist ]; then
break
fi
temp[$n]=$(echo [2606:4700:d1::$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2))):$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2))):$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2))):$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2)))])
n=$(($n + 1))
if [ $n -ge $iplist ]; then
break
fi
done
while true; do
if [ $(echo "${temp[@]}" | sed -e 's/ /\n/g' | sort -u | wc -l) -ge $iplist ]; then
break
else
temp[$n]=$(echo [2606:4700:d0::$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2))):$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2))):$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2))):$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2)))])
n=$(($n + 1))
fi
if [ $(echo "${temp[@]}" | sed -e 's/ /\n/g' | sort -u | wc -l) -ge $iplist ]; then
break
else
temp[$n]=$(echo [2606:4700:d1::$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2))):$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2))):$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2))):$(printf '%x\n' $(($RANDOM * 2 + $RANDOM % 2)))])
n=$(($n + 1))
fi
done
}
# Wgcf
generate() {
if ! command -v wgcf &>/dev/null; then
echo -e "${purple}*********************${rest}"
echo -e "${green}Downloading the required file ...${rest}"
if [[ "$(uname -o)" == "Android" ]]; then
if ! command -v curl &>/dev/null; then
pkg install curl -y
fi
if [[ -n $cpu ]]; then
curl -o "$PREFIX/bin/wgcf" -L "https://raw.githubusercontent.com/Ptechgithub/warp/main/endip/wgcf"
chmod +x "$PREFIX/bin/wgcf"
fi
else
curl -L -o wgcf -# --retry 2 "https://github.com/ViRb3/wgcf/releases/download/v2.2.24/wgcf_2.2.24_linux_$cpu"
cp wgcf "$PREFIX/usr/local/bin"
chmod +x "$PREFIX/usr/local/bin/wgcf"
fi
fi
echo -e "${purple}*********************${rest}"
echo -e "${green}Generating free warp config . please wait ...${rest}"
echo ""
rm wgcf-account.toml >/dev/null 2>&1
wgcf register --accept-tos
echo -e "${blue}***********************${rest}"
wgcf generate
if [ -f wgcf-profile.conf ]; then
show
else
echo -e "${red}wgcf-profile.conf not found in current path or failed to install${rest}"
fi
}
v2ray() {
urlencode() {
local string="$1"
local length="${#string}"
local urlencoded=""
for ((i = 0; i < length; i++)); do
local c="${string:$i:1}"
case $c in
[a-zA-Z0-9.~_-]) urlencoded+="$c" ;;
*)
printf -v hex "%02X" "'$c"
urlencoded+="%${hex: -2}"
;;
esac
done
echo "$urlencoded"
}
PrivateKey=$(awk -F' = ' '/PrivateKey/{print $2}' wgcf-profile.conf)
Address=$(awk -F' = ' '/Address/{print $2}' wgcf-profile.conf | tr '\n' ',' | sed 's/,$//;s/,/, /g')
PublicKey=$(awk -F' = ' '/PublicKey/{print $2}' wgcf-profile.conf)
MTU=$(awk -F' = ' '/MTU/{print $2}' wgcf-profile.conf)
WireguardURL="wireguard://$(urlencode "$PrivateKey")@$Endip_v46?address=$(urlencode "$Address")&publickey=$(urlencode "$PublicKey")&mtu=$(urlencode "$MTU")#Peyman_WireGuard"
echo $WireguardURL
}
show() {
echo ""
sleep1
clear
if [ -s result.csv ]; then
Endip_v46=$(awk 'NR==2 {split($1, arr, ","); print arr[1]}' result.csv)
sed -i "s/Endpoint =.*/Endpoint = $Endip_v46/g" wgcf-profile.conf
else
Endip_v46="engage.cloudflareclient.com:2408"
fi
echo -e "${purple}************************************${rest}"
echo -e "${purple}* 👇${green}Here is WireGuard Config👇 ${purple}*${rest}"
echo -e "${purple}************************************${rest}"
echo -e "${cyan} 👇Copy for :${yellow}[Nekobox] 👇${rest}"
echo ""
echo -e "${green}$(cat wgcf-profile.conf)${rest}"
echo ""
echo -e "${purple}************************************${rest}"
echo -e "${cyan} 👇Copy for :${yellow}[V2rayNG] 👇${rest}"
echo ""
echo -e "${green}$(v2ray)${rest}"
echo ""
echo -e "${purple}************************************${rest}"
echo -e "${yellow}1) ${blue}if you couldn't paste it in ${yellow}V2rayNG${blue} or ${yellow}Nekobox${blue}, copy it to a text editor and remove any extra spaces.${rest}"
echo ""
echo -e "${yellow}2) ${blue}If you're using ${yellow}IPv6 ${blue}in ${yellow}V2rayNG, ${blue}place IPV6 inside${yellow} [ ] ${blue}example: ${yellow}[2606:4700:d0::1836:b925:ebb2:5eb1] ${rest}"
echo -e "${purple}************************************${rest}"
}
endipresult() {
echo "${temp[@]}" | sed -e 's/ /\n/g' | sort -u >ip.txt
ulimit -n 102400
chmod +x warpendpoint >/dev/null 2>&1
if command -v warpendpoint &>/dev/null; then
warpendpoint
else
./warpendpoint
fi
clear
cat result.csv | awk -F, '$3!="timeout ms" {print} ' | sort -t, -nk2 -nk3 | uniq | head -11 | awk -F, '{print "Endpoint "$1" Packet Loss Rate "$2" Average Delay "$3}'
Endip_v4=$(cat result.csv | grep -oE "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+" | head -n 1)
Endip_v6=$(cat result.csv | grep -oE "\[.*\]:[0-9]+" | head -n 1)
delay=$(cat result.csv | grep -oE "[0-9]+ ms|timeout" | head -n 1)
echo ""
echo -e "${green}Results Saved in result.csv${rest}"
echo ""
if [ "$Endip_v4" ]; then
echo -e "${purple}************************************${rest}"
echo -e "${purple}* ${yellow}Best IPv4:Port${purple} *${rest}"
echo -e "${purple}* *${rest}"
echo -e "${purple}* ${cyan}$Endip_v4${purple} *${rest}"
echo -e "${purple}* ${cyan}Delay: ${green}[$delay] ${purple}*${rest}"
echo -e "${purple}************************************${rest}"
elif [ "$Endip_v6" ]; then
echo -e "${purple}********************************************${rest}"
echo -e "${purple}* ${yellow}Best [IPv6]:Port ${purple}*${rest}"
echo -e "${purple}* *${rest}"
echo -e "${purple}* ${cyan}$Endip_v6${purple} *${rest}"
echo -e "${purple}* ${cyan}Delay: ${green}[$delay] ${purple}*${rest}"
echo -e "${purple}********************************************${rest}"
else
echo -e "${red} No valid IP addresses found.${rest}"
fi
rm warpendpoint >/dev/null 2>&1
rm -rf ip.txt
exit
}
# Run wire-g and get Wireguard Config
wire-g() {
if [ ! -f "$PREFIX/bin/wire-g" ]; then
if [ -f "$HOME/.termux" ]; then
if ! command -v wg &>/dev/null || ! command -v jq &>/dev/null || ! command -v xz &>/dev/null || ! command -v bzip2 &>/dev/null; then
pkg update -y && pkg upgrade -y
pkg install wireguard-tools jq xz-utils bzip2 -y
fi
else
if ! command -v wg &>/dev/null || ! command -v jq &>/dev/null || ! command -v xz &>/dev/null || ! command -v bzip2 &>/dev/null; then
apt update -y
apt install wireguard-tools jq xz-utils bzip2 -y
fi
fi
curl -o $PREFIX/bin/wire-g https://raw.githubusercontent.com/Ptechgithub/warp/main/wire-g.sh
chmod +x $PREFIX/bin/wire-g
echo ""
echo -e "${purple}*********************${rest}"
echo -e "${yellow}Run --> ${green}wire-g${rest}"
echo -e "${yellow}Help --> ${green}wire-g -h${rest}"
echo -e "${purple}*********************${rest}"
else
echo ""
echo -e "${purple}*********************${rest}"
echo -e "${yellow}Run --> ${green}wire-g${rest}"
echo -e "${yellow}Help --> ${green}wire-g -h${rest}"
echo -e "${purple}*********************${rest}"
fi
}
# License cloner
cloner() {
if ! command -v wg &>/dev/null; then
if [ -d "$PREFIX" ] && [ "$(uname -o)" = "Android" ]; then
echo "Installing wireguard-tools"
pkg install wireguard-tools -y
pkg install jq -y
elif [ -x "$(command -v apt)" ]; then
echo "Installing wireguard-tools on Debian/Ubuntu"
sudo apt update -y && sudo apt install wireguard-tools -y
elif [ -x "$(command -v yum)" ]; then
echo "Installing wireguard-tools on CentOS/RHEL"
sudo yum install epel-release -y && sudo yum install kmod-wireguard wireguard-tools -y
elif [ -x "$(command -v dnf)" ]; then
echo "Installing wireguard-tools on Fedora"
sudo dnf install wireguard-tools -y
elif [ -x "$(command -v zypper)" ]; then
echo "Installing wireguard-tools on openSUSE"
sudo zypper install wireguard-tools -y
fi
fi
licenses=(
"0L156IFo-Xlou7509-cL0kj975"
"1E987bRY-KI8167Rp-2cO3I5a0"
"450sxY1P-0927yEPv-538cGDa0"
"82gHq31I-785W3PSO-1rW35X9v"
"BQ91v37L-s296aVH3-5p34vXS6"
"8NP103zQ-u2T68YS3-b3Cy25H9"
"6M10oEq7-HA0h5y92-F42KMv61"
"Pi0n45K6-24ON7A1C-7Q18My2n"
"q36pSa91-240vtF1s-F25r10gZ"
"H9y510oc-PR53o01f-cW176f0y"
"Y4v03C5u-Ad81i3z5-PQ30z45f"
"8V2hX14D-D0SR78w3-2ule45m3"
"7V9p34gb-9hlI5Y64-C35dO6l2"
"MAa9251S-M19y53Hb-05cJ2hS4"
"R7k0j3p4-5B14RK6p-C8F6vw72"
"X16yb7g2-1P3fH56y-x8L7e1D0"
"5hc0L42Z-f15su76j-r0N8ia43"
"8wnc27d1-C5F3d2y9-45eKs3F9"
"05skL7r1-d683ZSB0-7RrT964j"
"iTP2I901-821KdD5h-2840MpQv"
"14b68TNu-v801R2Mi-690t7vYu"
"QPIE0458-1VDX92W5-70e2iNA3"
"53RN8G7d-24J59kYR-08b4v9RU"
"G438E2Ve-uH4sE653-Kn53fJ76"
"21Ig0LE8-47emp59P-N190Vf5z"
)
echo -e "${cyan}######################${rest}"
echo -en "${green}Enter a license (${yellow}Press Enter to use a random license, may not work${green}): ${rest}"
read -r input_license
if [ -z "$input_license" ]; then
# Choose a random license from the list
license=$(shuf -n 1 -e "${licenses[@]}")
else
license="$input_license"
fi
echo -e "${cyan}######################${rest}"
echo -e "${purple} Warp License cloner ${rest}"
echo -e "${green}Starting...${rest}"
echo -e "${purple}-------------------------------------${rest}"
while true; do
# Requirements
if [ $(type -p wg) ]; then
private_key=$(wg genkey)
public_key=$(wg pubkey <<<"$private_key")
else
wg_api=$(curl -m5 -sSL https://wg-key.forvps.gq/)
private_key=$(awk 'NR==2 {print $2}' <<<"$wg_api")
public_key=$(awk 'NR==1 {print $2}' <<<"$wg_api")
fi
install_id=$(tr -dc 'A-Za-z0-9' </dev/urandom | head -c 22)
fcm_token="${install_id}:APA91b$(tr -dc 'A-Za-z0-9' </dev/urandom | head -c 134)"
rand=$(tr -dc '0-9' </dev/urandom | head -c 3)
# Register
response=$(curl --request POST "https://api.cloudflareclient.com/v0a${rand}/reg" \
--silent \
--location \
--tlsv1.3 \
--header 'User-Agent: okhttp/3.12.1' \
--header "CF-Client-Version: a-6.33-${rand}" \
--header 'Content-Type: application/json' \
--data '{
"key": "'"${public_key}"'",
"install_id": "'"${install_id}"'",
"fcm_token": "'"${fcm_token}"'",
"tos": "'"$(date +"%Y-%m-%dT%H:%M:%S.000Z")"'",
"model": "PC",
"serial_number": "'"${install_id}"'",
"locale": "en_US"
}')
echo "$response" | jq . >warp-config.json
# ___________________________________________
# Change License
id=$(jq -r '.id' <warp-config.json)
token=$(jq -r '.token' <warp-config.json)
license="${license}"
response=$(curl --request PUT "https://api.cloudflareclient.com/v0a${rand}/reg/${id}/account" \
--silent \
--location \
--header 'User-Agent: okhttp/3.12.1' \
--header "CF-Client-Version: a-6.33-${rand}" \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer ${token}" \
--data '{
"license": "'"$license"'"
}')
# ___________________________________________
# Patch Account
patch_one_response=$(curl -X PATCH "https://api.cloudflareclient.com/v0a${rand}/reg/${id}/account" \
--silent \
--location \
--header 'User-Agent: okhttp/3.12.1' \
--header "CF-Client-Version: a-6.33-${rand}" \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer ${token}" \
--data '{"active": true}')
# ___________________________________________
# Get Data
get_response=$(curl -X GET "https://api.cloudflareclient.com/v0a${rand}/reg/${id}" \
--silent \
--header "Authorization: Bearer ${token}" \
--header "Accept: application/json" \
--header "Accept-Encoding: gzip" \
--header "Cf-Client-Version: a-6.3-${rand}" \
--header "User-Agent: okhttp/3.12.1" \
--output - | gunzip -c | jq .)
id=$(echo "$get_response" | jq -r '.id')
balance=$(echo "$get_response" | jq -r '.account.quota')
quota=$((balance / 1000000000))
# ___________________________________________
# Change License Again
license=$(jq -r '.account.license' <warp-config.json)
response=$(curl --request PUT "https://api.cloudflareclient.com/v0a${rand}/reg/${id}/account" \
--silent \
--location \
--header 'User-Agent: okhttp/3.12.1' \
--header "CF-Client-Version: a-6.33-${rand}" \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer ${token}" \
--data '{
"license": "'"$license"'"
}')
# ___________________________________________
# Patch Account Again
patch_two_response=$(curl -X PATCH "https://api.cloudflareclient.com/v0a${rand}/reg/${id}/account" \
--silent \
--location \
--header 'User-Agent: okhttp/3.12.1' \
--header "CF-Client-Version: a-6.33-${rand}" \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer ${token}" \
--data '{"active": true}' | jq . >/dev/null 2>&1)
if [ "$(echo "$patch_two_response" | jq '.result')" != "null" ]; then
license=$(jq -r '.account.license' <warp-config.json)
echo -e "${green}$license ${rest}| ${cyan}$quota${rest}"
echo -e "${purple}-------------------------------------${rest}"
echo "$license | $quota" >>output.txt
fi
# ___________________________________________
# Delete Account
response=$(curl -s -o /dev/null -w "%{http_code}" -X DELETE "https://api.cloudflareclient.com/v0a${rand}/reg/${id}" \
--header "Authorization: Bearer ${token}" \
--header "Accept: application/json" \
--header "Accept-Encoding: gzip" \
--header "Cf-Client-Version: a-6.3-${rand}" \
--header "User-Agent: okhttp$license | $quota/3.12.1")
if [ "$response" -ne 204 ]; then
echo "Error: HTTP status code $response"
fi
rm warp-config.json >/dev/null 2>&1
sleep 2
done
}
#Menu
clear
echo -e "${cyan}By --> Peyman * Github.com/Ptechgithub * ${rest}"
echo ""
echo -e "${purple}**********************${rest}"
echo -e "${purple}* ${green}Endpoint Scanner ${purple} *${rest}"
echo -e "${purple}* ${green}wire-g installer ${purple} *${rest}"
echo -e "${purple}* ${green}License cloner${purple} *${rest}"
echo -e "${purple}**********************${rest}"
echo -e "${purple}[1] ${cyan}Preferred${green} IPV4${purple} * ${rest}"
echo -e "${purple} *${rest}"
echo -e "${purple}[2] ${cyan}Preferred${green} IPV6${purple} * ${rest}"
echo -e "${purple} *${rest}"
echo -e "${purple}[3] ${cyan}Free Config ${green}Wgcf${purple} *${rest}"
echo -e "${purple} *${rest}"
echo -e "${purple}[4] ${cyan}Install ${green}wire-g${purple} *${rest}"
echo -e "${purple} *${rest}"
echo -e "${purple}[5] ${cyan}License Cloner${purple} *${rest}"
echo -e "${purple} *${rest}"
echo -e "${purple}[${red}0${purple}] Exit *${rest}"
echo -e "${purple}**********************${rest}"
echo -en "${cyan}Enter your choice: ${rest}"
read -r choice
case "$choice" in
1)
echo -e "${purple}*********************${rest}"
cfwarpIP
endipv4
endipresult
Endip_v4
;;
2)
echo -e "${purple}*********************${rest}"
cfwarpIP
endipv6
endipresult
Endip_v6
;;
3)
generate
;;
4)
wire-g
;;
5)
cloner
;;
0)
echo -e "${purple}*********************${rest}"
echo -e "${cyan}By ${rest}"
exit
;;
*)
echo -e "${yellow}********************${rest}"
echo "Invalid choice. Please select a valid option."
;;
esac