mirror of
https://github.com/C-Sto/BananaPhone
synced 2026-06-08 10:32:29 +00:00
35 lines
871 B
Go
35 lines
871 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
bananaphone "github.com/C-Sto/BananaPhone/pkg/BananaPhone"
|
|
)
|
|
|
|
func main() {
|
|
fmt.Println("modules!")
|
|
x, y, z := bananaphone.GetModuleLoadedOrder(0)
|
|
fmt.Printf("%x, %x %+v\n", x, y, z)
|
|
x, y, z = bananaphone.GetModuleLoadedOrder(1)
|
|
fmt.Printf("%x, %x %+v\n", x, y, z)
|
|
x, y, z = bananaphone.GetModuleLoadedOrder(2)
|
|
fmt.Printf("%x, %x %+v\n", x, y, z)
|
|
|
|
fmt.Println("end modules!")
|
|
fmt.Println(bananaphone.InMemLoads())
|
|
|
|
fmt.Printf("%+v\n", bananaphone.GetModuleLoadedOrderPtr(0))
|
|
fmt.Println("end modules!")
|
|
|
|
fmt.Println("how about some other modules?")
|
|
bpn, e := bananaphone.NewBananaPhoneNamed(bananaphone.AutoBananaPhoneMode, "kernel32.dll", `C:/WINDWS/System32/KERNEL32.DLL`)
|
|
if e != nil {
|
|
panic(e)
|
|
}
|
|
loc, err := bpn.GetFuncPtr("VirtualQueryEx")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
fmt.Printf("VirtualQueryEx: %x\n", loc)
|
|
}
|