Advertisement
Lizard1003

[macOS] Yota Mobile Access Simple v1.0

May 23rd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.77 KB | None | 0 0
  1. #!/bin/sh
  2. #by Lizard, from osxpc.ru team
  3. #Yota Mobile Access.sh
  4. #Version: "1.0 simple"
  5.  
  6. #Value for you edit:
  7. pt='65'  # custom (your value)
  8. or='64'  # de1fault
  9. #That's right. Dosen't change code below this comment.
  10.  
  11. reset
  12. ttl=$(sysctl net.inet.ip.ttl | cut -c 18-)
  13. echo Yota Mobile Access v.1.0 simple
  14. echo
  15. echo "ttl = [$ttl]"
  16. echo "or  = [$or]"
  17. echo "pt  = [$pt]"
  18. echo "z   = [aborting]"
  19. echo
  20. echo "Change ttl? > [pt/or/z]: \c"
  21. read ans
  22. if [ $ans = 'pt' ]; then
  23.     sudo sysctl net.inet.ip.ttl=$pt | cut -c 26-
  24. fi
  25. if [ $ans = 'or' ]; then
  26.     sudo sysctl net.inet.ip.ttl=$or | cut -c 26-
  27. fi
  28. if [ $ans = 'z' ]; then
  29.     echo Aborting...
  30.     exit
  31. fi
  32. ttl=$(sysctl net.inet.ip.ttl | cut -c 18-)
  33. echo "Changed to = [$ttl]"
  34. echo
  35. echo Good luck.
  36. echo osxpc.ru team.
  37. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement