Comments (22)
It looks like there is an error loading the SSL cert. Since it's happening when you are starting a new thread, could you provide some sample code that I could mess around with?
I'm not sure why this would be happening unless you are changing the cwdir maybe? But I'm pretty sure it shouldn't matter since it's all packaged in the module.
from captchaharvester.
Wait, are you saying this error occurs when you package the Python program into a .exe?
from captchaharvester.
yes it's only in exe file, code is your example.py
from captchaharvester.
Hmm, well I don’t really have access to a Windows computer, so it would be hard for me to test. I’m assuming it has to do with the way it’s packing the files. For some reason the ssl library can’t find the certs when it loads.
Do you get the same error even when you aren’t multithreading?
from captchaharvester.
but this is error from your example.py and I have to use threading there
from captchaharvester.
I mean I could do it without threading but then it will be useless
from captchaharvester.
Ah! That’s true
from captchaharvester.
without threading it doesnt work hah, in case im still on discord bro
from captchaharvester.
Ok, that's good to know. I'd encourage you to try and look into it yourself since I don't have a Windows machine, but I'll look over the code to see if I can find anything that might break in an exe. What are you using to package he exe?
from captchaharvester.
actually I use pyarmor but pyarmor uses pyinstaller
from captchaharvester.
I'm wondering if they are not including the ssl certs in the .exe package...
from captchaharvester.
idk, but for me as an developer it isnt big deal but for ppl who want to use my bot is is :(
from captchaharvester.
Try adding print(__dir__)
under
server.key
and server.crt
are present.from captchaharvester.
ill do it like in 8h bcs im going sleep, ill let you know here or on discord
from captchaharvester.
Sounds good!
from captchaharvester.
so this is path i got C:\Users\hardc\AppData\Local\Temp_MEI159402\harvester\server
there is no any of files you mentioned, here is ss of files that are there
from captchaharvester.
What's weird is that I don't even see the file structure of the CaptchaHarvester. But, I think you should look into how to include those files because it looks like it's not properly packaging the server.key
and server.crt
.
I'd suggest you either look at the pyarmor
/pyinstaller
documentation. There might be some special argument you have to pass you include non-python files.
Otherwise, you might want to manually package the files into the exe.
I don't think this is an issue with my module thought. I'll leave this open for a little bit if you have any questions.
from captchaharvester.
ive found that https://pyinstaller.readthedocs.io/en/stable/spec-files.html
i think its nice to mention about that in readme or smth like that to be available to see for everyone
from captchaharvester.
ok, so this is how my .spec file looks like right now. it still gives same error, idk maybe im doing smth wrong
from captchaharvester.
Well it might not be packaging them correctly because they are outside of the project...
Maybe try copying them to the project directory and add function parameters to the server.setup function like this:
def setup(server_address: Tuple[str, int], domain: str, captcha_kind: CaptchaKindEnum, sitekey: str,
data_action: str = None, keyfile: str = None, certfile: str = None) -> ThreadingHTTPServer:
MITM_CAHCE[domain] = MITMRecord(captcha_kind, sitekey, data_action)
httpd = ThreadingHTTPServer(server_address, ProxyHTTPRequestHandler)
httpd.domain = domain
httpd.socket = ssl.wrap_socket(httpd.socket,
keyfile=keyfile or path.join(
__dir__, 'server.key'),
certfile=certfile or path.join(__dir__, 'server.crt'), server_side=True)
return httpd
If it fixes the problem I can submit update the project to include those parameters.
from captchaharvester.
server.setup? where is that file?
from captchaharvester.
It's a function in /harvester/server/__init__.py.
from captchaharvester.
Related Issues (20)
- Captcha never solve HOT 1
- datadome HOT 3
- ReCaptcha not rendering for https://www.google.com/recaptcha/api2/demo HOT 1
- Integrate with selenium HOT 3
- issue with installing captcha-harverster HOT 3
- question about usage HOT 1
- Help Getting started HOT 3
- Ways to improve Captcha V3 score HOT 4
- recaptcha v2 auto slove? HOT 1
- Error thrown when trying to install the library. HOT 4
- Issue with HSTS HOT 3
- Problems with recaptcha v3 HOT 2
- Issue with captcha solving on one website. HOT 8
- discord HOT 1
- Quit the script automatically upon closing browser window HOT 1
- I have captcha harvester logic in my desktop application PySide6, after compiling exe and run, i got error in some version windows like this "'harvester' is not recognized as an internal or external command," HOT 1
- Info about server HOT 2
- Hey
- Funcaptcha ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from captchaharvester.