mirror of
https://github.com/almounah/superdeye
synced 2026-06-06 15:14:30 +00:00
18 lines
608 B
Go
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
|
|
}
|