Skip to content

go-msf v1.0.0 - Metasploit RPC Client for Go

Choose a tag to compare

@jolovicdev jolovicdev released this 05 Apr 14:53
· 29 commits to master since this release

The first stable release of go-msf — a modern, idiomatic Go client for the Metasploit Framework RPC API.

What's Included

  • Complete RPC Coverage — Core, modules, consoles, sessions, jobs, plugins, auth, and database operations
  • Context-Aware — Full context.Context support for timeouts and cancellation
  • Type-Safe API — Strongly typed requests/responses with validation
  • Concurrent-Safe — Designed for safe use across goroutines
  • Zero Dependencies — Minimal footprint (only msgpack for RPC encoding)

Installation

go get github.com/jolovicdev/go-msf

Quick Start

package main

import (
    "context"
    "fmt"
    "log"

    gomsf "github.com/jolovicdev/go-msf"
)

func main() {
    ctx := context.Background()
    
    client, err := gomsf.NewClient("password", 
        gomsf.WithSSL(false),
    )
    if err != nil {
        log.Fatal(err)
    }
    defer client.Logout(ctx)

    version, err := client.Core().Version(ctx)
    if err != nil {
        log.Fatal(err)
    }
    
    fmt.Printf("Connected to Metasploit %s\n", version.Version)
}

Documentation

Stability

This release follows Semantic Versioning. The API is now locked — only backward-compatible additions and patches will be made until v2.0.0.


Keywords: metasploit golang, penetration testing, security automation, red team tools, offensive security, rpc client, exploit framework