Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When Running an Email Search Does not Find APIkey #64

Open
g33k247 opened this issue Sep 4, 2022 · 5 comments
Open

When Running an Email Search Does not Find APIkey #64

g33k247 opened this issue Sep 4, 2022 · 5 comments

Comments

@g33k247
Copy link

g33k247 commented Sep 4, 2022

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": ""
}

  • there is 1 space between the colon and the start of the api key (with quotes)
@thewhiteh4t
Copy link
Owner

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

@g33k247
Copy link
Author

g33k247 commented Sep 5, 2022

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

@thewhiteh4t
Copy link
Owner

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

@thewhiteh4t
Copy link
Owner

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

@g33k247
Copy link
Author

g33k247 commented Sep 9, 2022

Ahhh, that was the issue. Thank-you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants