利用C Free3.5 本身获得自身注册码
今天發(fā)現(xiàn)C Free3.5注冊機(jī)在win7下運(yùn)行算出的KEY有問題,于是搜索了下 發(fā)現(xiàn)了這么個有趣東東
?
#include<stdlib.h> #include<stdio.h> main() {int i=0;char chKey[128]={0};unsigned int unXORCode,unRemainder,unQuotient,unTmp,unMachineCode;printf("Machine Code:");scanf("%d",&unMachineCode);unXORCode=unMachineCode^0x90909090;unRemainder=unXORCode%0x25;unQuotient=unXORCode;if (unRemainder<0x11) unRemainder+=0x11;while (unQuotient!=0){unTmp=unQuotient%unRemainder;unQuotient/=unRemainder;if (unTmp>=0xa){unTmp=unTmp+0x61+0xf6;unTmp&=0x0ff;chKey[i]=unTmp;}else chKey[i]=unTmp+0x30;i++;}printf("Your key is:");while (i>0) {i--;printf("%c",chKey[i]);}printf("/n"); }?
總結(jié)
以上是生活随笔為你收集整理的利用C Free3.5 本身获得自身注册码的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [linux-svn] linux下sv
- 下一篇: hdu 5441 (并查集)