Skip to content

Incorrect parsing results for proxies with username and password  #17

@trewqqwert

Description

@trewqqwert

Hi Matrix Team,

I am a user of MHDDoS and I would like to use my private proxies requiring basic authentication. It seems that both ProxyUtiles.parseAllIPPort and ProxyUtiles.parseNoraml are returning incorrect results.

Example:
Input

http://1.2.3.4:5678@username:password

Syntax from MatrixTM/MHDDoS#243 (comment)
Output
parseAllIPPort returns None.
parseNoraml returns

{Proxy} http://1.2.3.4:80:5678@username:password
 country = {str} 'AU'
 host = {str} '1.2.3.4'
 password = {str} 'password'
 port = {int} 80
 type = {ProxyType} ProxyType.HTTP
 user = {str} '5678@username'

I am not an expert of regex. Could you kindly have a look at this issue please? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions