GoXploit is a modular Go client for interacting with the Metasploit RPC API.
It includes a code generator that scrapes official documentation and produces strongly-typed API wrappers.
- RPC client for Metasploit
- Automatic method generation from Rapid7's API docs
- Easy integration with other Go projects
- Simple structure for extending or contributing
go get github.com/arisinghackers/goxploit
Authenticate and send a request
client := msfrpc.NewMsfRpcClient("your_password", "false", "your_username", "127.0.0.1", 55552, "/api")
token, err := client.MsfAuth()
if err != nil {
log.Fatalf("Auth error: %v", err)
}
fmt.Println("Token:", token)
response, err := client.AuthenticatedRequest([]any{"core.version"})
if err != nil {
log.Fatal(err)
}
fmt.Printf("Core Version: %+v\n", response)
Contributions are welcome. Please keep changes modular and follow idiomatic Go practices.