Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Neumenon/cowrie/llms.txt
Use this file to discover all available pages before exploring further.
What is the Cowrie CLI?
The Cowrie CLI is a command-line tool that provides easy access to Cowrie’s binary JSON encoding and decoding capabilities. It supports both Gen1 (lightweight, stdlib-only) and Gen2 (full-featured with ML extensions) codecs, along with optional compression.Installation
Build the CLI tool from source using Go:cowrie binary that you can move to your PATH:
Basic Usage
The Cowrie CLI has three main commands:- encode - Convert JSON to Cowrie binary format
- decode - Convert Cowrie binary back to JSON
- info - Display metadata about a Cowrie file
Quick Examples
Encode JSON to binary:Command Structure
Available Commands
| Command | Description |
|---|---|
encode | Encode JSON to Cowrie binary format |
decode | Decode Cowrie binary to JSON |
info | Display information about a Cowrie file |
help | Show usage information |
Codec Versions
Gen1 Codec
- Lightweight implementation
- Uses only Go standard library
- Fast and minimal dependencies
- Good for simple use cases
Gen2 Codec (Default)
- Full Cowrie v2 specification
- ML optimization support
- Compression options (gzip, zstd)
- Advanced features and extensions
--gen1 flag to explicitly use Gen1.
Common Workflows
Encode with Compression
Round-trip Pipeline
Inspect Before Decoding
Next Steps
- Encode Command - Learn about encoding options and compression
- Decode Command - Understand decoding and format detection
- Info Command - Explore metadata inspection features