Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #by Lizard, from osxpc.ru team
- #Yota Mobile Access.sh
- #Version: "1.0 small"
- #Value for you edit:
- macttl=64 #macOS (recovery default value)
- iosttl=65 #iOS (for Instant hotspot, Wi-Fi hotspot and USB connection)
- andttl=65 #Android (for Wi-Fi hotspot and USB connection)
- wphttl=129 #Win Phone (for Wi-Fi hotspot)
- #That's right. Dosen't change code below this comment.
- reset
- ttl0=$(sysctl net.inet.ip.ttl | cut -c 18-)
- echo Yota Mobile Access v.1.0 small
- echo
- echo "TTL 0 = [$ttl0]"
- echo
- echo "Supported Platforms:"
- echo 0 — macOS
- echo 1 — iOS
- echo 2 — Android
- echo 3 — Win Phone
- echo 4 — Custom TTL
- echo 5 — Abort
- echo
- echo "Enter number platform: \c"
- read platform
- if [ $platform = '0' ]; then
- sudo sysctl net.inet.ip.ttl=$macttl | cut -c 26-
- fi
- if [ $platform = '1' ]; then
- sudo sysctl net.inet.ip.ttl=$iosttl | cut -c 26-
- fi
- if [ $platform = '2' ]; then
- sudo sysctl net.inet.ip.ttl=$andttl | cut -c 26-
- fi
- if [ $platform = '3' ]; then
- sudo sysctl net.inet.ip.ttl=$wphttl | cut -c 26-
- fi
- if [ $platform = '4' ]; then
- echo "Set TTL value = \c"
- read customttl
- sudo sysctl net.inet.ip.ttl=$customttl | cut -c 26-
- fi
- if [ $platform = '5' ]; then
- echo Aborting...
- echo "Close this session in 10 seconds..."
- sleep 10
- echo
- exit
- fi
- ttl1=$(sysctl net.inet.ip.ttl | cut -c 18-)
- echo "TTL 1 = $ttl1"
- echo "Close this session in 10 seconds..."
- sleep 10
- echo
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement