Skip to content

akkuman/getsyscallid

Repository files navigation

GetSyscallID

get windows system call number dynamically, it doesn't need the system call table.

Try

download

go get github.com/akkuman/getsyscallid/cmd/getsyscallid

help

> ./getsyscallid.exe -help    
Usage of getsyscallid.exe:
  -proc string
        The name of the api name from ntdll.dll (default "NtCreateProcess")

run

> ./get.exe -proc NtCreateProcess
the syscall Number is: b9

As a package

package main

import (
	"flag"
	"fmt"

	"github.com/akkuman/getsyscallid"
)

func main() {
	flag.Parse()
	sysID, err := getsyscallid.GetID("NtCreateProcess")
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Printf("the syscall Number is: %x\n", sysID)
}

Reference

About

get windows system call number dynamically

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages