Sunday, February 10, 2008

Verdi/Debussy Crack

(gdb) break snsCheckOut
Breakpoint 1 at 0xafc80bc
(gdb) disassemble 0xafc80bc
Dump of assembler code for function snsCheckOut:
0x0afc80bc : ? ? push ? %ebp
0x0afc80be : ? ? mov ? ?%esp,%ebp
0x0afc80bf : ? ? push ? %edi
0x0afc80c0 : ? ? push ? %esi
0x0afc80c1 : ? ? push ? %ebx
0x0afc80c2 : ? ? sub ? ?$0x342c,%esp
0x0afc80c8 : ? ?call ? 0xafc80cd
0x0afc80cd : ? ?pop ? ?%ebx
0x0afc80ce : ? ?add ? ?$0x1722953,%ebx
0x0afc80d4 : ? ?mov ? ?0x34(%ebp),%esi
0x0afc80d7 : ? ?mov ? ?0x18(%ebp),%al
0x0afc80da : ? ?mov ? ?%al,0xffffcbd3(%ebp)

55 89 e5 57 56 53 81 ec 2c 34 00 00
替换成
31 c0 c3 57 56 53 81 ec 2c 34 00 00
替换时0x342c 变成2c 34
检验是否成功:
(gdb) break snsCheckOut
Breakpoint 1 at 0xafc80bc
(gdb) disassemble 0xafc80bc
Dump of assembler code for function snsCheckOut:
0x0afc80bc : ? ? xor ? ?%eax,%eax

0x0afc80be : ? ? ret
0x0afc80bf : ? ? push ? %edi
0x0afc80c0 : ? ? push ? %esi
0x0afc80c1 : ? ? push ? %ebx
0x0afc80c2 : ? ? sub ? ?$0x342c,%esp

No comments: