basic username and password recovery tool

boycoder
boycoder used Ask the Experts™
on
Hi, I was wondering if someone can assist me.#
I am quite new to delphi.
I am trying to create a basic application to allow me to view my usernames and password on my computer then show them in a message,.
I have my settings to change my passwords every 90days and it gets quite fustrating when I have to keep tracking them down.
Now on firefox I can normally do this by, clicking options, then secuirty then saved passwords then I can see my usernames and passwords with the websites they belong to so all good.

Now how would I go about reading the file without going through all the menus on firefox or ie ect..  
I really dont want to download and use the ready made programs available as the whole point I want to do this is to create my own with help and support from you guys.

any help would be great.

So...  something like on button1 click then show passwords, usernames and site for them in a message?

I am aware of this http://www.nirsoft.net/password_recovery_tools.html
and dont wish to use a ready made program i want mine for me and very simple and basic, getting my other details would be great such as msn hotmail internet exporer ect..    I can password protect my delphi application so thats fine.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011

Commented:
Do you mean to read firefox stored username and password?

Author

Commented:
Yes Sir,

to read all my passwords and usernames from firefox to start with yes.

Commented:
This is not an easy task, but you can get it on firefox database which is sqlite, it can be found at \Documents and Settings\current_USER\Application Data\Mozilla\Firefox\Profiles\  then find out which database file was used
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

Top Expert 2011

Commented:
All Usernames and Passwords are encrypted and stored in the FireFox profile folder in a database file "signons.sqlite". It's an SQLite Database file which can be opened by Delphi easily using SQLite DB component suite.
For the password part you need to hack that to be able to show the password in readable text as it will be encrypted.

You can download this tool which will enable you to open Firefox DB files:
http://sqlitestudio.one.pl/index.rvt?act=download

Author

Commented:
right thats a good start for me, super thanks.
are there any delphi comps that may be able to hack.read the password on firefox SQlite database file?
Top Expert 2011
Commented:
You may use UniDac which supports many database types.

Or for free component use SQLite4Delphi.

Author

Commented:
ok, so like as I stated I want to create the ultimate password/username recovery and show in a neat message, example, if I want my ebay account and say facebook, then skype and more,
I will change things like username and email for login to make easy to see..
I want to avoid all current programs to get the satisfaction on my own.
I was wondering if you know the simplest ones to start with stored on my pc?for example I would also assume IE is encrypted also



Facebook login: allen101    Password: 23456
Ebay login: allen900    Password: ertghr
Skype username: example1   Password: example1
Top Expert 2011

Commented:
Internet Browsers are not following the same technique. So what you will be writing to work with FireFox will not work on IE.

Author

Commented:
i see, so I would need to first get the  firefox to work then start again with another way to get IE.
I have just downloaded a program called: http://www.nirsoft.net/utils/passwordfox.html and its exactly what I want to do in delphi.
I have downloaded also the comps as you stated, so I should be able to read the file signons.sqlite then somehow find a way to read whats there, although the comp will show it but I then need to be able to read it and show it...

hmmm.

Author

Commented:
i managed to source the following?  any ideas where to find the key3.db I know this is not this area of your field.

Make sure that you use the key3.db file that matches the signons.sqlite file.
Without the correct key3.db it is impossible to decrypt names and passwords in a signons file.
A master password cracking program won't work either without a key3.db file.
Top Expert 2011

Commented:
Exactly.
But the only problem will be the password decrypting.
Top Expert 2011

Commented:
key3.db is a key database contains a key used to encrypt and decrypt saved passwords. It can be found along with the signons.sqlite under the profile folder. Default profile folder path is "C:\Documents and Settings\UserName\Application Data\Mozilla\Firefox\Profiles\XXXXXXXXX.default".

Author

Commented:
ok will do more digging and report back in 2 hours.

Author

Commented:
hey jimmy I am having issues, i check the location and cant find nothing, maybe these are hidden files?

C:/Program file
c:/windows
c:users is all I have

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial