How to view saved passwords browser - by way of js code

Open the website, the password input box right click and select "Inspect Element" (or press F12), the code page pops up at the bottom of the browser, and automatically navigate to the code segment password box.

1. The first method

After selecting the elements directly in the  Console Enter the following command ($ 0.value) console and press Enter:

 

2. The second approach

Back to the code of the page, to type="password"change type="text", and press Enter, the password area is no longer a black dot, but directly to the saved password display out.

3. A third method

Back to the page code to see if there is id, if not a plus, for example  id="admin_password", open the console, enter the following command (admin_password.value) and press Enter:

4. A fourth method

Back page code to see if there is name, if not an increase, for example  name="mail-pwd", open the console, enter a command (document.getElementsByName ( 'mail-pwd' ) [0] .value) and Enter:

 

Guess you like

Origin www.cnblogs.com/vickylinj/p/11914403.html