Skip to content

Utility Packages

Jacob Paullus edited this page Apr 17, 2026 · 1 revision

Utility Packages

pkg/transport - Proxy-Aware TCP Dialer

TCP dialer that supports proxychains via CGO libc_dial interception. All protocol clients use this dialer for transparent proxy support.

func (d *Dialer) Dial(network, address string) (net.Conn, error)

The dialer uses CGO to call libc's connect(), enabling LD_PRELOAD-based interception by proxychains.

pkg/structure - Binary Serialization

Helpers for little-endian and big-endian binary packing/unpacking of Go structs.

func PackLE(v interface{}) ([]byte, error)
func UnpackLE(data []byte, v interface{}) error

func PackBE(v interface{}) ([]byte, error)
func UnpackBE(data []byte, v interface{}) error

pkg/utf16le - UTF-16LE String Encoding

UTF-16 Little-Endian encoding and decoding utilities used throughout Windows protocol implementations.

pkg/ntfs - NTFS Filesystem Parser

Offline NTFS filesystem parser for reading files directly from disk images or raw NTFS volumes.

pkg/tds - SQL Server TDS Protocol

TDS (Tabular Data Stream) client for Microsoft SQL Server. Supports SQL authentication, Windows (NTLM) authentication, and Kerberos authentication.

pkg/mqtt - MQTT Protocol Client

func NewConnection(host string, port int, useSSL bool) (*Connection, error)
func (c *Connection) Connect(clientID, username, password string) error

Clone this wiki locally