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 simple"
- #Value for you edit:
- pt='65' # custom (your value)
- or='64' # de1fault
- #That's right. Dosen't change code below this comment.
- reset
- ttl=$(sysctl net.inet.ip.ttl | cut -c 18-)
- echo Yota Mobile Access v.1.0 simple
- echo
- echo "ttl = [$ttl]"
- echo "or = [$or]"
- echo "pt = [$pt]"
- echo "z = [aborting]"
- echo
- echo "Change ttl? > [pt/or/z]: \c"
- read ans
- if [ $ans = 'pt' ]; then
- sudo sysctl net.inet.ip.ttl=$pt | cut -c 26-
- fi
- if [ $ans = 'or' ]; then
- sudo sysctl net.inet.ip.ttl=$or | cut -c 26-
- fi
- if [ $ans = 'z' ]; then
- echo Aborting...
- exit
- fi
- ttl=$(sysctl net.inet.ip.ttl | cut -c 18-)
- echo "Changed to = [$ttl]"
- echo
- echo Good luck.
- echo osxpc.ru team.
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement