From f99aa2226f7842fab31705089b62317b2ab62ffd Mon Sep 17 00:00:00 2001 From: sog Date: Sat, 18 Apr 2020 10:28:14 -0400 Subject: [PATCH] Add support for updating the prompt and logging all commands to the host via script --- Dockerfile | 1 + run.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b81207c..27b1ed0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,7 @@ FROM ubuntu:19.10 ENV LC_CTYPE C.UTF-8 ENV DEBIAN_FRONTEND=noninteractive COPY dot_radare2rc /root/.radare2rc +COPY dot_bashrc /root/.bashrc RUN dpkg --add-architecture i386 && \ apt-get update && \ apt-get install -y build-essential jq strace ltrace curl wget rubygems gcc dnsutils netcat gcc-multilib net-tools \ diff --git a/run.sh b/run.sh index 3f7729a..ada72ed 100755 --- a/run.sh +++ b/run.sh @@ -1,2 +1,2 @@ #!/bin/sh -docker run --rm -v "$(pwd):/pwd" --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -d --name docker-binaryexploitation -i docker-binaryexploitation:ubuntu19.10 +docker run --rm -v "$(pwd):/pwd" -v "$(pwd)/logs:/logs" --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -d --name docker-binaryexploitation -i docker-binaryexploitation:ubuntu19.10