
1年前更新265次阅读

1年前更新237次阅读

1年前更新206次阅读

1年前更新151次阅读

1年前更新217次阅读

1年前更新195次阅读

1年前更新216次阅读

1年前更新279次阅读

1年前更新323次阅读




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");
}

1年前更新261次阅读

1年前更新249次阅读

1年前更新216次阅读

1年前更新422次阅读

2年前发布318次阅读

2年前发布175次阅读

2年前发布216次阅读

2年前发布229次阅读

2年前发布420次阅读
















