Open g33k247 opened 2 years ago
@g33k247 edit the json file and add your key in the quotes, also the one space is not an issue
I re-generated the APIkey and added a new one to the file between the quotes. I'm still seeing the 401 error.
@g33k247 I will test it out soon, also the domain check works without the api key
@g33k247 is the key added in $HOME/.config/pwnedornot/config.json
file?
Ahhh, that was the issue. Thank-you!
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.
Expected: Finds APIkey in config.json, retrieves information for email address successfully
Contents of config.json: { "api_key": ""
}