MatrixTM / MHDDoS

Best DDoS Attack Script Python3, (Cyber / DDos) Attack With 56 Methods
MIT License
12.49k stars 2.6k forks source link

[BUG Report]:Issue with open_socket Method: proto Parameter Defaults to -1 Causing Problems with Proxy Usage #518

Closed 130347665 closed 9 months ago

130347665 commented 9 months ago

Version

2.4 (Default)

Which section is the problem?

L7 (DDoS Attack Layer 7)

Please complete the following information

- OS: [debian 18]
- Installed Requirements Version [PyRoxy1.0b5]
- Python Version [3.6.9]

What happened (Describe the bug) ?

Description: I found a problem in the open_socket method of a Python application. The method is defined as follows:

def open_socket(self, family=AF_INET, type=SOCK_STREAM, proto=-1, fileno=None):
    return ProxySocket(self, family, type, proto, fileno)

The default value of the proto parameter is set to -1. When this method is used with proxies, this default setting causes operational problems. The proxy settings seem to require that the parameter be set to 0 for proper operation.

Screenshots

No

Please provide a link to a minimal reproduction of the bug

No response

Relevant log output

[14:28:10 - DEBUG] Target: xxx.xxx.xxx.xx, Port: 80, Method: GET PPS: 0k, BPS: 0 MB / 0%

Additional context

def open_socket(self, family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None):
    return ProxySocket(self, family, type, proto, fileno)

After changing proto to 0, the proxy works fine.

Your code

def open_socket(self, family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None):
    return ProxySocket(self, family, type, proto, fileno)