Inplex-sys / cloudflare-uam-bypass

A working cloudflare uam bypass !!
GNU General Public License v3.0
34 stars 14 forks source link

Error #1

Closed andress134 closed 2 years ago

andress134 commented 2 years ago

Hello sir @inplex-sys im testing your script but some wrong

ocess Process-1: Traceback (most recent call last): File "/usr/local/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/usr/local/lib/python3.8/multiprocessing/process.py", line 108, in run self._target(*self._args, *self._kwargs) File "/usr/local/lib/python3.8/site-packages/undetected_chromedriver/dprocess.py", line 55, in _start_detached p = Popen([executable, args], stdin=PIPE, stdout=PIPE, stderr=PIPE, **kwargs) File "/usr/local/lib/python3.8/subprocess.py", line 854, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/local/lib/python3.8/subprocess.py", line 1583, in _execute_child and os.path.dirname(executable) File "/usr/local/lib/python3.8/posixpath.py", line 152, in dirname p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType

Inplex-sys commented 2 years ago

Can i get much lines of the error ?

andress134 commented 2 years ago

Can i get much lines of the error ?

Sure, that all, using python3.8 OS : i'm using debian

root@localhost:~/cloudflare-uam-bypass# python3.8 main.py https://botflare.club 1 cf.txt

      ╔╦╗╔═╗╦═╗╦╔═    ╦ ╦╔╦╗╦╦  ╦╔╦╗╦╔═╗╔═╗
       ║║╠═╣╠╦╝╠╩╗    ║ ║ ║ ║║  ║ ║ ║║╣ ╚═╗
      ═╩╝╩ ╩╩╚═╩ ╩    ╚═╝ ╩ ╩╩═╝╩ ╩ ╩╚═╝╚═╝
           simple attacks, simple programs

Process Process-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/local/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/site-packages/undetected_chromedriver/dprocess.py", line 55, in _start_detached
    p = Popen([executable, *args], stdin=PIPE, stdout=PIPE, stderr=PIPE, **kwargs)
  File "/usr/local/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/lib/python3.8/subprocess.py", line 1583, in _execute_child
    and os.path.dirname(executable)
  File "/usr/local/lib/python3.8/posixpath.py", line 152, in dirname
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType```

and here using python3.7

```js
root@localhost:~/cloudflare-uam-bypass# python3.7 main.py https://botflare.club 1 cf.txt

      ╔╦╗╔═╗╦═╗╦╔═    ╦ ╦╔╦╗╦╦  ╦╔╦╗╦╔═╗╔═╗
       ║║╠═╣╠╦╝╠╩╗    ║ ║ ║ ║║  ║ ║ ║║╣ ╚═╗
      ═╩╝╩ ╩╩╚═╩ ╩    ╚═╝ ╩ ╩╩═╝╩ ╩ ╩╚═╝╚═╝
           simple attacks, simple programs

Process Process-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/local/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/site-packages/undetected_chromedriver/dprocess.py", line 55, in _start_detached
    p = Popen([executable, *args], stdin=PIPE, stdout=PIPE, stderr=PIPE, **kwargs)
  File "/usr/local/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/local/lib/python3.7/subprocess.py", line 1436, in _execute_child
    executable = os.fsencode(executable)
  File "/usr/local/lib/python3.7/os.py", line 809, in fsencode
    filename = fspath(filename)  # Does type-checking of `filename`.
TypeError: expected str, bytes or os.PathLike object, not NoneType
^CException ignored in: <module 'threading' from '/usr/local/lib/python3.7/threading.py'>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 1281, in _shutdown
    t.join()
  File "/usr/local/lib/python3.7/threading.py", line 1032, in join
    self._wait_for_tstate_lock()
  File "/usr/local/lib/python3.7/threading.py", line 1048, in _wait_for_tstate_lock
    elif lock.acquire(block, timeout):
