Junyi-99 / ChatGPT-API-Leakage

Scan GitHub for available OpenAI API Keys
MIT License
114 stars 24 forks source link

ssl handshake failed #2

Closed Niklas2406 closed 6 months ago

Niklas2406 commented 6 months ago

i get a minor bug while connecting to login page from github

Output:

> python main.py

INFO:root:Opening Chrome ...

DevTools listening on ws://127.0.0.1:51864/devtools/browser/acb03786-9b08-4e3c-9353-a9ca364cc634
INFO:root:📂 Opening database file github.db
INFO:root:🤗 No cookies found, please login to GitHub first
Press Enter after you logged in: [15640:16112:0401/120304.983:ERROR:ssl_client_socket_impl.cc(970)] handshake failed; returned -1, SSL error code 1, net_error -100
[15640:16112:0401/120304.998:ERROR:ssl_client_socket_impl.cc(970)] handshake failed; returned -1, SSL error code 1, net_error -107
[15640:16112:0401/120316.800:ERROR:ssl_client_socket_impl.cc(970)] handshake failed; returned -1, SSL error code 1, net_error -107
[15640:16112:0401/120328.677:ERROR:ssl_client_socket_impl.cc(970)] handshake failed; returned -1, SSL error code 1, net_error -107
Junyi-99 commented 6 months ago

Please replace the main.py:27:


self.driver = webdriver.Chrome()

to

self.options = webdriver.ChromeOptions()
self.options.add_argument('--ignore-certificate-errors')
self.options.add_argument('--ignore-ssl-errors')
self.driver = webdriver.Chrome(chrome_options = options)