Use javascript to obtain the asterisks and passwords in the browser

Source: Internet
Author: User

In a few simple steps, you can use javascript to retrieve the asterisks and passwords stored in your browser.

1. Open a browser
2. Go to the login page where you saved your password
3. Enter the following script in the address bar of the browser:
 
 
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: nn" + s ); else alert ("There are no passwords in forms on this page. ");})();
 
4. Press ENTER
5. The password will be displayed on the pop-up page.
A 3.6 password page was tested in firefox 123456. The result shows: Passwords in forms on this page: nn123456n
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.