The other day, I realised that I had forgotten my WiFi network password back at home.
The easy way to fix this would have been to use an already connected PC to access the router and change the password there, or to use an application like WirelessKeyView to recover the password of the said PC.
If I used method 1, I'd have to give the key to my housemates, which adds a bit of hassle.
When I tried method 2, the PC I was using was running XP I got a hex string which is not very user friendly (XP automatically converts WPA-PSK keys to a 64bit non-(easily?) reversible hash).
I then decided to try to get the key off my (rooted) Desire Z. Easy enough, the passwords are stored in plaintext in the following file:
I then wrote a quick application to make the extraction a bit more painless (links at the bottom of the post), but when I was testing it on my Galaxy Tab, I realised that the file was not there. After a bit of digging around, I found the passwords here:
Also, here is the location of the file on the Streakroid ROM (this could be the default for all Dell Streaks, but as I don't have one I can't check):
The formatting of the files is identical and can be found here: http://linux.die.net/man/5/wpa_supplicant.conf, but the location is different (based on the whims of each developer/company I guess).
The easy way to fix this would have been to use an already connected PC to access the router and change the password there, or to use an application like WirelessKeyView to recover the password of the said PC.
If I used method 1, I'd have to give the key to my housemates, which adds a bit of hassle.
When I tried method 2, the PC I was using was running XP I got a hex string which is not very user friendly (XP automatically converts WPA-PSK keys to a 64bit non-(easily?) reversible hash).
I then decided to try to get the key off my (rooted) Desire Z. Easy enough, the passwords are stored in plaintext in the following file:
/data/misc/wifi/wpa_supplicant.conf
I then wrote a quick application to make the extraction a bit more painless (links at the bottom of the post), but when I was testing it on my Galaxy Tab, I realised that the file was not there. After a bit of digging around, I found the passwords here:
/data/wifi/bcm_supp.conf
Also, here is the location of the file on the Streakroid ROM (this could be the default for all Dell Streaks, but as I don't have one I can't check):
/data/misc/wifi/wpa.conf
The formatting of the files is identical and can be found here: http://linux.die.net/man/5/wpa_supplicant.conf, but the location is different (based on the whims of each developer/company I guess).
To access the files, you need root permissions.
Application Links:
- Market Link: https://market.android.com/details?id=aws.apps.wifiKeyRecovery
- Github Page: https://github.com/alt236/Wifi-Key-Recovery---Android
- Webpage: http://aschillings.co.uk/html/wifi_key_recovery.html
If anyone has a device on which the app does not work, do two things:
- Make sure you are rooted.
- If you are certain you are rooted and it still does not work, email me (my email can be found here: http://aschillings.co.uk/html/contact.html).
I have no way to contact you if you post anonymously in the comments section!
I saw an application that does basically that the other day. It's a little easier to get the passwords that way. You might check it out: https://market.android.com/details?id=com.nevercertain.wifipasswords.pro
ReplyDeleteThanks for the post.
I already wrote one myself:
ReplyDeletehttps://market.android.com/details?id=aws.apps.wifiKeyRecovery
And its freeware :)
hey Alex. do you have any download link for desktop and install to my tab directly? i found one in 4shared.com, im not sure if thats what you wrote since i cant open it...password protected.. thanks
ReplyDeleteHi,
ReplyDeleteunfortunately on my motorola defy the password must be stored somewhere else, any ideas?
Alexandros, good morning.
ReplyDeleteWhat I don't understand is your fear of giving your password to your "mates".
If you didn't give it to them the first time.....how did they ever log on? And if you gave it to them once, why not again?
Goodmorning!
ReplyDeleteYou misunderstood.
There is no fear in giving out the password. My mates had the password because I gave it to them, and I would again if I had to change it.
The problem is that if I changed the password, I would have to let them know of the change and possibly disrupt their work until they change the password and reconnect.
As part of said work is unattended and professional (remote desktoping, running simulations, etc.) it is more inconvenient that say, a lost WoW raid.
Plus, it was more fun to poke around android :)
If anyone has a device on which the app does not work, do two things:
ReplyDelete1. Make sure you are rooted
2. If you are certain you are rooted, email me (my email can be found here: http://aschillings.co.uk/html/contact.html).
If you post anonymously, there is not much I can do :)
Hello Alexandros first of, thanks for the wonderful app, it is really helpful when i forgot the passwords and need to share it with others.
ReplyDeleteIt'll be nice to see an import feature built in into the app to complement the export feature
thanks again
Hi Alt236,
ReplyDeleteIs there a way that we get wifi password without rooting the device ? If yes please specify how ?
~S
very nice decent app does what it says it does congrats my friend really good Job!!!
ReplyDeleteIs there a way that we get wifi password without rooting the device ? If yes please specify how ? thx
ReplyDeleteGood jod
ReplyDeleteNo, there is no way to get the keys without rooting because of where the file sits on disk. The location is in a portion of the filesystem where only the root user (read: administrator) has and write permission. If you could just write an app that did that without needing root permission what good would it be in the first place since it would be a big, gaping security hole.
ReplyDeleteJe resulta ke mi clave aparece encriptada! Alguna idea??
ReplyDeleteI have read your blog and know the process of how to get Android wi-fi password location ? it is really interesting way to explain it and i understand it easily. Thanks . .
ReplyDeletepls give here tutorial video or pictures
ReplyDeletethx
Thanks for this information.... its very useful for android users.
ReplyDeleteThanks for this useful application.
ReplyDelete