|
|
|
[求助]如何利用crc32判断文件是否被改动?
可不可以把GetCrc32Str 和GetCRC32File 贴出来 CRC32,如果要对文件所有字节进行校验的话,就要把CRC32值存放在别的文件中,如果是对文件的局部代码和数据进行校验,可以把CRC32值放在不是校验的部份 |
|
[求助]如何利用crc32判断文件是否被改动?
是Delphi |
|
有关link链接共享数据段的问题
汗,原来还是没有解决.....眼花了,呵呵 哈哈,改成section:.bss,S后,生成的DLL文件多了一个.bss区块 调试程序,一切功能正常 再次感谢Immlep,不然俺就要带着一个错误答案跟一辈子了,呵 |
|
有关link链接共享数据段的问题
heihei... |
|
有关link链接共享数据段的问题
谢谢Immlep兄弟 汗,我很痛苦+郁闷,还是不行,该死的写入异常........ 你可不可以帮我把上面的代码编译下,然后传上来,我再来试试 .data hWnd dd ? hHook dd ? dwMessage dd ? szAscii db 4 dup (?) 这些数据设为共享 |
|
有关link链接共享数据段的问题
我的link的bat文件内容试过: d:\masm32\bin\LINK.EXE /subsystem:windows /Dll/section:.data?,S /DEF:HookDll.def /LIBPATH:"d:\masm32\lib" /OUT:"HookDll.dll" HookDll.obj d:\masm32\bin\LINK.EXE /subsystem:windows /Dll/section:.data,S /DEF:HookDll.def /LIBPATH:"d:\masm32\lib" /OUT:"HookDll.dll" HookDll.obj d:\masm32\bin\LINK.EXE /subsystem:windows /Dll/section:.bbs,S /DEF:HookDll.def /LIBPATH:"d:\masm32\lib" /OUT:"HookDll.dll" HookDll.obj 都会出现写入异常 但只要把section选项去掉,再调试程序,没有异常出现(不过功能没有实现) d:\masm32\bin\LINK.EXE /subsystem:windows /Dll/DEF:HookDll.def /LIBPATH:"d:\masm32\lib" /OUT:"HookDll.dll" HookDll.obj |
|
有关link链接共享数据段的问题
我用loadPE查看.data段的属性,有可写属性,但在程序里,就是会产生写入异常 |
|
|
|
有关link链接共享数据段的问题
编译成功了,但调用的时候,又出现了问题,这是源码,照着教程上写的 .386 .model flat,stdcall option casemap:none include WINDOWS.INC include user32.inc include kernel32.inc includelib kernel32.lib includelib user32.lib .data? hInstance dd ? .data hWnd dd ? hHook dd ? dwMessage dd ? szAscii db 4 dup (?) .code DllEntry proc _hInstance,_dwReason,_dwReserved push _hInstance pop hInstance mov eax,TRUE ret DllEntry endp HookProc proc _dwCode,_wParam,_lParam LOCAL @szKeyState[256]:byte invoke CallNextHookEx,hHook,_dwCode,_wParam,_lParam invoke GetKeyboardState,VK_SHIFT mov @szKeyState+VK_SHIFT,al mov ecx,_lParam shr ecx,16 invoke ToAscii,_wParam,ecx,addr @szKeyState,addr szAscii,0 mov byte ptr szAscii[eax],0 invoke SendMessage,hWnd,dwMessage,dword ptr szAscii,NULL xor eax,eax ret HookProc endp InstallHook proc _hWnd,_dwMessage push _hWnd pop hWnd push _dwMessage pop dwMessage invoke MessageBox,hWnd,NULL,NULL,MB_OK invoke SetWindowsHookEx,WH_KEYBOARD,addr HookProc,hInstance,NULL mov hHook,eax invoke MessageBox,hWnd,NULL,NULL,MB_OK ret InstallHook endp UninstallHook proc invoke UnhookWindowsHookEx,hHook ret UninstallHook endp end DllEntry 我用OD跟踪了调用InstallHook涵数 发现 InstallHook proc _hWnd,_dwMessage push _hWnd pop hWnd push _dwMessage pop dwMessage 这几条语句中的出栈指令产生了写入异常 这该怎么办呢? |
|
[求助]汇编高手请进!
呵呵,谢谢指正 |
|
|
|
[求助]汇编高手请进!
我也是菜鸟 第一个问题,俺就写个比较笨的方面(好的方法我还不会,呵呵 xor al,al ;先把AX的低八位清0 shr ax,4 ;把ah,的低4位移到al的高4位 mov bl,al ;al中的值传给bl shr ax,8 ;把ah中的高4位移入al的底4位中 or al,bl ;或运算之后,al中的高4位是ah低4位的值,al中的低4位是ah高4位的值 shl ax,8 ;把al的值移入ah,就得到结果了 |
|
问个有关测试涵数WaitForSingleObject的问题
用罗文彬先生汇编教程的兄弟们注意了 第:469页 有关WaiForSingleObject涵数测试对为 .进程对像 ---如果进程结束,状态为"复位" .线程对像 ---如果线程结束,状态为"复位" 第:504页 当进程结束时:系统做以下工作 .... 进程及进程中所有线程的状态被改为"置位状态",以便让WaitForSingleObject涵数正确检测 以上两种,不知道哪一种才是正确的. |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值