owasp/zap2docker-stable "zap.sh -daemon -por 0.0.0.0:8090->8090/tcp
I can do a curl 127.0.0.1:8090 and I can successfully retrieve the "Welcome to the OWASP Zed Attack Proxy (ZAP)...." page.
Next, I have my web app running as a Docker container as well and it looks like this:
test "/bin/sh -c 'nginx & 443/tcp, 4443/tcp, 127.0.0.1:8483->80/tcp thirsty_wozniak
I can do a curl 127.0.0.1:8483 and I can successfully retrieve my web app homepage as well.
So far so good.
Next, I setup the following environment variables to be able to proxy the requests via ZAP running as a daemon:
export http_proxy=http://127.0.0.1:8090/
export https_proxy=http://127.0.0.1:8090/
I issue the curl commands again:
curl 127.0.0.1:8090 works fine
but
curl 127.0.0.1:8483 fails with the following error:
ZAP Error [java.net.ConnectException]: Connection refused
So, basically I can't connect to my web app anymore if I proxy the requests via the ZAP daemon.
Now, I tried running the ZAP UI manually at 127.0.0.1:8080.
I then setup both the http_proxy and https_proxy to http://127.0.0.1:8080/
and did the curl command 127.0.0.1:8483 and it works just fine.
I can even see that request in the ZAP UI.
So, the question is why isn't it connecting to my app when I run ZAP as a daemon?
docker run -p 8090:8090 -id owasp/zap2docker-stable zap.sh -daemon -port 8090 -host 0.0.0.0
And, the way I am running the ZAP UI is simply by clicking on the owasp-zap item in Kali Linux under Applications.
Is there something else I need to do while starting the ZAP daemon in the above command?
ZAP Error [java.net.ConnectException]: Connection refused
Or does it go on to complain about SSL?
--
You received this message because you are subscribed to a topic in the Google Groups "OWASP ZAP User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zaproxy-users/T_JDlOa8j1A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to zaproxy-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.