Hi and thanks for Hydra!
After reading hydra -U http-post, I can't figure out how to send an HTTP POST body.
The server accepts credentials as JSON in the body. This works for logging in: curl -X POST http://npm-registry:4873/-/verdaccio/sec/login -H "Content-Type: application/json" -d '{"username":"testuser","password":"myPassword"}'
Trying hydra -d -l testuser -P ./hydra_passwords.txt -s 4873 npm-registry http-post '/-/verdaccio/sec/login:{"username"\:"^USER^","password"\:"^PASS^"}:h=Content-Type\: application/json:denied' I get the error
optional parameters must have the format X=value
Can I define a body using the http-post module?
Hi and thanks for Hydra!
After reading
hydra -U http-post, I can't figure out how to send an HTTP POST body.The server accepts credentials as JSON in the body. This works for logging in:
curl -X POST http://npm-registry:4873/-/verdaccio/sec/login -H "Content-Type: application/json" -d '{"username":"testuser","password":"myPassword"}'Trying
hydra -d -l testuser -P ./hydra_passwords.txt -s 4873 npm-registry http-post '/-/verdaccio/sec/login:{"username"\:"^USER^","password"\:"^PASS^"}:h=Content-Type\: application/json:denied'I get the errorCan I define a body using the http-post module?