Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/system/bin/sh
- #Wifi Password show (Made By [Al Tasin] )
- [ "$(whoami)" != "root" ] && { echo "root required"; exit 1; }
- config=/data/misc/wifi/WifiConfigStore.xml
- SSID=($(grep 'name="SSID"' $config | sed "s/.*>"//;s/".*//;s/ /-_-/g"))
- PSK=($(grep 'name="PreSharedKey"' $config | sed "s/<null.*/\e[01;30mNONE\e[00;37;40m/;s/.*>"/\e[01;32m/;s/".*/\e[00;37;40m/;s/ /-_-/g"))
- echo "\033[1;31mWiFi Password Viewer"
- echo " "
- echo "\033[1;34mMade by Al Tasin"
- echo " "
- for i in ${!SSID[@]}; do
- echo "\e[01;37m${SSID[$i]}\e[00;37;40m - ${PSK[$i]}" | sed "s/-_-/ /g"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement