DISCLAIMER
This article is released in Public Domain. This article is written on the purpose of education, and you shouldn’t use it in any commercial or illegal circumstances. The author doesn’t hold liability for any illegal usage of this article.
THIS ARTICLE IS PROVIDED “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Step 1
Find bin\CommonLibrary.dll under installation directory, decompile class CommonLibrary.Activation.ActivationLogic then extract function EncryptInRC2 and all the consts.
Step 2
Put EncryptInRC2 , other consts and the following code into the same class:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
internal static string Encrypt(string machine_id, string date) { string s = machine_id // Disk serial + date // Issue date + "0"; // TrialTerm: If ExpiredCode is "1", then this license will be revoked after TrialTerm*10 days byte[] arr1 = EncryptInRC2(s); byte[] hash = SHA1.Create().ComputeHash(arr1); DSACryptoServiceProvider cryptoServiceProvider = new DSACryptoServiceProvider(512); cryptoServiceProvider.FromXmlString(PUBLIC_KEY); DSASignatureFormatter dsf = new DSASignatureFormatter(cryptoServiceProvider); dsf.SetHashAlgorithm("SHA1"); byte[] SignedHash = dsf.CreateSignature(hash); MemoryStream m = new MemoryStream(); m.Write(arr1, 0, arr1.Length); m.Write(SignedHash, 0, SignedHash.Length); string result = "0" // ExpiredCode + Convert.ToBase64String(m.ToArray()); // Encrypted code m.Dispose(); return result; } |
Step 3
Invoke Encrypt with the first argument being serial number displayed on registration window (8-digit HEX disk serial like 1234ABCD), and the second argument being a 6-digit date string no later than today in the format of "yyMMdd" . Return value is the registration code.