From f35f74e448756e43f56032a073dd9d20c606edd8 Mon Sep 17 00:00:00 2001
From: Daniel Petri <daniel.petri@rwth-aachen.de>
Date: Wed, 23 Apr 2025 21:41:05 +0200
Subject: [PATCH] Add netcat-openbsd, patchelf, add note on container network

---
 Dockerfile | 2 +-
 README.md  | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 5a8832d..b2e04bc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,6 @@
 FROM ubuntu:oracular
 
-RUN apt update && apt install -y ca-certificates openssh-server python3-pip python3-dev xxd file qemu-user \
+RUN apt update && apt install -y ca-certificates openssh-server python3-pip python3-dev xxd file qemu-user netcat-openbsd patchelf \
                                 libssl-dev libffi-dev build-essential binutils-multiarch git gdb gdb-multiarch ltrace strace tmux wget curl && \
                                 apt clean && rm -rf /var/lib/apt/lists/* && touch /root/.hushlogin
 
diff --git a/README.md b/README.md
index 089c081..3d1a77d 100644
--- a/README.md
+++ b/README.md
@@ -183,6 +183,15 @@ Creates a 2 CPU, 4GB RAM VM with QEMU. Has Ubuntu and Docker preinstalled. While
 
 From here, you can choose to either use the Docker image or install the tools directly in your VM.
 
+### Reaching other containers
+
+If you're running the pwnenv container and want to reach local challenge containers from it that have ports exposed, connecting to localhost won't work.\
+You need to use the host IP address. To find it, run in your macOS terminal:
+
+```bash
+docker network inspect bridge -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}'
+```
+
 ## Windows
 
 WSL2 is the easiest way to start.
-- 
GitLab