timwhitez starred PigSyscall
2023-8-25 14:25:19 Author: github.com(查看原文) 阅读量:34 收藏

#include "PIGSyscall.hpp"

static auto& syscall = pigsyscall::syscall::get_instance();

#define NtAllocateVirtualMemory_Hashed  0x067D7D4F

int main() {

    void* allocation = nullptr;
    SIZE_T size = 0x1000;

    syscall.CallSyscall(NtAllocateVirtualMemory_Hashed,
        (HANDLE)-1,
        &allocation,
        0,
        &size,
        MEM_RESERVE | MEM_COMMIT,
        PAGE_READWRITE);


    getchar();
    
	return 0;
}

文章来源: https://github.com/evilashz/PigSyscall
如有侵权请联系:admin#unsafe.sh