thewhiteh4t / pwnedOrNot

OSINT Tool for Finding Passwords of Compromised Email Addresses
MIT License
2.22k stars 320 forks source link

hibp api issues within docker #43

Closed richpowell closed 4 years ago

richpowell commented 4 years ago

hi Im getting the 401 error when running in a docker container. anyone get this to succeed in a container? I've xxx out the api key, but I have a legit key from the site. Is this a problem with the program writing the key file in the container? maybe I'm missing a permission?

docker run -it cf0 -e kyle@yahoo.com

[>] Created by : thewhiteh4t [>] Version : 1.2.8

[-] API Key Not Found...

[+] Get your API Key : https://haveibeenpwned.com/API/Key

[+] Enter your API Key : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [+] Saved API Key in : //key.txt

[+] Checking Breach status for kyle@yahoo.com

[-] An Unknown Error Occurred { "statusCode": 401, "message": "Access denied due to missing hibp-api-key." }

[+] Completed in 0.12081265449523926 seconds. x@x:~/Dev/osint/hibp$

thewhiteh4t commented 4 years ago

@richpowell thanks for pointing out, I will look into it very soon!

thewhiteh4t commented 4 years ago

@richpowell I have updated the dockerfile, you can now simply pull from docker hub no need to clone repository from github, here are the commands :

docker pull thewhiteh4t/pwnedornot
docker create -it --name pon thewhiteh4t/pwnedornot
docker start pon -i

this will open a shell for you in which you can execute pwnedornot and your key will be saved, after performing the above step you can simply start and stop the container, no need to create it again

thewhiteh4t commented 4 years ago

Closing due to inactivity.