Coder Social home page Coder Social logo

Unexpected token 'Y' about pwned HOT 11 CLOSED

wkovacs64 avatar wkovacs64 commented on June 15, 2024
Unexpected token 'Y'

from pwned.

Comments (11)

wKovacs64 avatar wKovacs64 commented on June 15, 2024 1

@ru44 I had to renew my API key to implement some new features in another project and I was able to retrieve your breached account information just fine.

from pwned.

wKovacs64 avatar wKovacs64 commented on June 15, 2024 1

@ru44 I was just able to successfully use pwned to look up your account in blackarch, so I'm going to close this as I don't see anything indicating it's a problem with the tool. Feel free to try the curl command I mentioned above, as it may reveal the next troubleshooting step.

Good luck!

from pwned.

wKovacs64 avatar wKovacs64 commented on June 15, 2024

I haven't paid for an API key so I can't test the ba command while authenticated, but seems to do what it's supposed to do while unauthenticated and the other commands that don't require an API key are all working.

What version of pwned?
What version of Node.js?
What operating system?

from pwned.

ru44 avatar ru44 commented on June 15, 2024

OS: blackarch
Node: v18.17.1
pwned: 2221.f3df0eb

from pwned.

wKovacs64 avatar wKovacs64 commented on June 15, 2024

2221.f3df0eb

That's not a valid version of pwned (latest published is 11.0.0), but that partial commit hash does match a commit from a few days ago so I'm guessing you're using a custom version built from source or something similar.

Do you get any different results running the distributed version via npx?

npx pwned ba [email protected]

What about commands that don't require a paid API key like:

pwned pw password

from pwned.

ru44 avatar ru44 commented on June 15, 2024

yea even when I run

npx pwned ba [email protected]

getting the same but the free

npx pwned pw admin

its working fine

from pwned.

wKovacs64 avatar wKovacs64 commented on June 15, 2024

Try hitting the API directly with curl like so (replacing [YOUR_API_KEY] with your actual key):

curl --header "HIBP-API-Key: [YOUR_API_KEY]" -i https://haveibeenpwned.com/api/v3/breachedaccount/loka%40gmail.com

Then tell me whatever you can about the results without revealing anything you consider private information.

from pwned.

ru44 avatar ru44 commented on June 15, 2024

I see but still not working because when I run npx pwned ba [email protected]
I get
image

from pwned.

wKovacs64 avatar wKovacs64 commented on June 15, 2024

Not sure what that could be other than something unusual on your end. Did you try the curl command to see if you get a reasonable response from the HIBP API directly?

from pwned.

ru44 avatar ru44 commented on June 15, 2024

no not really how do I do that?

from pwned.

wKovacs64 avatar wKovacs64 commented on June 15, 2024

no not really how do I do that?

#239 (comment)

from pwned.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.