KeyboardInterrupt
Inplex-sys commented 2 years ago

You need to install google chrome on your debian server, chrome driver is using it

Inplex-sys commented 2 years ago
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt install ./google-chrome-stable_current_amd64.deb
andress134 commented 2 years ago
apt install ./google-chrome-stable_current_amd64.deb

Hmm now i get other error


Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "main.py", line 68, in Bypass
    driver = webdriver.Chrome(options=options)
  File "/usr/local/lib/python3.8/site-packages/undetected_chromedriver/v2.py", line 309, in __init__
    super(Chrome, self).__init__(
  File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 70, in __init__
    super(WebDriver, self).__init__(DesiredCapabilities.CHROME['browserName'], "goog",
  File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/chromium/webdriver.py", line 93, in __init__
    RemoteWebDriver.__init__(
  File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 268, in __init__
    self.start_session(capabilities, browser_profile)
  File "/usr/local/lib/python3.8/site-packages/undetected_chromedriver/v2.py", line 600, in start_session
    super(Chrome, self).start_session(capabilities, browser_profile)
  File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 359, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 424, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:38647
from chrome not reachable
Stacktrace:
#0 0x556f02631ee3 <unknown>
#1 0x556f020ff49f <unknown>
#2 0x556f020ee244 <unknown>
#3 0x556f0212610c <unknown>
#4 0x556f0211dc46 <unknown>
#5 0x556f02158f45 <unknown>
#6 0x556f02153163 <unknown>
#7 0x556f02128bfc <unknown>
#8 0x556f02129c05 <unknown>
#9 0x556f02663baa <unknown>
#10 0x556f02679651 <unknown>
#11 0x556f02664b05 <unknown>
#12 0x556f0267aa68 <unknown>
#13 0x556f0265905f <unknown>
#14 0x556f02695818 <unknown>
#15 0x556f02695998 <unknown>
#16 0x556f026b0eed <unknown>
#17 0x7fc62a8424a4 <unknown>```
Inplex-sys commented 2 years ago

Try to update the repo from github, i made a little update

andress134 commented 2 years ago

Try to update the repo from github, i made a little update

Same error. If im adding options.add_argument('--headless') no error but script still keep in loading tested on debian/ubuntu

andress134 commented 2 years ago

Try to update the repo from github, i made a little update

some changes, but still error, take a look This script dont send any valid request some wrong from urlparse, and ssl checker for conexion or idk

`Exception in thread Thread-1: Traceback (most recent call last): File "/usr/local/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/usr/local/lib/python3.7/threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "main.py", line 80, in Bypass driver.get('https://botflare.club') File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 436, in get self.execute(Command.GET, {'url': url}) File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 424, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: net::ERR_TUNNEL_CONNECTION_FAILED (Session info: headless chrome=96.0.4664.45) Stacktrace:

0 0x55a99f8b4ee3

1 0x55a99f382608

2 0x55a99f37ca4d

3 0x55a99f36e756

4 0x55a99f36f673

5 0x55a99f36ea22

6 0x55a99f36df35

7 0x55a99f36cd43

8 0x55a99f36d093

9 0x55a99f383fca

10 0x55a99f3e9c1f

11 0x55a99f3d6272

12 0x55a99f3e93bc

13 0x55a99f3d6163

14 0x55a99f3abbfc

15 0x55a99f3acc05

16 0x55a99f8e6baa

17 0x55a99f8fc651

18 0x55a99f8e7b05

19 0x55a99f8fda68

20 0x55a99f8dc05f

21 0x55a99f918818

22 0x55a99f918998

23 0x55a99f933eed

24 0x7f3be43094a4

[2021-12-05-07:51:00] New worker started [2021-12-05-07:51:03] New worker started [2021-12-05-07:51:06] New worker started [2021-12-05-07:51:09] New worker started [2021-12-05-07:51:12] New worker started [2021-12-05-07:51:15] New worker started [2021-12-05-07:51:16] Challenge bypassed successfully.`

andress134 commented 2 years ago

I made some more changes but still get error

raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=39915): Max retries exceeded with url: /session/bd25d5f33fb7acc12161104f53eaa749/execute/sync (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ffb543f9a58>: Failed to establish a new connection: [Errno 111] Connection refused'))

Inplex-sys commented 2 years ago

That's a bad proxy connection

andress134 commented 2 years ago

That's a bad proxy connection

Hmm, i think no because already tested with private proxies (paid) and also have removed proxy func and get same some wrong, because also requests are not sended the script can't verify url or some

Inplex-sys commented 2 years ago

What is the type of your proxies ?

andress134 commented 2 years ago

What is the type of your proxies ?

http/https paid proxies purchased from proxyscraper

Inplex-sys commented 2 years ago

Verify your proxies auth image

andress134 commented 2 years ago

Hmm, already i do it but still same what version of python google-chrome / chromedriver you used?

Inplex-sys commented 2 years ago

the last version

andress134 commented 2 years ago

the last version

Hmm, i dont know. Your default script just get errors But with my changes script starting, but still not working


Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/root/cloudflare-uam-bypass/main.py", line 67, in Bypass
    driver = webdriver.Chrome(options=options)
  File "/usr/local/lib/python3.9/site-packages/undetected_chromedriver/v2.py", line 309, in __init__
    super(Chrome, self).__init__(
  File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__
    super(WebDriver, self).__init__(DesiredCapabilities.CHROME['browserName'], "goog",
  File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/chromium/webdriver.py", line 93, in __init__
    RemoteWebDriver.__init__(
  File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 248, in __init__
    self.start_session(capabilities, browser_profile)
  File "/usr/local/lib/python3.9/site-packages/undetected_chromedriver/v2.py", line 600, in start_session
    super(Chrome, self).start_session(capabilities, browser_profile)
  File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 339, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 400, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 236, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:37304
from chrome not reachable
Stacktrace:
#0 0x7fc5b6e00ee3 (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff6f4ee2)
#1 0x7fc5b68ce49f (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff1c249e)
#2 0x7fc5b68bd169 (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff1b1168)
#3 0x7fc5b68f4d1f (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff1e8d1e)
#4 0x7fc5b68ecc46 (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff1e0c45)
#5 0x7fc5b6927f45 (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff21bf44)
#6 0x7fc5b6922163 (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff216162)
#7 0x7fc5b68f7bfc (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff1ebbfb)
#8 0x7fc5b68f8c05 (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff1ecc04)
#9 0x7fc5b6e32baa (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff726ba9)
#10 0x7fc5b6e48651 (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff73c650)
#11 0x7fc5b6e33b05 (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff727b04)
#12 0x7fc5b6e49a68 (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff73da67)
#13 0x7fc5b6e2805f (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff71c05e)
#14 0x7fc5b6e64818 (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff758817)
#15 0x7fc5b6e64998 (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff758997)
#16 0x7fc5b6e7feed (/root/.local/share/undetected_chromedriver/chromedriver (deleted)+0xffffffffff773eec)
#17 0x7fc5b5d614a4 <unknown>```
Inplex-sys commented 2 years ago

what did you change ?

Inplex-sys commented 2 years ago

Can you try the script on windows

andress134 commented 2 years ago

Can you try the script on windows

still not working

           simple attacks, simple programs
    ←[0m
←[38;5;220m[2021-12-06-04:09:31]←[0m←[38;5;2m New worker started←[0m
Exception in thread Thread-1 (Bypass):
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\threa
ding.py", line 1009, in _bootstrap_inner
    self.run()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\threa
ding.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Administrator\Desktop\cloudflare-uam-bypass-main\main.py", line
 72, in Bypass
    driver.get('https://google.com/')
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-
packages\undetected_chromedriver\v2.py", line 546, in get
    return asyncio.get_event_loop().run_until_complete(_get())
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\async
io\events.py", line 656, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'Thread-1 (Bypass)'.
Exception ignored in: <function Chrome.__del__ at 0x00000049CA3DB7F0>
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-
packages\undetected_chromedriver\v2.py", line 647, in __del__
    self.quit()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-
packages\undetected_chromedriver\v2.py", line 604, in quit
    self.service.process.kill()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\subpr
ocess.py", line 1568, in terminate
    _winapi.TerminateProcess(self._handle, 1)
OSError: [WinError 6] The handle is invalid
Inplex-sys commented 2 years ago

try pip3 show undetected-chromedriver in your windows machine

andress134 commented 2 years ago

pip3 show undetected-chromedriver

C:\Users\Administrator\Desktop\cloudflare-uam-bypass-main>pip3 show undetected- hromedriver Name: undetected-chromedriver Version: 3.0.6 Summary: selenium.webdriver.Chrome replacement wiht compatiblity for Brave, and other Chromium baed browsers. not triggered by CloudFlare/Imperva/hCaptcha nd such. NOTE: results may vary due to many factors. No guarantees are given, except for ongoing efforts in understanding detection algorithms. Home-page: https://github.com/ultrafunkamsterdam/undetected-chromedriver Author: UltrafunkAmsterdam Author-email: info@blackhat-security.nl License: GPL-3.0 Location: c:\users\administrator\appdata\local\programs\python\python310\lib\si e-packages Requires: requests, selenium, websockets Required-by:

Inplex-sys commented 2 years ago

try theses commands : pip3 uninstall undetected-chromedriver pip3 install undetected-chromedriver==3.0.0

andress134 commented 2 years ago

try theses commands : pip3 uninstall undetected-chromedriver pip3 install undetected-chromedriver==3.0.0

Already. Same error

pip3 install undetected-chromedriver==3.0.0

LINUX ERROR I'm already using paid proxies

`[2021-12-06-13:15:31] Starting workers ... Exception in thread Thread-1: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 96, in create_connection raise err File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 86, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 394, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/usr/local/lib/python3.9/http/client.py", line 1253, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/lib/python3.9/http/client.py", line 1299, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.9/http/client.py", line 1248, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.9/http/client.py", line 1008, in _send_output self.send(msg) File "/usr/local/lib/python3.9/http/client.py", line 948, in send self.connect() File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7ff1441a8040>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.9/threading.py", line 954, in _bootstrap_inner self.run() File "/usr/local/lib/python3.9/threading.py", line 892, in run self._target(*self._args, self._kwargs) File "/root/cloudflare-uam-bypass/main.py", line 143, in Bypass driver.execute_script(f"window.open('{Main.GetArgs()[1]}')") File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 790, in execute_script return self.execute(command, { File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 398, in execute response = self.command_executor.execute(driver_command, params) File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/remote_connection.py", line 398, in execute return self._request(command_info[0], url, body=data) File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/remote_connection.py", line 420, in _request resp = self._conn.request(method, url, body=body, headers=headers) File "/usr/local/lib/python3.9/site-packages/urllib3/request.py", line 78, in request return self.request_encode_body( File "/usr/local/lib/python3.9/site-packages/urllib3/request.py", line 170, in request_encode_body return self.urlopen(method, url, extra_kw) File "/usr/local/lib/python3.9/site-packages/urllib3/poolmanager.py", line 375, in urlopen response = conn.urlopen(method, u.request_uri, **kw) File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 783, in urlopen return self.urlopen( File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 783, in urlopen return self.urlopen( File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 783, in urlopen return self.urlopen( File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen retries = retries.increment( File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=58266): Max retries exceeded with url: /session/7b06327bd59d776013648dd9f77e3ada/execute/sync (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff1441a8040>: Failed to establish a new connection: [Errno 111] Connection refused'))```

windows error

` simple attacks, simple programs ←[0m ←[38;5;220m[2021-12-06-10:17:17]←[0m←[38;5;2m New worker started←[0m Exception in thread Thread-1 (Bypass): Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\thre ding.py", line 1009, in _bootstrap_inner self.run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\thre ding.py", line 946, in run self._target(*self._args, *self._kwargs) File "C:\Users\Administrator\Desktop\cloudflare-uam-bypass-main\main.py", lin 86, in Bypass driver.get('https://google.com/') File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site packages\undetected_chromedriver\v2.py", line 480, in get_wrapped return orig_get(args, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site packages\selenium\webdriver\remote\webdriver.py", line 412, in get self.execute(Command.GET, {'url': url}) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site packages\selenium\webdriver\remote\webdriver.py", line 400, in execute self.error_handler.check_response(response) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site packages\selenium\webdriver\remote\errorhandler.py", line 236, in check_respons

raise exception_class(message, screen, stacktrace)

selenium.common.exceptions.WebDriverException: Message: unknown error: net::ERR CONNECTION_RESET (Session info: headless chrome=96.0.4664.45) Stacktrace: Backtrace: Ordinal0 [0x012F6903+2517251] Ordinal0 [0x0128F8E1+2095329] Ordinal0 [0x01192848+1058888] Ordinal0 [0x0118F431+1045553] Ordinal0 [0x011854D9+1004761] Ordinal0 [0x011860E0+1007840] Ordinal0 [0x0118572A+1005354] Ordinal0 [0x01184DDA+1002970] Ordinal0 [0x01183F8D+999309] Ordinal0 [0x01184246+1000006] Ordinal0 [0x01193E1A+1064474] Ordinal0 [0x011E616D+1401197] Ordinal0 [0x011D64D3+1336531] Ordinal0 [0x011E5BBF+1399743] Ordinal0 [0x011D639B+1336219] Ordinal0 [0x011B27A7+1189799] Ordinal0 [0x011B3609+1193481] GetHandleVerifier [0x01485904+1577972] GetHandleVerifier [0x01530B97+2279047] GetHandleVerifier [0x01386D09+534521] GetHandleVerifier [0x01385DB9+530601] Ordinal0 [0x01294FF9+2117625] Ordinal0 [0x012998A8+2136232] Ordinal0 [0x012999E2+2136546] Ordinal0 [0x012A3541+2176321] BaseThreadInitThunk [0x74DC6A14+36] RtlInitializeExceptionChain [0x7702AD8F+143] RtlInitializeExceptionChain [0x7702AD5A+90]```

andress134 commented 2 years ago

Error coming from script because im tested default code of undetected_chromedriver and i can open any website without error

Some wrong from urllib3

You can improve it to use from urllib.parse import urlsplit

like

def target(url): result = urlsplit(uri) host = result.netloc.split(':')

if len(host) == 2:
    host, port = host[0], int(host[1])
else:
    host = host[0]
    port = 80 if result.scheme == "http" else 443

if scheme == "https": fd = context.wrap_socket(fd, server_hostname=host)

and the proxy function like

def proxies(proxy=[], ssl="all"): host, string_port = proxy.split(':') proxy_list.append((host, int(string_port)))

    ? i'm try to adapt it but my experience with python is not so good
Inplex-sys commented 2 years ago

Ha, yes, that's my bad, i will fix that

Inplex-sys commented 2 years ago

What is your target ?

andress134 commented 2 years ago

What is your target ?

https://botflare.club have tested here

andress134 commented 2 years ago

Ive tested your update, it still have issues

Sugestion, define the path to get automaticaly chromedriver checking threads like if thread can't bypass the page, close it and open new with new proxy adding args for proxy, like if u want to use proxies or to use your server machine (yeah, right not safe without proxies but the bypass can be more faster)

Inplex-sys commented 2 years ago

Okay i will work on this