How to create an asterisk Viewer

Source: Internet
Author: User

when you successfully log on to a bunch of ADSL modem, a line of asterisks and passwords are displayed when you view the route password, when we tried to copy this string of asterisks with Ctrl + C, we found that the password was not copied at all, because Windows prevented us from copying this asterisks. Sometimes some websites may have been registered and automatically completed during login. After a long time, I forgot my original password ...... What we need to do today is to get the original content of the asterisk password. The asterisks and passwords in the browser are quite special. Their acquisition principles are different from those in Windows Programs , super Rabbit's "asterisk password detection" function cannot get the password, because the asterisk password in the webpage is an element in the IE form, which cannot be found by common software, this led me to write a small tool to solve such headaches.
browser plug-ins have recently been researched, but it is a little troublesome to compile ActiveX plug-ins, in addition, the current plug-ins are somewhat cool-looking (in fact, I am not very good at COM technology, but ^-^). I 'd like to find a practical implementation method. It is no longer convenient to use Vbscript to control the browser. It is simple and powerful, and everyone has an ASP foundation. It is easy to make an htm.
first, we should consider how to locate the Password box. By analyzing the VBScript library functions, we did not find functions as rich as Windows programs, finally, I chose a shortcut menu similar to thunder to get the mouse coordinates. Open the text editor. ultraedit is recommended here. It supports highlight of HTM syntax. After all, it is not easy to see spelling errors using notepad. The following Code is streamlined and optimized at different layers, and the comments are also very detailed. You can simply enter them and use them.

<Script language = "VBScript">
On Error resume next 'set error traps
Dim objdocument, objevent, objelement 'declares the object
Set objdocument = external.menuarguments.doc ument
'Use Dom to enumerate Elements
Set objevent = External. menuarguments. Event
Set objelement = objdocument. elementfrompoint (objevent. clientx, objevent. clienty)
'Get the webpage element through the coordinates of the current mouse pointer
If objelement. type = "password" then
'If the webpage element type is password
If objelement. value = "" then
Alert ("Empty retrieved text ")
Else
Alert ("Get text:" + objelement. Value) 'display Password
End if
End if
</SCRIPT>

 

Save this code as the "ht.htm" file, which is saved in the root directory of drive C. Open the Registry Editor (Regedit), locate the "HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ menuext" branch, right-click the branch, and create an "item" in the pop-up menu ", name "view asterisk password" here, and create a "string value" on the right. The value is the complete path for saving the "show password" file, that is, "C: \ Display password .htm"
The above is the method for adding the Browser Helper Program (BHO. Right-click the browser and you will find that the "view asterisk password" option is added to the menu. In order to let everyone know the actual results, we will test it on the logon page of the Baidu space. In the password input box, right-click the password, and click "view asterisk password" to see that the entered real password is successfully obtained, as shown in figure 2.

Using the VBScript program to implement this function is almost the simplest method. The first step is to compile the VBScript webpage without using the complex COM technology. The second step is to register the BHO object in the registry. The creation method is simple and efficient. You may wish to give it a try. It is really hard to get the asterisks and passwords on the webpage.

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.