Intercept the SQL Server Client Login Password

Source: Internet
Author: User
We all know that from winforms applications ProgramTo access the database server, use the connection string. If you are using a user name/password for connection, we usually encrypt the connection string to enhance security. This is far from enough.

Through the network packet capture tool, we can intercept data packets of the TDS protocol adopted by SQL Server. Then you can find the corresponding Logon Message.
Of course, the passwords of logon users are obfuscated, but the obfuscation method is simple. It is very easy to crack.

The obfuscation process is as follows:

Convert password characters to unicode encoding
Swap the 4-bit high and 4-bit low of each byte
The last operation is an exclusive or XOR operation with a constant 0xa5.
This is the final password string.

To crack the attack, perform the opposite operation.

Haha.

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.