Skip to content

Proxies

tester2024 edited this page Oct 27, 2026 · 2 revisions

Proxies

MHDDoS uses PyRoxy for proxy parsing, checking, and socket creation. Proxy files live in files/proxies/.

Tip

A few low-latency proxies are usually better than thousands of dead ones. Check the list with PROXYCHECK before a long run.

Proxy types

Value Type Notes
0 All Uses every provider in config.json
1 HTTP CONNECT or absolute-form requests
4 SOCKS4 TCP only
5 SOCKS5 TCP, with optional authentication
6 Random Picks HTTP, SOCKS4, or SOCKS5 per run

File format

One proxy per line:

<type>://<host>:<port>
<type>://<host>:<port>:<username>:<password>

Examples:

http://203.0.113.10:8080
socks4://203.0.113.11:1080
socks5://203.0.113.12:1080:user:pass

Lines with a bare host:port are accepted by the parser and treated as the selected type.

Where files live

files/proxies/http.txt
files/proxies/socks4.txt
files/proxies/socks5.txt
files/proxies/my-list.txt

The CLI takes a bare filename, not a path:

python3 start.py GET https://example.com 0 100 http.txt 10 60

http.txt resolves to files/proxies/http.txt. Subdirectories and absolute paths are rejected.

Automatic download

When the requested file does not exist, MHDDoS:

  1. reads proxy-providers from config.json;
  2. downloads each provider that matches the selected type;
  3. checks every proxy against a test URL;
  4. writes the working proxies to the file.

The default config contains providers for SOCKS4, SOCKS5, and HTTP. Edit config.json to add your own.

{
  "proxy-providers": [
    {
      "type": 5,
      "url": "https://example.com/socks5.txt",
      "timeout": 5
    }
  ]
}

A provider entry needs type, url, and optionally timeout (seconds). Invalid entries are skipped with a log message.

Checking a list

Use the tools console:

python3 start.py TOOLS

Then run PROXYCHECK and give it a filename. It prints how many proxies work and shows up to 20 working entries.

The check request goes to http://httpbin.org/get. Replace that URL in code if you need a different test endpoint.

Layer 4 support

Only these Layer 4 methods accept proxies:

MINECRAFT, MCBOT, TCP, CPS, CONNECTION
python3 start.py TCP 192.0.2.10:80 100 60 5 socks5.txt

Amplification methods do not use proxies. They need raw sockets and a reflector file.

Layer 7 support

All Layer 7 methods accept proxies. The proxy is used for the TCP connection; HTTPS is wrapped after the proxy connection is open.

Notes

  • Proxy speed matters more than proxy count. A few low-latency proxies often outperform thousands of dead ones.
  • Rotating proxies are chosen per connection, not per request.
  • A proxy with authentication must use the user:pass form shown above.
  • If the proxy list is empty, the run continues without proxies instead of failing.
  • IP rotation inside a single request is not supported.

Clone this wiki locally