dizcza / hashcat-wpa-server

Hashcat WPA/WPA2 server
http://85.217.171.57:9111/
MIT License
54 stars 10 forks source link

TypeError("NamedTemporaryFile() got an unexpected keyword argument 'errors'",) #3

Closed markland556 closed 2 years ago

markland556 commented 2 years ago

Having an issue in a docker container. When a file is uploaded it will run for a moment then show this error under status

dizcza commented 2 years ago

Thanks for letting me know. I'll check it out.

I rarely use the UI though. I prefer the command mode interface. You can check it out till I fix the issue.

markland556 commented 2 years ago

Ill give it a shot. In the meanwhile ive been trying to figure out when adding wordlist files to the appropriate folder the container runs wc on the file and loops. CPU usage is around 70-90% for that PID and usually only makes it to 20seconds of runtime before it restarts. It seems to be forcing gunicorn to restart as well thus making the web ui error out with a 503 from Nginx

dizcza commented 2 years ago

Having an issue in a docker container. When a file is uploaded it will run for a moment then show this error under status

Please add the full traceback and describe how you uploaded the file or better make a screenshot. I cannot reproduce the issue.

luomucc commented 2 years ago

https://user-images.githubusercontent.com/37624844/178742258-505fad6f-0adc-45ff-8910-4413912ca18c.mp4

dizcza commented 2 years ago

Ok thanks, I'll have a look. I imagine the issue could be that you use gunicorn while I typically run in a dev environment pure python. Gunicorn is preferred, so I need to double-check that.

dizcza commented 2 years ago

All right, the issue was in old python3.6 in the docker. I've migrated the docker part to use python3.9, this should fix the error you've shown. The fast wordlist mode is fixed also.

dizcza commented 2 years ago

You need to redownload the docker image WITHOUT CACHE. If you don't know how to redownload a docker image run docker system prune --volumes -f and then docker pull dizcza/hashcat-wpa-server:latest again, but it'll wipe all your docker images, containers, and volumes.

Please let me know if this worked for you.

dizcza commented 2 years ago

I've also refactored the status update of the profile page so now it should call the wc only once per file.