Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Binject/universal
/ functions
Functions
46 in github.com/Binject/universal
⨍
Functions
46
◇
Types & classes
10
↓ 18 callers
Function
put32be
(b []byte, x uint32)
codesign_darwin.go:185
↓ 12 callers
Method
LoadLibrary
LoadLibrary - loads a library into this process from the given buffer
universal.go:21
↓ 12 callers
Function
NewLoader
NewLoader - returns a new instance of a Loader
universal.go:16
↓ 8 callers
Method
Call
Call - call a function in a loaded library
loader_linux.go:64
↓ 4 callers
Method
Call
Call - call a function in a loaded library
loader_darwin.go:367
↓ 4 callers
Method
FindProc
FindProc - returns the address of the given function from the given library
universal.go:33
↓ 4 callers
Function
put64be
(b []byte, x uint64)
codesign_darwin.go:186
↓ 4 callers
Function
put8
(b []byte, x uint8)
codesign_darwin.go:187
↓ 3 callers
Method
FindProc
FindProc - returns the address of the given function in this library
universal.go:44
↓ 2 callers
Function
Size
Size computes the size of the code signature. id is the identifier used for signing (a field in CodeDirectory blob, which has no significance in ad-ho
codesign_darwin.go:193
↓ 2 callers
Function
isPtrValid
(p uintptr)
loader_darwin.go:314
↓ 2 callers
Function
isSierra
()
loader_darwin.go:29
↓ 2 callers
Function
puts
(b, s []byte)
codesign_darwin.go:188
↓ 2 callers
Function
virtualAlloc
(addr uintptr, size, allocType, protect uint32)
loader_windows.go:123
↓ 1 callers
Method
Call
Call - call a function in a loaded library cribbed from: https://golang.org/src/Syscall/dll_windows.go On amd64, Call can pass and return floating-p
loader_windows.go:147
↓ 1 callers
Function
CopySections
CopySections - writes the sections of a PE image to the given base address in memory
loader_windows.go:74
↓ 1 callers
Function
LoadLibraryDlopen
LoadLibraryDlopen - loads a single library using dlopen and resolves all exported symbols using dlsym. This function writes to a temporary file and th
loader_darwin.go:164
↓ 1 callers
Function
LoadLibraryImpl
LoadLibraryImpl - loads a single library to memory, without trying to check or load required imports
loader_linux.go:15
↓ 1 callers
Function
Sign
Sign generates an ad-hoc code signature and writes it to out. out must have length at least Size(codeSize, id). data is the file content without the s
codesign_darwin.go:208
↓ 1 callers
Function
findMacho
(addr uintptr, increment uint32)
loader_darwin.go:322
↓ 1 callers
Function
findMachoPtr
(addr uintptr)
loader_darwin.go:343
↓ 1 callers
Function
machoCodeSign
machoCodeSign - sign the macho file This code has been borrowed from https://github.com/golang/go/blob/master/src/cmd/internal/codesign/codesign.go
codesign_darwin.go:276
↓ 1 callers
Method
put
(out []byte)
codesign_darwin.go:84
↓ 1 callers
Method
put
(out []byte)
codesign_darwin.go:99
↓ 1 callers
Method
put
(out []byte)
codesign_darwin.go:133
↓ 1 callers
Function
readCString
(pathFileOffset uint64)
loader_darwin.go:300
↓ 1 callers
Function
syscallSharedRegionCheckNp
()
loader_darwin.go:20
Function
DllMain
test/src/TestDLL/TestDLL/dllmain.cpp:4
Function
FindCodeSigCmd
(f *macho.File)
codesign_darwin.go:168
Function
LoadLibraryImpl
LoadLibraryImpl - loads a single library to memory, without trying to check or load required imports
loader_darwin.go:45
Function
LoadLibraryImpl
LoadLibraryImpl - loads a single library to memory, without trying to check or load required imports
loader_windows.go:24
Function
Runme
test/src/main_dll/main.cpp:4
Function
Runme
Test function
test/src/TestDLL/TestDLL/Test.cpp:6
Function
Test_Darwin_arm64_1
(t *testing.T)
darwin_test.go:42
Function
Test_Darwin_arm64_2
(t *testing.T)
darwin_test.go:79
Function
Test_DyldToBundle_arm64_1
are we on a 32bit or 64bit system?
darwin_test.go:18
Function
Test_Linux_1
(t *testing.T)
linux_test.go:13
Function
Test_Linux_2
(t *testing.T)
linux_test.go:41
Function
Test_Windows_MSVC_1
are we on a 32bit or 64bit system?
windows_test.go:18
Function
Test_Windows_WrongArch_4
(t *testing.T)
windows_test.go:153
Function
Test_Windows_gcc_2
(t *testing.T)
windows_test.go:61
Function
Test_Windows_gcc_3
(t *testing.T)
windows_test.go:93
Function
Test_Windows_gcc_4
(t *testing.T)
windows_test.go:125
Function
main
()
examples/linux_example/main.go:12
Function
main
()
examples/windows_example/main.go:15
Function
main
()
examples/darwin_example/main.go:12