OWASP ZAP proxy over ssh tunnel -
i have remote machine running docker owaspzap image. when connect directly machine , run command
curl http://localhost:8080
i default zap proxy homepage. when setup ssh tunnel machine (lets bound local port 52000 remote port 8080) error when running
curl http://localhost:52000
zap error [java.net.connectexception]: connection refused
stack trace: java.net.connectexception: connection refused @ java.net.plainsocketimpl.socketconnect(native method) @ java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:339) @ java.net.abstractplainsocketimpl.connecttoaddress(abstractplainsocketimpl.java:200) @ java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:182) @ java.net.sockssocketimpl.connect(sockssocketimpl.java:392) @ java.net.socket.connect(socket.java:579) @ java.net.socket.connect(socket.java:528) @ java.net.socket.(socket.java:425) @ java.net.socket.(socket.java:280) @ org.apache.commons.httpclient.protocol.defaultprotocolsocketfactory.createsocket(defaultprotocolsocketfactory.java:80) @ org.apache.commons.httpclient.protocol.defaultprotocolsocketfactory.createsocket(defaultprotocolsocketfactory.java:122) @ org.apache.commons.httpclient.httpconnection.open(unknown source) @ org.apache.commons.httpclient.multithreadedhttpconnectionmanager$httpconnectionadapter.open(multithreadedhttpconnectionmanager.java:1361) @ org.apache.commons.httpclient.httpmethoddirector.executewithretry(unknown source) @ org.apache.commons.httpclient.httpmethoddirector.executemethod(unknown source) @ org.apache.commons.httpclient.httpclient.executemethod(httpclient.java:397) @ org.parosproxy.paros.network.httpsender.executemethod(unknown source) @ org.parosproxy.paros.network.httpsender.runmethod(unknown source) @ org.parosproxy.paros.network.httpsender.send(unknown source) @ org.parosproxy.paros.network.httpsender.sendauthenticated(unknown source) @ org.parosproxy.paros.network.httpsender.sendandreceive(unknown source) @ org.parosproxy.paros.network.httpsender.sendandreceive(unknown source) @ org.parosproxy.paros.core.proxy.proxythread.processhttp(unknown source) @ org.parosproxy.paros.core.proxy.proxythread.run(unknown source) @ java.lang.thread.run(thread.java:745)
what i'm missing ?
i think zap not recognising url 1 listenning on. thinks listenning on http://localhost:8080 , requesting http://localhost:52000 trying connect port. might worth trying use same ports on both machines?
Comments
Post a Comment