Home > Net >  The.net how to prevent the hook records keyboard to steal passwords
The.net how to prevent the hook records keyboard to steal passwords

Time:09-27

Company program evaluation by the security establishment and detect the hooks to record the keyboard access to login password, this how to solve, also didn't find a good solution on the Internet, online are c + +, do not know to have solved in the BBS, strives for the advice, thank you!

CodePudding user response:

Custom components, like bank websites that password box, shielding related news

CodePudding user response:

reference 1st floor qq_29188301 response:
custom components, like bank websites that password box, shielding the relevant message


Relevant reference, thank you

CodePudding user response:

Hook function sequence and hook into the order of the hook chain, on the other hand, after the hook chain hook function to deal with first. So, just make sure to install the keyboard hook at the end of the hook chain can always. This implementation can use the following way:

Whenever password box gains focus, install the keyboard hook, when focus away to remove it. So when the password in the password box can guarantee the hook function processing first, and will continue to deliver or send this message not simulated keyboard message.

Keyboard hook to ordinary hooks, so other programs if installed the lower hook, it is possible to the keyboard hook to deal with it before processing. This also can adopt the same way, make oneself of the low-level hook at the end of the hook chain.

CodePudding user response:

reference andy_wanhl reply: 3/f
hook function sequence and hook into the order of the hook chain, on the other hand, after the hook chain hook function to deal with first. So, just make sure to install the keyboard hook at the end of the hook chain can all the time. This can be realized by using the following way:

Whenever password box gains focus, install the keyboard hook, when focus away to remove it. So when the password in the password box can guarantee the hook function processing first, and will continue to deliver or send this message not simulated keyboard message.

Keyboard hook to ordinary hooks, so other programs if installed the lower hook, it is possible to the keyboard hook to deal with it before processing. This also can adopt the same way, make oneself of the low-level hook at the end of the hook chain.


Thank you, I give it a try

CodePudding user response:

You can do such things as a software disc, their processing
  •  Tags:  
  • C#
  • Related