Files
2024-12-04 17:27:38 -05:00

18 lines
608 B
Go

package superdeye
import (
"github.com/almounah/superdeye/internal/manalocator"
"github.com/almounah/superdeye/internal/superdsyscall"
"github.com/almounah/superdeye/internal/utils/helper"
)
func SuperdSyscall(syscallName string, argh ...uintptr) (NTSTATUS uint32, err error) {
ntdllAddress := helper.GetNTDLLAddress()
syscallTool, err := manalocator.LookupSSNAndTrampoline(syscallName, ntdllAddress)
if err != nil {
return 0, err
}
NTSTATUS = superdsyscall.ExecIndirectSyscall(uint16(syscallTool.Ssn), uintptr(syscallTool.SyscallInstructionAddress), argh...)
return NTSTATUS, nil
}