Algorithm registrar writing literacy - second lesson
Original author: I want to [DFCG]
============================================================================================================================================================================================================= ====================
Note: At the first lesson, I am coming again, this time I don't dare to "not say eight" questions! The following will explain that the registration machine is written with VB. ^ _ ^
First, the last section is just a basic calculation, to make the application in the future algorithm summary compilation registration machine is still a lot, good, look at the following example:
Machine code
XOR 123456 = Registration Code
Second, assuming that the machine code on the three PCs is: 12121212; 13131313; 14141414. How should I deal with or write an algorithm registra? Everyone will look at my VB source code, hey, I am lazy, I will use my thin original code to use my grade. how? generic? See it!
Private submmand1_click ()
strtmp = text1.text
A = VAL (Text1.Text)
B = a
XOR 123456
Text2.text = B
End Sub
Third, the original code is the machine code we have to fill, b is the result of the calculation, that is, the registration code, use the source code above, try to do it yourself, see if the registration machine can calculate the above 3 The correspondence registration code for the machine code. My result is below:
Machine code: 12121212
Registration code: 12129852
Machine code: 13131313
Registration code: 13220977
Machine code: 14141414
Registration code: 14034342
Four, huh, all right, you can use the calculator to verify that these three registration codes are correct, right! That is, this registration machine can be applied to 3 or more computers, and the real registration code can be calculated with the different machine code! ^ _ ^
Five, dizzy, you are not good, I am not a decimal, the algorithm I found the sixteen-entered value, how do I write, then look at the source code, use this source code to compile the registration machine!
Private submmand1_click ()
strtmp = text1.text
A = VAL (Text1.Text)
B = a
Xor & h1e240
Text2.text = B
End Sub
Sixth, or the three robot code above as an example, I have got the registration code to see below:
Machine code: 12121212
Registration code: 12129852
Machine code: 13131313
Registration code: 13220977
Machine code: 14141414
Registration code: 14034342
Seven, oh, exactly the same as the above calculation? Yes, because the ten-way value of the hexadecimal 1e240 is 123456 listed in the previous, understand! In fact, no matter whether it is a decimal or hexadecimal, this source code can be applied to the registra. Everyone can try more, self-editing a calculator, apply your own calculator, the result is compared with the Windows calculator calculation results, I think more beneficial! The best way is to self-compute CRACKME, because you already know its algorithm, so write it out of the algorithm registration machine is getting better! How to write? This is said in the third lesson, this section will hold the first.
Eight, good, you have already started, you can write an algorithm registrane! So, find a few soft persimmons to start, find the algorithm, write your algorithm registration machine. I found a few stuff, it was N long ago, because it is simple, suitable for starting, so use it. Here, the algorithm breaks the article is not all I wrote, it is used to use it, but please the author forgive me! ^ _ ^
Nine, Amway Management Sales System v1.2 personal version, this East East Algorithm is super simple, use it to open the knife!
Algorithm summary:
Machine code: 0375458006 (turn hexadecimal value: 166108D6)
Use 166108d6 and 810613f to the result of the operation (1E7169E9), then convert it into a decimal is your registration code (510749161).
For example, machine code: 0375458006
Really registration code: 510749161
Ten, ok, find the algorithm, then use my super provincial source code to apply to this algorithm registration machine, see:
Private submmand1_click ()
strtmp = text1.text
A = VAL (Text1.Text)
B = a
XOR & H810613F
Text2.text = B
End Sub
11. Compilation method refers to the content of the article above, this is no longer repeated, free of "Hu Yan"! @ _ @
Twelve, not addiction? it is good! Again, Lingpeng CD Rental and Sales System 2.0 Algorithm look down:
The machine code turn hex value is a, the registration code is Key, then:
Key = (A A 87568F 875A6B 4F5DA2) (A A 87568F 875A6B 4F5DA2) * 4
(Translate the above calculated results hexadecimal value into a decimal value is your registration code)
For example, my machine code is: 65526 transformation into hexadecimal value: FFF6
Key = (A A 87568F 875A6B 4F5DA2) (A A 87568F 875A6B 4F5DA2) * 4
= 6E048A8 (turn ten into value is: 115361960)
For example, I am machine code: 65526
Really I registration: 115361960 13, know how the algorithm and the result, how to compile the calculation into an algorithm registger, or my source code:
Private submmand1_click ()
strtmp = text1.text
A = VAL (Text1.Text)
B = a a
C = B & H15E0E9C
D = C * & H4
E = C D
TEXT2.TEXT = E
End Sub
14. Use this source code to compile the generation algorithm registration machine, huh, the measurement is successful, all right! When this algorithm column is calculated, you look at a bit dizzy, but go to my source code, hey, see the heart! ^ _ ^
Fifteen, okay, look back as a review, come back to a simple deepening your learning process, this is the new month's software --- Six screen v1.2, remember the brothers in DFCG wrote this broop, first The brochure algorithm summarizes the first first, look at:
This software is really cute! ! !
Put machine code
XOR 11677831 is the registration code!
The VB registrar source code is as follows (in Win98 VB6.0 debugging)
Private submmand1_click ()
strtmp = text1.text
NLEN = LEN
Strtmp)
K = 1
For
i = 1 TO
Nlen
j =
ASC (MID)
Strtmp,
I, 1))
IF j <47 or j> 58 THEN
K = 2
END IF
NEXT
i
IF K <> 2 THEN
Text2.text = VAL (Text1.Text)
XOR & H11677831
Else
e =
Msgbox (/ "Your machine code is incorrect, please re-enter! /", 0, / "error !!! /")
END IF
End Sub
Private sub fascist2_click ()
AA =
Msgbox (/ "Breakfast Flying Computer Studio Power Made /", 0, / "Exit /")
Unload me
End Sub
If you want to reprint this document, keep this document is complete. Thank you (I am not going to fight against the wind, I didn't do it)
XVI, the above registration machine source code is correct, but I said my lazy source code, more important part of the two:
This is the source code of the wind, nice, I will first! ^ _ ^
Private submmand1_click ()
strtmp = text1.text
NLEN = LEN
Strtmp)
K = 1
For
i = 1 TO
Nlen
j =
ASC (MID)
Strtmp,
I, 1))
IF j <47 or j> 58 THEN
K = 2
END IF
NEXT
i
IF K <> 2 THEN
Text2.text = VAL (Text1.Text)
XOR & H11677831
END IF
End Sub
This is my lazy streamline, okay! Pour ~~ Huang Po what is ~~~~
Private submmand1_click ()
strtmp = text1.text
A = VAL (Text1.Text) B = a
XOR & H11677831
Text2.text = B
End Sub
Seventeen, the process of compilation is no longer repeated, everyone can do itself, so you can deepen the understanding and understanding of the VB write algorithm registration machine. Work hard, brothers, there is no reason to be better than me! ^ _ ^
Eighth eight, this article is a second lesson of the algorithm registrar, I hope to be able to give you help, learn the sea without ending, everyone work together, the future DFCG can write their respective algorithm registration machines, I will comfort it! Don't be ~~~ Don't throw a brick! I can't get it ~~~ 嘿嘿!
19. The theme of the next lesson is the simple design of the registration machine and the simple design of the window.
CRACKME, of course, use or VB6, want to continue to see, first top this post, do not write! ^ _ ^
Twenty, this original author - I want [DFCG], copyright is not, the human rights I have, so the friends and friends of this post and each friends, you will pay attention to this article from DFCG organization and I want [DFCG ] Original as a prerequisite, otherwise thank you for reprint. On the Internet, but not there is no one to see! Thank you for reading!
I want [DFCG] 2003.12.06