Skip to content

Instantly share code, notes, and snippets.

@veez21
Last active October 11, 2023 15:18
Show Gist options
  • Save veez21/16e15b53d665971d8918902f20273140 to your computer and use it in GitHub Desktop.
Save veez21/16e15b53d665971d8918902f20273140 to your computer and use it in GitHub Desktop.
Wifi Password Viewer installer
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