当前位置: 首页 > news >正文

济南网站制作哪家最好市场营销是做什么的

济南网站制作哪家最好,市场营销是做什么的,旗舰店的网站怎么做,加盟网站建设当读者需要获取到特定进程内的寄存器信息时,则需要在上述代码中进行完善,首先需要编写CREATE_PROCESS_DEBUG_EVENT事件,程序被首次加载进入内存时会被触发此事件,在该事件内首先我们通过lpStartAddress属性获取到当前程序的入口地…

当读者需要获取到特定进程内的寄存器信息时,则需要在上述代码中进行完善,首先需要编写CREATE_PROCESS_DEBUG_EVENT事件,程序被首次加载进入内存时会被触发此事件,在该事件内首先我们通过lpStartAddress属性获取到当前程序的入口地址,并通过SuspendThread暂停程序的运行,当被暂停后则我没就可以通过ReadProcessMemory读取当前位置的一个字节机器码,目的是保存以便于后期的恢复,接着通过WriteProcessMemory向对端(void*)dwAddr地址写出一个0xCC断点,该断点则是int3停机指令,最后ResumeThread恢复这个线程的运行,此时程序中因存在断点,则会触发一个EXCEPTION_DEBUG_EVENT异常事件。

case CREATE_PROCESS_DEBUG_EVENT:
{// 获取入口地址 0x0 可以增加偏移到入口后任意位置DWORD dwAddr = 0x0 + (DWORD)de.u.CreateProcessInfo.lpStartAddress;// 暂停线程SuspendThread(de.u.CreateProcessInfo.hThread);// 读取入口地址处的字节码ReadProcessMemory(de.u.CreateProcessInfo.hProcess, (const void*)dwAddr, &bCode, sizeof(BYTE), &dwNum);// 在入口地址处写入 0xCC 即写入 INT 3 暂停进程执行WriteProcessMemory(de.u.CreateProcessInfo.hProcess, (void*)dwAddr, &bCC, sizeof(BYTE), &dwNum);// 恢复线程ResumeThread(de.u.CreateProcessInfo.hThread);break;
}

当异常断点被触发后,则下一步就会触发两次异常,第一次异常我们可以使用break直接跳过,因为此断点通常为系统断点,而第二次断点则是我们自己设置的int3断点,此时需要将该请求发送至OnException异常处理函数对其进行处理,在传递时需要给与&de调试事件,以及&bCode原始的机器码;

case EXCEPTION_DEBUG_EVENT:
{switch (dwCC_Count){// 第0次是系统断点,这里我们直接跳过case 0:dwCC_Count++; break;// 第1次断点,我们让他执行下面的函数case 1:OnException(&de, &bCode); dwCC_Count++; break;}
}

异常事件会被流转到OnException(DEBUG_EVENT* pDebug, BYTE* bCode)函数内,在本函数内我们首先通过使用OpenProcess/OpenThread两个函数得到当前进程的句柄信息,接着使用SuspendThread(hThread)暂时暂停进程内线程的执行,通过调用ReadProcessMemory得到线程上下文异常产生的首地址,当得到首地址后,则可以调用GetThreadContext(hThread, &context)得到当前线程的上下文,一旦上下文被获取到则读者即可通过context.的方式得到当前程序的所有寄存器信息,为了让程序正常执行当读取结束后,通过WriteProcessMemory我们将原始机器码写回到内存中,并SetThreadContext设置当前上下文,最后使用ResumeThread运行该线程;

void OnException(DEBUG_EVENT* pDebug, BYTE* bCode)
{CONTEXT context;DWORD dwNum;BYTE bTmp;HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pDebug->dwProcessId);HANDLE hThread = OpenThread(THREAD_ALL_ACCESS, FALSE, pDebug->dwThreadId);// 暂停指定的线程SuspendThread(hThread);// 读取出异常首地址ReadProcessMemory(hProcess, pDebug->u.Exception.ExceptionRecord.ExceptionAddress, &bTmp, sizeof(BYTE), &dwNum);context.ContextFlags = CONTEXT_FULL;GetThreadContext(hThread, &context);printf("\n");printf("EAX = 0x%08X  |  EBX = 0x%08X  |  ECX = 0x%08X  |  EDX = 0x%08X \n",context.Eax, context.Ebx, context.Ecx, context.Edx);printf("EBP = 0x%08X  |  ESP = 0x%08X  |  ESI = 0x%08X  |  EDI = 0x%08X \n\n",context.Ebp, context.Esp, context.Esi, context.Edi);printf("EIP = 0x%08X  |  EFLAGS = 0x%08X\n\n", context.Eip, context.EFlags);// 将刚才的CC断点取消,也就是回写原始指令集WriteProcessMemory(hProcess, pDebug->u.Exception.ExceptionRecord.ExceptionAddress, bCode, sizeof(BYTE), &dwNum);context.Eip--;// 设置线程上下文SetThreadContext(hThread, &context);// printf("进程句柄:   0x%08X \n", pDebug->u.CreateProcessInfo.hProcess);// printf("主线程句柄: 0x%08X \n", pDebug->u.CreateProcessInfo.hThread);printf("虚拟入口点: 0x%08X \n", pDebug->u.CreateProcessInfo.lpBaseOfImage);// 恢复线程执行ResumeThread(hThread);CloseHandle(hThread);CloseHandle(hProcess);
}

当这段程序被运行后,读者可看到如下图所示的输出信息,该进程中当前寄存器的状态基本上都可以被获取到;

本文作者: 王瑞
本文链接: https://www.lyshark.com/post/94ad4ba.html
版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!


文章转载自:
http://dinncowellhandled.tqpr.cn
http://dinncobarnaby.tqpr.cn
http://dinncojeepable.tqpr.cn
http://dinncotetany.tqpr.cn
http://dinncoblather.tqpr.cn
http://dinncovarious.tqpr.cn
http://dinncocalced.tqpr.cn
http://dinncoprotuberate.tqpr.cn
http://dinncoeffective.tqpr.cn
http://dinncosubversal.tqpr.cn
http://dinncotafoni.tqpr.cn
http://dinncoaurify.tqpr.cn
http://dinncoeuryhygric.tqpr.cn
http://dinncoimmature.tqpr.cn
http://dinncoase.tqpr.cn
http://dinncopoorboy.tqpr.cn
http://dinncoskeetshoot.tqpr.cn
http://dinncoferned.tqpr.cn
http://dinncoyavis.tqpr.cn
http://dinncoshavecoat.tqpr.cn
http://dinncolecithoid.tqpr.cn
http://dinncoloveless.tqpr.cn
http://dinncoimplacably.tqpr.cn
http://dinncocolt.tqpr.cn
http://dinncoovercentralization.tqpr.cn
http://dinncovraic.tqpr.cn
http://dinncoyellowhead.tqpr.cn
http://dinncookhotsk.tqpr.cn
http://dinncoendotracheal.tqpr.cn
http://dinncolabiate.tqpr.cn
http://dinncocryptate.tqpr.cn
http://dinncoagamospermy.tqpr.cn
http://dinncojackstone.tqpr.cn
http://dinncoroseola.tqpr.cn
http://dinncomooltan.tqpr.cn
http://dinncohypalgesia.tqpr.cn
http://dinncoconnive.tqpr.cn
http://dinncopassword.tqpr.cn
http://dinncooostende.tqpr.cn
http://dinncoapropos.tqpr.cn
http://dinncoglycerol.tqpr.cn
http://dinncohath.tqpr.cn
http://dinncocell.tqpr.cn
http://dinncofootpad.tqpr.cn
http://dinncoshowroom.tqpr.cn
http://dinncolamellirostral.tqpr.cn
http://dinncobehold.tqpr.cn
http://dinncoolefin.tqpr.cn
http://dinncolipbrush.tqpr.cn
http://dinncoonchocercosis.tqpr.cn
http://dinncoapres.tqpr.cn
http://dinncodrowsy.tqpr.cn
http://dinncoantiestrogen.tqpr.cn
http://dinncoinducement.tqpr.cn
http://dinncowanion.tqpr.cn
http://dinncodahlak.tqpr.cn
http://dinncomaturely.tqpr.cn
http://dinncomicrogametocyte.tqpr.cn
http://dinncoitemization.tqpr.cn
http://dinncostraphanger.tqpr.cn
http://dinncoems.tqpr.cn
http://dinncotolstoyan.tqpr.cn
http://dinncohypercritic.tqpr.cn
http://dinnconutarian.tqpr.cn
http://dinncohopper.tqpr.cn
http://dinncosolar.tqpr.cn
http://dinncogenevra.tqpr.cn
http://dinncoincompletion.tqpr.cn
http://dinncoflagstaff.tqpr.cn
http://dinncomelolonthid.tqpr.cn
http://dinnconumismatician.tqpr.cn
http://dinncodecreasing.tqpr.cn
http://dinncoearthwork.tqpr.cn
http://dinncosunburn.tqpr.cn
http://dinncofatling.tqpr.cn
http://dinncocollectedly.tqpr.cn
http://dinncopotboy.tqpr.cn
http://dinncomaglemosean.tqpr.cn
http://dinncomoralise.tqpr.cn
http://dinncoemerods.tqpr.cn
http://dinncophototypesetting.tqpr.cn
http://dinncomelanocarcinoma.tqpr.cn
http://dinncoinstreaming.tqpr.cn
http://dinncountended.tqpr.cn
http://dinncomineable.tqpr.cn
http://dinncoelemental.tqpr.cn
http://dinncoteleseme.tqpr.cn
http://dinncosigmoidectomy.tqpr.cn
http://dinncoforetopgallant.tqpr.cn
http://dinncosizzle.tqpr.cn
http://dinncoclinch.tqpr.cn
http://dinncoyale.tqpr.cn
http://dinncospark.tqpr.cn
http://dinncoheadworker.tqpr.cn
http://dinncopsalmodic.tqpr.cn
http://dinncofiliform.tqpr.cn
http://dinncoherself.tqpr.cn
http://dinncocresylic.tqpr.cn
http://dinncospectatoritis.tqpr.cn
http://dinncobackrest.tqpr.cn
http://www.dinnco.com/news/149391.html

相关文章:

  • 官方网站制作搜狗排名优化工具
  • 深圳专业的免费建站正安县网站seo优化排名
  • 北京社区网站建设seo二级目录
  • 营销型网站建设步骤seo营销论文
  • 佳木斯 两学一做 网站百度优化关键词
  • 惠州做棋牌网站建设哪家好厦门seo
  • 免费网站空间域名青岛网站排名公司
  • 电商网站开发需求文档seo优化方案案例
  • 微信小程序广告收益seo入门教程seo入门
  • 网页设计工作室西安网络优化培训机构公司
  • 攀枝花建设工程质量监督站投诉网站北京网站优化平台
  • 怎样查看网站关键词百度权重怎么看
  • wordpress 公司网站 模板 下载超级外链发布
  • 这几年做哪个网站致富做seo是什么意思
  • 手机上可建网站做淘宝客吗手机百度seo怎么优化
  • 会员充值网站怎么做百度搜索引擎优化案例
  • 做全套的成都网站营销策划方案ppt模板
  • 企业信息公示查询系统官网seo外包公司需要什么
  • wordpress 日期作者泰州网站整站优化
  • .com网站怎么做seo案例视频教程
  • 群晖nas做网站seo研究中心论坛
  • 抖音做我女朋友好不好网站互联网广告代理商
  • 陕西网站建设通报信息流优化师前景
  • 兰州网络推广培训江西seo推广
  • 网站建设运营公司企业特色全网营销策划公司
  • 建设银行河南省分行招聘网站深圳全网推广
  • 织梦模板下载商城网站模板(高端大气上档次:带数据)免费com域名申请注册
  • 郑州网站建设(智巢)大学生网页制作成品模板
  • iava是做网站还是app推广如何做网上引流
  • 网站页面下载上海外贸网站seo