最近在用wgdbg逆向MFC程序,windbg打开的程序一开始进去的时候是会停在ntdll.dll的0xcc也就是int 3处。之后一边查看栈一边step in和step out,希望能够结束程序的初始化流程,尽快到达程序入口点,当然对于有经验的师傅来说直接使用bp $exentry 就能够直接下断在程序入口点。但对于我这种小白来说,喜欢一步步调试,那么我们继续走起。很快啊,我们看到程序进到了一个函数:KiUserApcDispacher,在这个函数里面,我们又进入了,ZwContinue,step into 看看:之后又从ZwContinue跳到了KiFastSystemCall进入到这个系
2021-02-26132 字1 分钟
如何在ghidra里面使用hex的格式patch程序
如果是使用右键->Patch instruction的话可以用汇编语言来patch程序,但如果想直接修改hex,就需要打开bytes窗口并在bytes窗口里面点击上面的图标启用编辑模式。
编辑hex的时候可能会报错:
1Editing not allowed: Instruction exists at address xxxxxx
这个时候就需要右键-clear code bytes清楚code格式之后会变成问好的形状,这个时候就可以在bytes窗口里修改:
修改完之后再次disasamble就可以了。
2021-02-25652 字3 分钟
解决android的linux deploy下ping: localhost不通提示 Name or service not known,未知的名称或服务以及/etc/hosts不生效的问题
遇到了Can not connect to the Service chromedriver的问题,网上一查发现是localhost无法解析的问题Can not connect to the Service chromedriver的解决方法尝试ping了一下localhost,返回:
1localhost:未知的名称或服务
改成英文版ping了一下locaohost,返回
1localhost name or service not known
去/etc/hosts里面查了一下,发现文件正常:
12345678127.0.0.1 localhost linuxdeplo