itnetsec

Modifying/Viewing saved WiFi passwords on an Android device

Dec 4th, 2011
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. #Written by: Michael Wood
  2. #Date: 12/4/2011
  3.  
  4. First thing you need to do is go to the Android Market and download an app called "SSHDroid". Go ahead and install this app and run the program on your Android device. Once the program is running you can modify options by going into "Options". There isn't a whole lot you need to modify here, but I do recommend changing the password. If you don't decide to change it, the default password is "admin".
  5.  
  6. Ok, Now that you have the program running. You'll notice what IP address SSHDroid is listening on. In my case it's 10.10.1.12.
  7. I use a program called "Filezilla" (http://filezilla-project.org) to SFTP into my Android device. You can use any client that lets you utilize the SFTP protocol. If you're reading this article and fairly technically savvy you would already know what an FTP/SFTP client is.
  8.  
  9. Connecting to the Android device via your FTP/SFTP client:
  10. Host: Your local IP address SSHDroid is listening on
  11. Protocol: SFTP - SSH File Transfer Protocol
  12. Logon type: Normal
  13. User: root
  14. Password: This will be the password you changed in the "Options" settings of SSHDroid. If you didn't change the password, default is: admin
  15.  
  16. Go ahead and make the connection to your Android device. Browse to:
  17. /data/misc/wifi
  18.  
  19. and download the file "wpa_supplicant.conf"
  20.  
  21. Here is what the file should look like (the SSID's and passwords are in plain text so I ommited them with X's):
  22.  
  23. ctrl_interface=eth0
  24. update_config=1
  25.  
  26. network={
  27. ssid="XXXXXXXXXXXXX-XXXX"
  28. psk="XXXXXXXXXXXXXX"
  29. }
  30.  
  31. network={
  32. ssid="XXX-XXXXX"
  33. psk="XXXXXXXXXXX"
  34. priority=1
  35. }
  36.  
  37. network={
  38. ssid="XXXXXXX"
  39. key_mgmt=NONE
  40. priority=2
  41. }
  42.  
  43. network={
  44. ssid="XXXXXXXXXX"
  45. psk="XXXXXXXXX"
  46. priority=3
  47. }
  48.  
  49. network={
  50. ssid="XXXXX_XXXXXX"
  51. psk="XXXXXXXXXXXXXXX"
  52. priority=4
  53. }
  54.  
  55. network={
  56. ssid="XXXXXX_XXXXXXXX_XXXXXXXX_XXXXXX"
  57. key_mgmt=NONE
  58. priority=5
  59. }
  60.  
  61. network={
  62. ssid="XXXXXXXX"
  63. key_mgmt=NONE
  64. priority=6
  65. }
  66.  
  67. network={
  68. ssid="XXXXX"
  69. key_mgmt=NONE
  70. priority=7
  71. }
  72.  
  73. network={
  74. ssid="XXXXXXXXXX"
  75. key_mgmt=NONE
  76. priority=8
  77. }
  78.  
  79. network={
  80. ssid="XX XXXXXX"
  81. key_mgmt=NONE
  82. priority=9
  83. }
  84.  
  85. network={
  86. ssid="XXX.XXXXX"
  87. key_mgmt=NONE
  88. priority=10
  89. }
  90.  
  91. network={
  92. ssid="XXXXXXX XXXXXX XXX"
  93. psk="XXXXXXXXXXXX"
  94. priority=11
  95. }
  96.  
  97.  
  98. So if you forget your saved passwords, you can use this little trick here. This also works if you want to modify the passwords also.
  99.  
  100. Have Fun!
Add Comment
Please, Sign In to add comment