Posted by: R Manimaran | June 24, 2010

Javascript Code to get the password in a Webpage

Here is a small script to get the password of a password column. For example open gmail.com login page. Type the username and password. Don’t click the Sign-in button.

Copy the following javascript to your browser address bar. Then you will find the magic.

javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no passwords in forms on this page.");})();

Note: So don’t leave your system open after you typed the password …Just use winkey+L before you leave the place.

About these ads

Responses

  1. Nice post. I was checking constantly this blog and I am inspired!

    Extremely useful info specifically the closing phase :) I care for such info a lot.
    I was looking for this certain information for a long time.

    Thank you and good luck.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

Follow

Get every new post delivered to your Inbox.

Join 26 other followers

%d bloggers like this: