Search Tools Links Login

The password protected textbox control. Cure to the hack (updated)


Visual Basic 6, or VB Classic

In the past days, we have seen an exploit on how to get the text behind the password protected textbox control. This was sure a security breach. Windows XP don't have the same problem with their password protected textbox. They use their control from comctl32.dll and not user32.dll! Our textbox has the same protection. It is subclassed to intercept the WM_GETTEXT and EM_SETPASSWORDCHAR by transforming them into WM_NULL upon receival. Download the source and check it out. Any comments or suggestions are always welcomed :-) Subclassing source was borrowed by Stephen Kent's excellent article on PSC site : http://www.planet-source-code.com/xq/ASP/txtCodeId.30275/lngWId.1/qx/vb/scripts/ShowCode.htm

Original Author: John Galanopoulos

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 105 times

Categories

Visual Basic 6

Attachments

The_passwo47035172002.zip
Posted: 9/3/2020 3:45:00 PM
Size: 21,612 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.