


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");
}
其实真正重要的不是为什么要学习,也不是钱不钱的。而是找到你自己喜欢研究的东西,因为热爱,你才能持久的研究,持久的学习。你哪怕喜欢健身,钓鱼,跳舞,只要你做到极致,不断打磨自己,该来的都会来,不来又能怎样?你完成了你自己,你有你的生命,你就有了你的春天。

































