We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i want to load https://github.com/trustedsec/ELFLoader this program
package main import ( "github.com/Binject/universal" "io/ioutil" "log" "syscall" "unsafe" ) func main() { image, err := ioutil.ReadFile("libELFLoader.so") loader, err := universal.NewLoader() if err != nil { log.Fatal(err) } library, err := loader.LoadLibrary("main", &image) if err != nil { log.Fatal(err) } g, _ := syscall.BytePtrFromString("go") f, _ := ioutil.ReadFile("whoami.o") inDataBuff := uintptr(unsafe.Pointer(&f[0])) inDataSize := uintptr(uint64(len(f))) val, err := library.Call("ELFRunner", uintptr(unsafe.Pointer(g)), inDataBuff, inDataSize, 0, 0) if err != nil { //log.Fatal(err) } log.Printf("%+v\n", val) }
but didn't work
The text was updated successfully, but these errors were encountered:
You would have to modify it, taking a look at the source code I noticed that it uses: https://github.com/awgh/cppgo/blob/master/asmcall/cdecl/cdecl.go you can directly call it
Sorry, something went wrong.
No branches or pull requests
i want to load https://github.com/trustedsec/ELFLoader this program
but didn't work
The text was updated successfully, but these errors were encountered: