Is the website password encrypted by an asterisk? How to solve this problem

Source: Internet
Author: User

This is just what I suddenly thought of when I was learning javascript. I tried it today and it was successful. This is a test: This case cannot be reflected, because it is a direct login. I did not add the "Remember password option", but some websites do not use cookies, in addition, you can enter your password directly in the password box, and you need to click "login" each time. This method is to put your password in the password input box according to the second method. Method 1:

<Html> 

 

If you do not have the intention to open a website when playing a computer, the password is remembered. If you want to know what the password is, you can use the "Review element" to find out the name value of the account and password. If not, you can add one by yourself. Check the name of the form. If there is no name value, add it by yourself. Add onclick = "a ()" after the code of the "Submit" button and write
<Script type = text/javascript> function a () {var name = form1.user. value; var pwd = form1.lname. value; alert ("account :(" + name + ") password :(" + pwd + ")"); form1.user. focus () ;}</script>

 

The a user lname form1 in the Code is modified according to the situation. This section is used to obtain the user and lanme values in the form1 label and display them in alert mode. Method 2: It is similar to the first one, but the called function is different.
<Html> 

 

Use document. getElementById to retrieve the user and lname values, which are displayed by alert. Method 3: the simplest method is to directly modify the password text in <input id = "pwd1" type = "password" name = "lname"/> in "review element .... Some people will feel like I have spoken a bunch of nonsense .... I just want to say, "I mean a bunch of nonsense ~"...

Related Article

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.