matrixtm / pyroxy Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi @MHProDev
There is an error in regular expression introduced here:
1b04b6a#diff-a01222743d1dfacb6fd745ddfd48b854f2b481554ef39d9a289a1424bdacb29bR51
It has missed the "port" part.
Should be like this:
IPPort = compile("^((?:\d{1,3}\.){3}\d{1,3}):(\d{1,5})$")
Otherwise it breaks ProxyUtiles.parseAllIPPort()
method.
When create ProxySocket instance "OSError: [Errno 22] Invalid argument" exception raised but suppressed.
Some proxies are ignored because of check() failed.
chr(Random.rand_int(0, 1000)) for _ in range(length))
to
chr(Random.rand_int(0, 1000) for _ in range(length))
root@ubuntu-switzeland:~/mhddos_proxy/MHDDoS# python3 start.py get https://sberbank.ru 5 1000 socks5.txt 100 100
Traceback (most recent call last):
File "start.py", line 27, in
from PyRoxy import Proxy, ProxyChecker, ProxyType, ProxyUtiles
File "/usr/local/lib/python3.8/dist-packages/PyRoxy/init.py", line 13, in
from PyRoxy import GeoIP, Tools
File "/usr/local/lib/python3.8/dist-packages/PyRoxy/Tools/init.py", line 18
rand_char: Callable[[int], chr] = lambda length=16: chr(Random.rand_int(0, 1000)) for _ in range(length)
^
SyntaxError: invalid syntax
This error not because of PyProxy directly, but because of not rebuilted MHDDoS
hey sorry but can you put instructions on how to set pyroxy up I have no clue and I have been stuck on this bit for some time
$ python --version
Python 3.9.5
$ python -c "import PyRoxy"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/ubuntu/.virtualenvs/botnet-dds/lib/python3.9/site-packages/PyRoxy/__init__.py", line 13, in <module>
from PyRoxy import GeoIP, Tools
File "/home/ubuntu/.virtualenvs/botnet-dds/lib/python3.9/site-packages/PyRoxy/Tools/__init__.py", line 18
rand_char: Callable[[int], chr] = lambda length=16: chr(Random.rand_int(0, 1000)) for _ in range(length)
^
SyntaxError: invalid syntax
To be honest, it's difficult to understand what code is meant to be in that line. There is no usage of rand_char()
across all sources.
安装pyroxy失败,原因git报错,如何让下载git?
I reported an error when using it
setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
Traceback (most recent call last):
File "runner.py", line 12, in
from MHDDoS.start import ProxyManager, logger
File "/home/azureuser/mhddos_proxy/MHDDoS/start.py", line 27, in
from PyRoxy import Proxy, ProxyChecker, ProxyType, ProxyUtiles
File "/usr/local/lib/python3.8/dist-packages/PyRoxy/init.py", line 13, in
from PyRoxy import GeoIP, Tools
File "/usr/local/lib/python3.8/dist-packages/PyRoxy/Tools/init.py", line 18
rand_char: Callable[[int], chr] = lambda length=16: chr(Random.rand_int(0, 1000)) for _ in range(length)
^
SyntaxError: invalid syntax
Because of last commit in PyProxy: ffecf3f
How to make PyRoxy + asyncio open_connection work?
File "/usr/local/lib/python3.10/site-packages/PyRoxy/Tools/__init__.py", line 18
rand_char: Callable[[int], str] = lambda length=16: chr(Random.rand_int(0, 1000)) for _ in range(length))
^
SyntaxError: unmatched ')'
I can't download it
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.