thewhiteh4t / pwnedOrNot

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

When Running an Email Search Does not Find APIkey #64

Open g33k247 opened 2 years ago

g33k247 commented 2 years ago

I have a valid APIkey.

Results: python3 pwnedornot.py --email [+] API Key Found... [+] Checking Breach status for [-] Status 401 : Unauthorised — either no API key was provided or it wasn't valid Note: The APIkey check only fails with email addresses. Using the --check on a domain works fine. 2022-09-04_06-57-28

Expected: Finds APIkey in config.json, retrieves information for email address successfully

Contents of config.json: { "api_key": "" }

thewhiteh4t commented 2 years ago

@g33k247 edit the json file and add your key in the quotes, also the one space is not an issue

g33k247 commented 2 years ago

I re-generated the APIkey and added a new one to the file between the quotes. I'm still seeing the 401 error.

thewhiteh4t commented 2 years ago

@g33k247 I will test it out soon, also the domain check works without the api key

thewhiteh4t commented 2 years ago

@g33k247 is the key added in $HOME/.config/pwnedornot/config.json file?

g33k247 commented 2 years ago

Ahhh, that was the issue. Thank-you!