Overview
Miku Miku Beam uses TOML configuration files to manage settings, proxy lists, and user agent strings. Configuration can be specified via the--config flag or by using default values.
Configuration File
Create a TOML file with your preferred settings:config.toml
Configuration Options
Path to the file containing proxy server addresses. Can be absolute or relative to the working directory.
Path to the file containing user agent strings for HTTP attacks. One user agent per line.
Port number for the web server to listen on. Only used by
mmb-server.CORS allowed origin for the web API. Set to your frontend URL for development or production deployment.
Using Configuration Files
CLI Usage
Specify a configuration file when running attacks:Server Usage
The server automatically looks for a configuration file. You can specify a custom path programmatically, but the binary currently uses default config loading.If no configuration file is specified or the file is not found, Miku Miku Beam uses default values.
Proxy Configuration
Proxies are essential for distributed attacks and IP protection. Configure them in a text file specified byproxies_file.
Proxy File Format
The proxy file (data/proxies.txt by default) contains one proxy per line:
data/proxies.txt
Proxy Format Rules
Protocol
Supported protocols:
http, https, socks4, socks5If no protocol is specified, http is assumed.Proxy Filtering by Attack Method
Different attack methods support different proxy protocols:http_flood
http_flood
Supported protocols: HTTP, HTTPS, SOCKS4, SOCKS5All proxy types work with standard HTTP flood attacks.
http_bypass
http_bypass
Supported protocols: HTTP, HTTPS, SOCKS4, SOCKS5All proxy types work with HTTP bypass attacks.
http_slowloris
http_slowloris
Supported protocols: SOCKS4, SOCKS5 onlySlowloris requires SOCKS proxies for persistent connections.
tcp_flood
tcp_flood
Supported protocols: SOCKS4, SOCKS5 onlyTCP-level attacks require SOCKS proxies.
minecraft_ping
minecraft_ping
Supported protocols: SOCKS4, SOCKS5 onlyMinecraft attacks require SOCKS proxies.
Miku Miku Beam automatically filters proxies based on the selected attack method. Incompatible proxies are silently ignored.
Example Proxy Configurations
User Agent Configuration
User agent strings randomize HTTP requests to avoid detection. Configure them in the file specified byuser_agents_file.
User Agent File Format
The user agent file (data/uas.txt by default) contains one user agent per line:
data/uas.txt
User Agent Best Practices
Use Recent Versions
Keep user agents up-to-date with current browser versions
Mix Desktop & Mobile
Include both desktop and mobile user agents for variety
Avoid Rare Strings
Stick to common browsers to blend in with normal traffic
Add Custom Agents
Include API clients or tools relevant to your testing
Path Resolution
Paths in the configuration file can be absolute or relative:- Relative Paths
- Absolute Paths
Relative to the current working directory:If you run
mmb from /home/user/mmb, it will look for /home/user/mmb/data/proxies.txt.Server Configuration
Port Configuration
Change the web server port:http://localhost:8080.
Allowed Origin
Configure CORS for frontend development:Complete Configuration Example
config.toml
Environment Variables
Some settings can be controlled via environment variables:Server log format. Set to
json for structured logs.Allow server to run attacks without proxies.
Default Values
If no configuration file is provided, Miku Miku Beam uses these defaults:Troubleshooting
Configuration File Not Found
If you specify--config but the file doesn’t exist, Miku Miku Beam falls back to default values. No error is raised.
Proxy File Missing
--no-proxy flag.
Invalid Proxy Format
Badly formatted proxies are silently skipped. Check your proxy file if you see fewer proxies than expected:User Agent File Missing
If the user agent file doesn’t exist, attacks may proceed with empty or default user agents. This is not fatal but reduces effectiveness.Best Practices
Regular Updates
Regularly update your proxy and user agent lists:
- Remove dead proxies
- Add new working proxies
- Update user agents to match current browser versions