Al_Tasin

install.sh

Jun 17th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. echo "Installing Wifi Password Viewer for Termux"
  2. dir=/data/data/com.termux/files
  3. [ -d "$dir" ] || { echo "Termux not installed!"; exit 1; }
  4. if [ $(getprop ro.build.version.sdk) -lt 26 ]; then
  5. echo "! This script only supports Android 8.0+"
  6. else
  7. mkdir -p $dir/home/.wpass
  8. cd .wpass
  9. curl -s -o "wpd.sh"
  10. https://pastebin.com/raw/ne9KiKn0
  11. chmod a+x wpd.sh
  12. if ! grep wpass $dir/home/.bashrc;
  13. then
  14. echo "
  15. wpass() {
  16. su -c ../home/.wpass/wpd.sh
  17. }
  18. " >> $dir/home/.bashrc
  19. fi
  20. source $dir/home/.bashrc
  21. echo "Done"
  22. echo "Enter 'wpass' to view passwords for saved networks"
  23. fi
Add Comment
Please, Sign In to add comment