You must have seen and used softwares which are capable to show all the passwords hidden behind Asterisks on a webpage but downloading,installing and using a software is always boring and time taking job so finding an another way will be beneficial.
Recently i came across a cool javascript that can show all the passwords hidden behind Asterisks what you need to do is to just simply copy and paste the javascript to the address bar and the hidden password will be shown to you.Isn’t this a cool and easy way to show and view hidden password rather than using a software.
First of all open up the webpage on which you wanna show the hidden passwords and then Just copy and paste the following JavaScript into the address bar of the browser and you are done.
javascript:(function(){var%20s,F,j,f,i;%20s%20=%20%22%22;After copying and pasting the JavaScript given above press the enter key and hidden passwords will be shown to you.
%20F%20=%20document.forms;%20for(j=0;%20j
%20{%20f%20=%20F[j];%20for%20(i=0;%20i
%20{%20if%20(f[i].type.toLowerCase()%20==%20%22password%22)
%20s%20+=%20f[i].value%20+%20%22\n%22;%20}%20}%20if
%20(s)%20alert(%22Passwords%20in%20forms%20on%20this
%20page:\n\n%22%20+%20s);%20else%20alert(%22There%20are
%20no%20passwords%20in%20forms%20on%20this
%20page.%22);})();
I have tested it on IE , Firefox and Opera . . try out ..
Following is the screenshot of hidden password that is shown the JavaScript given above.
2 comments:
well i tried it in firefox and in google chrome but it is not working. it may be because while creating this post you have directly pasted the javascript in to your blog post window.
And invalid character such as ' ' space % & are replaced internally by %20 %22,
I think the JavaScript code should be somewhat like below then only the original password behind the asterisk will be seen the message box
javascript:(function(){var s,F,j,f,i; s = ;
F = document.forms; for(j=0; j
{ f = F[j]; for (i=0; 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. );})();
what do you say...
ya i think u r right . .
Post a Comment