Skip to content

Commit

Permalink
Updated Readme & script (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptechgithub authored May 28, 2024
1 parent c5fd134 commit c5d7750
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 46 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,20 @@ FLAGS
- Slovakia (SK)
- Ukraine (UA)
- United States (US)

![0](https://raw.githubusercontent.com/Ptechgithub/configs/main/media/line.gif)
### Termux

```
bash <(curl -fsSL https://raw.githubusercontent.com/Ptechgithub/wireguard-go/master/termux.sh)
```
![1](https://github.com/Ptechgithub/configs/blob/main/media/18.jpg?raw=true)

- اگه حس کردی کانکت نمیشه یا خطا میده دستور `rm -rf stuff` رو بزن و مجدد warp رو وارد کن.
- بعد از نصب برای اجرای مجدد فقط کافیه که `warp` یا `usef` یا `./warp` را وارد کنید .
- اگه حس کردی کانکت نمیشه یا خطا میده دستور `rm -rf .cache/warp-plus` رو بزن و مجدد warp رو وارد کن.
- بعد از نصب برای اجرای مجدد فقط کافیه که `warp` یا `usef` یا `./warp` یا `warp-plus`را وارد کنید. همش یکیه هیچ فرقی ندارد.
- اگر با 1 نصب نشد و خطا گرفتید ابتدا یک بار 3 را بزنید تا `Uninstall` شود سپس عدد 2 رو انتخاب کنید یعنی Arm.
- برای نمایش راهنما ` warp -h` را وارد کنید.
- ای پی و پورت `127.0.0.1:8086`پروتکل socks
- در روش warp به warp plus مقدار account id را وارد میکنید و با این کار هر 20 ثانیه 1 GB به اکانت شما اضافه میشود.
- در روش تبدیل اکانت warp به warp plus (گزینه 6) مقدار ID را وارد میکنید. پس از اجرای warp دو اکانت برای شما ساخته شده که پس از انتخاب گزینه 6 خودش مقدار ID هر دو اکانت را پیدا میکند و شما باید هر بار یکی را انتخاب کنید و یا میتوانید با انتخاب manual مقدار ID دیگری را وارد کنید (مثلا برای خود برنامه ی 1.1.1.1 یا جای دیگر) با این کار هر 20 ثانیه 1 GB به اکانت شما اضافه میشود. و اکانت شما از حالت رایگان به پلاس تبدیل میشود.
- برای تغییر لوکیشن با استفاده از سایفون از طریق منو یا به صورت دستی (برای مثال به USA از دستور زیر استفاده کنید)
- `warp --cfon --country US`
- برای اسکن ای پی سالم وارپ از دستور `warp --scan` استفاده کنید.
Expand Down
141 changes: 99 additions & 42 deletions termux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,40 @@ gool() {
echo -e "${green}Please install Warp first.${rest}"
return
fi

echo -e "${purple}*********************************${rest}"
echo -e "${green}This option changes your current location to the nearest and best location.${rest}"
echo -e "${purple}*********************************${rest}"
warp --gool

while true; do
echo -e "${cyan}Choose an option: ${purple}*${rest}"
echo -e "${purple} *${rest}"
echo -e "${cyan}[1] ${green}IPV4${purple} *${rest}"
echo -e "${cyan}[2] ${green}IPV6${purple} *${rest}"
echo -e "${cyan}[3] ${yellow}Back to Menu${purple} *${rest}"
echo -e "${purple}*******************${rest}"

echo -en "${green}Please Choose: ${rest}"
read -r option

case $option in
1)
echo -e "${green}Running Warp with IPV4...${rest}"
warp --gool -4
;;
2)
echo -e "${green}Running Warp with IPV6...${rest}"
warp --gool -6
;;
3)
echo -e "${purple}Back to Menu.${rest}"
menu
;;
*)
echo -e "${red}Invalid option.${rest}"
;;
esac
done
}

# Psiphon
Expand Down Expand Up @@ -214,11 +244,39 @@ psiphon_location() {
*) echo "Invalid choice. Please select a valid location number." ;;
esac

# Now use the selected location variable $location in your script
echo -e "${purple}*********************************${rest}"
echo -e "${green}Selected location: $location${rest}"
echo -e "${blue}*********************************${rest}"
warp --cfon --country $location

while true; do
echo -e "${cyan}Choose an option: ${purple}*${rest}"
echo -e "${purple} *${rest}"
echo -e "${cyan}[1] ${green}IPV4${purple} *${rest}"
echo -e "${cyan}[2] ${green}IPV6${purple} *${rest}"
echo -e "${cyan}[3] ${yellow}Back to Menu${purple} *${rest}"
echo -e "${purple}*******************${rest}"

echo -en "${green}Please Choose: ${rest}"
read -r option

case $option in
1)
echo -e "${green}Running Psiphon with IPV4...${rest}"
warp --cfon --country $location -4
;;
2)
echo -e "${green}Running Psiphon with IPV6...${rest}"
warp --cfon --country $location -6
;;
3)
echo -e "${purple}Back to Menu.${rest}"
menu
;;
*)
echo -e "${red}Invalid option.${rest}"
;;
esac
done
}

#Uninstall
Expand All @@ -227,7 +285,7 @@ uninstall() {
directory="/data/data/com.termux/files/home/warp-plus"
home="/data/data/com.termux/files/home"
if [ -f "$warp" ]; then
rm -rf "$directory" "$PREFIX/bin/usef" "wa.py" "$PREFIX/bin/warp" "$PREFIX/bin/warp-plus" "warp" "stuff" > /dev/null 2>&1
rm -rf "$directory" "$PREFIX/bin/usef" "wa.py" "$PREFIX/bin/warp" "$PREFIX/bin/warp-plus" "warp" "/data/data/com.termux/files/home/.cache/warp-plus" > /dev/null 2>&1
echo -e "${purple}*********************************${rest}"
echo -e "${red}Uninstallation completed.${rest}"
echo -e "${purple}*********************************${rest}"
Expand Down Expand Up @@ -273,42 +331,41 @@ menu() {
echo -e " ${purple} * ${rest}"
echo -e "${red}0]${rest} ${green}Exit ${purple}* ${rest}"
echo -e "${purple}*********************************${rest}"
}

# Main
menu
echo -en "${cyan}Please enter your selection [${yellow}0-6${green}]:${rest}"
read -r choice

echo -en "${cyan}Please enter your selection [${yellow}0-6${green}]:${rest}"
read -r choice

case "$choice" in
1)
install
warp
;;
2)
install_arm
warp
;;
3)
uninstall
;;
4)
gool
;;
5)
psiphon_location
;;
6)
warp_plus
;;
0)
echo -e "${purple}*********************************${rest}"
echo -e "${cyan}By 🖐${rest}"
exit
;;
*)
echo -e "${purple}*********************************${rest}"
echo -e "${red}Invalid choice. Please select a valid option.${rest}"
echo -e "${purple}*********************************${rest}"
;;
esac
case "$choice" in
1)
install
warp
;;
2)
install_arm
warp
;;
3)
uninstall
;;
4)
gool
;;
5)
psiphon_location
;;
6)
warp_plus
;;
0)
echo -e "${purple}*********************************${rest}"
echo -e "${cyan}By 🖐${rest}"
exit
;;
*)
echo -e "${purple}*********************************${rest}"
echo -e "${red}Invalid choice. Please select a valid option.${rest}"
echo -e "${purple}*********************************${rest}"
;;
esac
}
menu

0 comments on commit c5d7750

Please sign in to comment.