

1个月前发布165次阅读
该帖子内容已隐藏


昨天更新1771次阅读
该帖子部分内容已隐藏


1个月前更新213次阅读
该帖子部分内容已隐藏


24天前发布58次阅读
该帖子部分内容已隐藏


5个月前发布213次阅读


3个月前发布42次阅读


1个月前发布27次阅读


7天前发布8次阅读


5个月前更新764次阅读


3个月前发布551次阅读


15天前更新753次阅读


5个月前更新80次阅读


1.写⼀段汇编代码,获取进程 ID
2.写⼀段汇编代码,获取线程 ID
3.写⼀段汇编代码,获取 PEB 地址
#include
#include
#include
using namespace std;
int main()
{
int pid, tid, ebpAddr;
__asm
{
mov eax, fs : [0x20]
mov ebx, fs : [0x24]
mov ecx, fs : [0x30]
mov pid, eax
mov tid, ebx
mov ebpAddr, ecx
}
cout << "pic is " << pid << endl;
cout << "tid is " << tid << endl;
cout << "ebp address is " << ebpAddr << endl;
_PEB* ptr = reinterpret_cast(ebpAddr);
cout << "debugged is " <BeingDebugged << endl;
system("pause");
}