|
|
|
[求助]如何模拟 imul 。。计算方法。。求教
。。行了。谢谢楼上了。。让我明白 imul 的运算呢。 我都用 long 就好了。 long ll = ((long)0x00093516 * (long)0x14F8B589); |
|
[求助]如何模拟 imul 。。计算方法。。求教
long 在C#里面是64位有符号整数 我用 Int64 ll = 0x00093516 * 0x14F8B589; 结果也是一样。。不知道怎么回事 。。郁闷 |
|
[求助]如何模拟 imul 。。计算方法。。求教
不行呀。我测试了 eax = 14F8B589 esi = 00093516 imul esi 后 eax = ACC5F6C6 edx = C117 我的C#代码: long ll = 0x00093516 * 0x14F8B589; string s = Convert.ToString(ll, 2); Console.WriteLine("int64:{0} \n高32位:{1} \n低32位:{2}", Utils.x16(ll) , s.Substring(0, 32) , s.Substring(32)); return; 输出结果: int64:FFFFFFFFACC5F6C6 高32位:11111111111111111111111111111111 高32位是错误的 低32位:10101100110001011111011011000110 为什么我的 测试 输出的高 32位结果是 0xFFFFFFFF 呢。 |
|
|
|
直接执行 函数地址
终于可以了。。感谢楼上所有大虾们。。。我基础太差了。。。 不过加了 WINAPI 就有这个提示。。。编译器提示 不过程序可以正常运行。 __declspec(naked) WINAPI void test_ReadProcessMemory( HANDLE hProcess, LPCVOID lpBaseAddress, LPVOID lpBuffer, DWORD nSize, LPDWORD lpNumberOfBytesRead) Compiling... tcp.cpp d:\program files\vc6\myprojects\tcp\tcp.cpp(379) : warning C4518: 'void ' : storage-class or type specifier(s) unexpected here; ignored d:\program files\vc6\myprojects\tcp\tcp.cpp(379) : warning C4230: anachronism used : modifiers/qualifiers interspersed, qualifier ignored Linking... |
|
|
|
|
|
直接执行 函数地址
不知道为什么。。。 那个函数不好用。。。单次执行啥问题没有,,,但是我大量执行,问题就来了。。总是出错。。大家看看我那里没有写好。 大概执行 5次就会出错。。。 使用 test_ReadProcessMemory 大量执行的时候总出错,,,,但是用 ReadProcessMemory 就没问题。 vodi test_ReadProcessMemory( HANDLE hProcess, LPCVOID lpBaseAddress, LPVOID lpBuffer, DWORD nSize, LPDWORD lpNumberOfBytesRead) { __asm { mov edi,edi push ebp mov ebp,esp mov eax,ReadProcessMemory add eax,5 jmp eax } } void main() { char cc[0x1024] ; int tmpaddr = 0x400000; while(tmpaddr < 0x7FFFFFFF) { tmpaddr = tmpaddr + 0x1024; test_ReadProcessMemory((LPVOID)-1, (LPCVOID)tmpaddr, (LPVOID)&cc, 1024, 0); printf(" %x %x \n" , tmpaddr, &cc); } system("pause"); } |
|
直接执行 函数地址
运行提示错误。。。。。错误: 0x7C802200 指令引用的 0x0000010 内存。该内存不能为 written。 __declspec( naked ) void test( HANDLE hProcess, LPCVOID lpBaseAddress, LPVOID lpBuffer, DWORD nSize, LPDWORD lpNumberOfBytesRead) { __asm { mov eax,JRET push eax//压入返回地址 mov edi,edi push ebp mov ebp,esp mov eax,0x7C8021D5 jmp eax JRET: ret } } void main() { char cc[1024] ; ReadProcessMemory((LPVOID)-1, (LPVOID)0x400000 , &cc, 1024 , 0); test((LPVOID)-1, (LPVOID)0x400000, &cc, 0x10, 0); system("pause"); } |
|
[转帖]CodeFort.Professional.v1.6.2978.cracked-SND
真是好东西。。谢谢版版呢。 |
|
[转帖]CodeFort Free Edition 1.5.2309
新版本的很好用。 1.6 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值