MatrixTM / PyRoxy

MIT License
42 stars 64 forks source link

Incorrect parsing results for proxies with username and password #17

Open trewqqwert opened 2 years ago

trewqqwert commented 2 years ago

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 https://github.com/MatrixTM/MHDDoS/issues/243#issuecomment-1066600371 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.