Apr
27
int 2eh 方式调用Native api
Posted in 网络安全, Author: 老周
小技巧。但是用的人好像不多。
例子: Windows 2000 下
- NtQuerySystemInformationNo = 0x97;
- _declspec(naked)
- NTSTATUS __stdcall PrivateNtQuerySystemInformation
- (IN SYSTEM_INFORMATION_CLASS,
- IN OUT PVOID,
- IN ULONG,
- OUT PULONG OPTIONAL)
- {
- _asm {
- mov eax, NtQuerySystemInformationNo
- lea edx, [esp+4]
- int 2Eh
- ret 10h
- }
- }
评论数量(0) | Add Comments
本文网址:http://www.6code.net/security/int-2eh-native-ap.html