In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
The main content of this article is "analyzing the derivation of SQL SERVER SP decryption process". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn the "analysis of SQL SERVER SP decryption process derivation" it!
Derivation of SQL SERVER SP decryption process
In SQL SERVER, Microsoft is known to use the RC4 algorithm to encrypt and decrypt stored procedures. The following is the idea of decrypting the stored procedure, according to which the reader can write a decrypted Mini Program.
To decrypt SP is to answer the following proof question.
Known conditions:
1. The ciphertext of the known stored procedure SP_A that needs to be decrypted is Ma.
two。 Replace SP_A with a known plaintext SP_B, so that the plaintext and ciphertext of SP_B are Tb and Mb, respectively.
Verification: Ta=Ma ⊕ Tb ⊕ Mb,Ta is the plaintext of the stored procedure that needs to be decrypted.
Proof process:
1. Log in to SQLSERVER with DAC and get Ma and Mb: SELECT imageval FROM sys.sysobjvalues where...
two。 Since the RC4 algorithm uses the same secret key for encryption and decryption, assuming that the secret key is K, then:
A. Mb=Tb ⊕ K
b. According to the XOR formula, you can get the following secret keys used by the stored procedure to add and decrypt:
K ⊕ 0n K ⊕ Tb ⊕ Tb= (K ⊕ Tb) ⊕ Tb= (Tb ⊕ K) ⊕ Tb=Mb ⊕ Tb
3. Because of Ma=Ta ⊕ K, the following derivation results are obtained by using the XOR formula again:
Ta=Ta ⊕ 0=Ta ⊕ (K ⊕ K) = (Ta ⊕ K) ⊕ K=Ma ⊕ K=Ma ⊕ Mb ⊕ Tb
4. That is, Ta=Ma ⊕ Tb ⊕ Mb,Ta is the plaintext of the stored procedure that needs to be decrypted.
At this point, I believe that everyone on the "analysis of SQL SERVER SP decryption process derivation" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.