diskgetor Posted May 29, 2014 Posted May 29, 2014 (edited) 8C7A:canstantsnow you known this:char [10]={7A D0 07 71 DE 82 5F 40 AA 13}next is the cacl:78787879 imul 7A=00000039:696969AA //get char[0]39 SAR 3=77A ADD 7=818C7A ADD 81=8CFB78787879 imul 8CFB=00004258:00004AA34258 SAR 3=084B084B ADD 8CFB=954678787879 imul D0=00000061:E1E1E250 //get char[1]61 SAR 3=0CD0 ADD 0C=DC9546 ADD DC=962278787879 imul 9622=000046A6:9696E61246A6 SAR 3=08D408D4 ADD 9622=9EF6//D078787879 imul 07=00000003:4B4B4B4F //get char[2]3 SAR 3=007 ADD 0=079EF6 ADD 7=9EFD78787879 imul 9EFD=00004AD1:6969BD954AD1 SAR 3=095A095A ADD 9EFD=A857//0778787879 imul 71=00000035:2D2D2D69 //get char[3]35 SAR 3=671 ADD 6=77A857 ADD 77=A8CE78787879 imul A8CE=00004F70:0000595E4F70 SAR 3=09EE09EE ADD A8CE=B2BC//7178787879 imul DE=00000068:787878EE //get char[4]68 SAR 3=0DDE ADD 0D=EBB2BC ADD EB=B3A778787879 imul B3A7=0000548A:D2D331EF548A SAR 3=0A910A91 ADD B3A7=BE38//DE78787879 imul 82=0000003D:2D2D2D72 //get char[5]3D SAR 3=0782 ADD 07=89BE38 ADD 89=BEC178787879 BEC1 BEC1=000059C4:3C3CA13959C4 SAR 3=0B380B38 ADD BEC1=C9F9//8278787879 imul 5F=0000002C:B4B4B4E7 //get char[6]2C SAR 3=055F ADD 05=64C9F9 ADD 64=CA5D78787879 imul CA5D=00005F3A:D2D33DF55F3A SAR 3=0BE7CA5D ADD 0BE7=D64478787879 imul 40=0000001E:1E1E1E40 //get char[7]1E SAR 3=0340 ADD 03=43D644 ADD 43=D68778787879 imul D687=000064F4:3C3CADCF64F4 SAR 3=0C9E0C9E ADD D687=E325//4078787879 imul AA=00000050:0000005A //get char[8]50 SAR 3=0AAA ADD 0A=B4E325 ADD B4=E3D978787879 imul E3D9=00006B38:F0F169916B38 SAR 3=0D67E3D9 ADD 0D67=F140//AA78787879 imul 13=00000008:F0F0F0FB //get char[9]08 SAR 3=0113 ADD 01=14F140 ADD 14=F15478787879 imul F154=00007190:F0F170B47190 SAR 3=0E320E32 ADD F154=FF86//13take the last add:FF86 CACL this:FF86 sar 8=FFFF86 sar 3=1FF0F0 XOR FF=0F0F XOR 86=89--------------------------------------------------------------89^ 13=9A89^ AA=2389^ 40=C989^ 5F=D689^ 82=0B89^ DE=5789^ 71=F889^ 07=8E89^ D0=5989^ 7A=F3F3598EF8570BD6C9 //get this char[10]--------------------------------------------------------now ,i Hypothesis you know char[10]=[F3598EF8570BD6C9],how do you cacl :char [10]={7A D0 07 71 DE 82 5F 40 AA 13} form C language?i was uesd vc++6.0 .thanks all.please give me some Suggestions ETC. Edited May 29, 2014 by diskgetor
Nemo Posted May 30, 2014 Posted May 30, 2014 Reverse the code...(add to sub .. etc in reverse.. little brute forcing with the xors though..
UniSoft Posted May 31, 2014 Posted May 31, 2014 Here is your algo in c unsigned int i; unsigned short k; unsigned char buf[] = {0x7A,0xD0,0x07,0x71,0xDE,0x82,0x5F,0x40,0xAA,0x13}; k = 0x8C7A; for (i = 0; i < sizeof(buf); i++) { k += buf[i] + buf[i] / 0x11; k += k / 0x11; } k = (k >> 3) ^ (k >> 8) ^ 0x86; for (i = 0; i < sizeof(buf); i++) { buf[i] ^= (unsigned char)k; } 5
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now