Last active
October 11, 2023 15:18
-
-
Save veez21/16e15b53d665971d8918902f20273140 to your computer and use it in GitHub Desktop.
Wifi Password Viewer installer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Installing Wifi Password Viewer for Termux" | |
dir=/data/data/com.termux/files | |
[ -d "$dir" ] || { echo "Termux not installed!"; exit 1; } | |
if [ $(getprop ro.build.version.sdk) -lt 26 ]; then | |
echo "! This script only supports Android 8.0+" | |
else | |
mkdir -p $dir/home/.wpass | |
cd .wpass | |
curl -s -o "wpd.sh" https://gist.githubusercontent.com/veez21/4f2541d271809864411e3ffbbe8e3df9/raw/wpd | |
chmod a+x wpd.sh | |
if ! grep wpass $dir/home/.bashrc; | |
then | |
echo " | |
wpass() { | |
su -c ../home/.wpass/wpd.sh | |
} | |
" >> $dir/home/.bashrc | |
fi | |
source $dir/home/.bashrc | |
echo "Done" | |
echo "Enter 'wpass' to view passwords for saved networks" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment