Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Curl command is not working

41 views
Skip to first unread message

Rashmi Mehta

unread,
Jan 16, 2025, 8:21:41 AMJan 16
to ZAP Developer Group
Hi,

I am new to Zap.
Please help me to understand and learn it more.
My requirement is to scan the target site with authentication using the command line in Windows server.

As I searched, the URL https://www.zaproxy.org/docs/desktop/cmdline/ does not have any command/options to authenticate the URL.
So I found out about the curl command.

C:\Program Files\ZAP\Zed Attack Proxy> curl -X POST "http://localhost:8080/JSON/auth/action/setAuthMethod/?authmethod=formBasedAuthentication" -H "Content-Type: application/json" -d "{\"loginUrl\":\"https://example.com/Login\",\"loginRequestData\":\"username={%username%}&password={%password%}\",\"username\":\"a...@a.com\",\"password\":\"Pass123456\"}"

When I am running this command in my Windows command line prompt, it gives me the below error -

"{"code":"no_implementor","message":"No Implementor"}'password' is not recognized as an internal or external command,
operable program or batch file."

Please provide me solution. Awaiting for your positive response.

Thanks,

Rashmi

psiinon

unread,
Jan 16, 2025, 9:11:59 AMJan 16
to ZAP Developer Group
Hi Rasmi,

This question is about how to use ZAP - please ask them on the ZAP User Group: https://groups.google.com/group/zaproxy-users

This forum is for ZAP development questions.

Cheers,

Simon
Reply all
Reply to author
Forward
0 new messages