https://github.com/arisinghackers/goxploit
Go client for Metasploit RPC with automatic method generation
https://github.com/arisinghackers/goxploit
go golang metasploit metasploit-framework msf msfrpc
Last synced: 3 months ago
JSON representation
Go client for Metasploit RPC with automatic method generation
- Host: GitHub
- URL: https://github.com/arisinghackers/goxploit
- Owner: arisinghackers
- Created: 2025-04-16T22:21:50.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-07T18:12:50.000Z (about 1 year ago)
- Last Synced: 2025-06-09T17:52:20.074Z (about 1 year ago)
- Topics: go, golang, metasploit, metasploit-framework, msf, msfrpc
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# goxploit
**GoXploit** is a modular Go client for interacting with the [Metasploit RPC API](https://docs.rapid7.com/metasploit/standard-api-methods-reference).
It includes a code generator that scrapes official documentation and produces strongly-typed API wrappers.
## Features
- RPC client for Metasploit
- Automatic method generation from Rapid7's API docs
- Easy integration with other Go projects
- Simple structure for extending or contributing
## Installation
```bash
go get github.com/arisinghackers/goxploit
```
## Usage
Authenticate and send a request
```go
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)
```
##### See /examples folder
## Contributing
Contributions are welcome. Please keep changes modular and follow idiomatic Go practices.