Advertisement
Al_Tasin

wpd.sh

Aug 11th, 2020
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #!/system/bin/sh
  2. #Wifi Password show (Made By [Al Tasin] )
  3.  
  4.  
  5. [ "$(whoami)" != "root" ] && { echo "root required"; exit 1; }
  6. config=/data/misc/wifi/WifiConfigStore.xml
  7. SSID=($(grep 'name="SSID"' $config | sed "s/.*>"//;s/".*//;s/ /-_-/g"))
  8. PSK=($(grep 'name="PreSharedKey"' $config | sed "s/<null.*/\e[01;30mNONE\e[00;37;40m/;s/.*>&quot;/\e[01;32m/;s/&quot;.*/\e[00;37;40m/;s/ /-_-/g"))
  9.  
  10. echo "\033[1;31mWiFi Password Viewer"
  11. echo " "
  12. echo "\033[1;34mMade by Al Tasin"
  13. echo " "
  14.  
  15. for i in ${!SSID[@]}; do
  16. echo "\e[01;37m${SSID[$i]}\e[00;37;40m - ${PSK[$i]}" | sed "s/-_-/ /g"
  17. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement