Skip to main content

Overview

The configuration endpoints allow you to retrieve and update the server’s proxy list and user agent list. These configurations are used for all attacks to rotate proxies and randomize user agents.
Configuration data is transmitted as base64-encoded strings to safely handle newlines and special characters in proxy URLs and user agent strings.

GET /configuration

Retrieve the current proxy and user agent configuration.

Request

No parameters required.

Response

string
required
Base64-encoded string containing the proxies file content (one proxy per line)
string
required
Base64-encoded string containing the user agents file content (one user agent per line)

Example Request

Example Response

Decoding Configuration

To decode the base64 strings:
Or using Node.js:

POST /configuration

Update the server’s proxy and user agent configuration.

Request Body

string
Base64-encoded string containing proxy list (one per line). If omitted, proxies are not updated.
string
Base64-encoded string containing user agent list (one per line). If omitted, user agents are not updated.

Proxy Format

Proxies should be formatted as:

User Agent Format

User agents should be one per line:

Response

Returns 200 OK with body "OK" on success.

Example Request

Example with JavaScript

Example with Node.js


Socket.IO Events

While configuration is managed via REST endpoints, the Socket.IO connection provides real-time feedback about proxy usage during attacks.

startAttack Event

When starting an attack, the server automatically filters and applies the appropriate proxies based on the attack method.
string
required
Target URL or address (e.g., http://example.com or 127.0.0.1:25565)
string
required
Attack method identifier (from /attacks endpoint)
integer
required
Attack duration in seconds
integer
required
Delay between packets in milliseconds
integer
required
Size of each packet in bytes
integer
Number of concurrent threads (defaults to CPU count if omitted or 0)

Example

stats Event

The server emits statistics every second during an attack, including proxy count.
integer
Packets per second in the last interval
integer
Total packets sent since attack start
integer
Number of proxies being used for this attack
string
Log message (if any)

Example

attackAccepted Event

Confirms attack started successfully and reports how many proxies are being used.
boolean
Always true when attack is accepted
integer
Number of proxies being used

Example

attackError Event

Sent when attack cannot start (e.g., no proxies available).
string
Error message describing why the attack failed

Example

stopAttack Event

Manually stop the current attack.

Implementation Details

The configuration endpoints are implemented in /cmd/mmb-server/main.go:188-217:
Configuration changes take effect for new attacks only. Running attacks continue using the proxies and user agents that were active when they started.
If you provide an empty string for proxies or uas in the POST request, that configuration will not be updated. Only non-empty values trigger updates.