Skip to main content

Overview

The Miku Miku Beam CLI (mmb) provides a powerful command-line interface for launching network stress testing attacks. It supports multiple attack methods, proxy configurations, and customizable parameters.

Installation

After building the project, the mmb binary will be available in the bin/ directory:

Basic Syntax

Attack Command

The primary command for launching attacks is attack.

Syntax

Attack Methods

Miku Miku Beam supports the following attack methods:

http_flood

Standard HTTP flood attack using GET/POST requests

http_bypass

HTTP attack designed to bypass basic protections

http_slowloris

Slowloris attack that keeps connections open

tcp_flood

TCP-level flood attack

minecraft_ping

Minecraft server ping flood attack

Available Flags

int
default:"60"
Duration of the attack in seconds
int
default:"500"
Delay between packets in milliseconds
int
default:"512"
Size of each packet in bytes
int
default:"0"
Number of threads to use (0 = number of CPU cores)
boolean
default:"false"
Allow running attacks without proxies (not recommended)
boolean
default:"false"
Show detailed attack logs including individual packet information

Global Flags

string
Path to configuration file (TOML format)

Examples

Basic HTTP Flood Attack

This launches a 60-second HTTP flood attack (default duration) against example.com using all available proxies.

Custom Duration and Delay

Runs for 120 seconds with 200ms delay between packets.

High-Intensity Attack

Launches a TCP flood with:
  • 16 threads
  • 100ms packet delay
  • 1024-byte packets

Verbose Mode

Enables detailed logging showing individual packet information.

With Custom Configuration

Uses a custom configuration file for proxy and user agent settings.

Without Proxies

Running without proxies exposes your real IP address. Only use --no-proxy for testing purposes.

Output Format

During an attack, the CLI displays real-time statistics:

Output Fields

string
Current time in HH:MM:SS format
int
Packets per second (current rate)
int
Total packets sent since attack started
int
Number of proxies being used

Verbose Output

With --verbose enabled, additional log information is displayed:

Stopping an Attack

Press Ctrl+C to gracefully stop an attack:
The attack will terminate immediately and release all resources.

Exit Codes

success
Attack completed successfully
error
Invalid command usage or arguments
error
Runtime error (e.g., no proxies available)

Proxy Requirements

Different attack methods support different proxy types:
Supports: HTTP, HTTPS, SOCKS4, SOCKS5
Supports: SOCKS4, SOCKS5 only
Supports: SOCKS4, SOCKS5 only
Supports: SOCKS4, SOCKS5 only
The CLI automatically filters proxies based on the attack method. If no compatible proxies are found, the attack will fail unless --no-proxy is specified.

Target Formats

Targets can be specified in various formats depending on the attack method:

Performance Tuning

Thread Configuration

By default, the CLI uses one thread per CPU core. Adjust for your system:
1

Low-end systems

Use fewer threads to avoid overwhelming the system:
2

High-end systems

Increase threads for maximum throughput:
3

Auto-detect (recommended)

Let the CLI use NumCPU automatically:

Packet Delay

Lower delay = higher attack intensity:
  • --delay 1000 (1 second) - Low intensity
  • --delay 500 (500ms) - Medium intensity (default)
  • --delay 100 (100ms) - High intensity
  • --delay 10 (10ms) - Maximum intensity
Very low delay values (< 50ms) may cause high CPU usage and system instability.

Troubleshooting

No Proxies Available

Solution: Either add proxies to your configuration file or use --no-proxy flag.

Unsupported Attack Method

If you specify an invalid method, Cobra will show available options:

Connection Refused

If the target is unreachable, individual packets will fail silently. Use --verbose to see connection errors.

Best Practices

Use Proxies

Always use proxies to protect your identity and distribute the load

Start Small

Begin with shorter durations and fewer threads to test your setup

Monitor Resources

Watch CPU and memory usage, especially with high thread counts

Legal Compliance

Only test systems you own or have explicit permission to test