From 23bd50bb16ba37dc0ffb33a56a15eaac13363730 Mon Sep 17 00:00:00 2001 From: Kangwoosun Date: Wed, 16 Feb 2022 21:20:37 -0800 Subject: [PATCH 01/11] fix url 2.7 pip --- 16.04/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/16.04/Dockerfile b/16.04/Dockerfile index 29fc9dd..342d145 100644 --- a/16.04/Dockerfile +++ b/16.04/Dockerfile @@ -2,15 +2,18 @@ FROM ubuntu:16.04 WORKDIR /root ENV LC_CTYPE C.UTF-8 ARG DEBIAN_FRONTEND=noninteractive +ENV http_proxy 'http://mainproxy.ucm.conti.de:8980' +ENV https_proxy 'https://mainproxy.ucm.conti.de:8980' RUN dpkg --add-architecture i386 +RUN rm -rf /var/lib/apt/lists/* RUN apt update -y RUN apt install software-properties-common -y RUN apt-add-repository ppa:brightbox/ruby-ng RUN apt update -y RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6:i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby2.4 ruby2.4-dev -y -RUN curl -O https://bootstrap.pypa.io/2.7/get-pip.py && python get-pip.py && rm get-pip.py +RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install pip==20.0.1 RUN python -m pip install --ignore-installed pwntools && python3 -m pip install --ignore-installed pwntools RUN gem install one_gadget seccomp-tools From fdfd330c1ae31f509d17b62ccc7d06ad7cec2517 Mon Sep 17 00:00:00 2001 From: Kangwoosun Date: Thu, 17 Feb 2022 14:28:35 +0900 Subject: [PATCH 02/11] add python3 -m pip install --upgrade pip --- 16.04/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/16.04/Dockerfile b/16.04/Dockerfile index 342d145..51fb19d 100644 --- a/16.04/Dockerfile +++ b/16.04/Dockerfile @@ -2,11 +2,8 @@ FROM ubuntu:16.04 WORKDIR /root ENV LC_CTYPE C.UTF-8 ARG DEBIAN_FRONTEND=noninteractive -ENV http_proxy 'http://mainproxy.ucm.conti.de:8980' -ENV https_proxy 'https://mainproxy.ucm.conti.de:8980' RUN dpkg --add-architecture i386 -RUN rm -rf /var/lib/apt/lists/* RUN apt update -y RUN apt install software-properties-common -y @@ -15,6 +12,7 @@ RUN apt update -y RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6:i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby2.4 ruby2.4-dev -y RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install pip==20.0.1 +RUN python3 -m pip install --upgrade pip RUN python -m pip install --ignore-installed pwntools && python3 -m pip install --ignore-installed pwntools RUN gem install one_gadget seccomp-tools From 40ef756ca693f201c64d89a2dbb2f4a7287feef6 Mon Sep 17 00:00:00 2001 From: Kangwoosun Date: Thu, 17 Feb 2022 14:29:20 +0900 Subject: [PATCH 03/11] add 'pip' url --- 18.04/Dockerfile | 2 +- 19.04/Dockerfile | 2 +- 20.04/Dockerfile | 2 +- 21.04/Dockerfile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/18.04/Dockerfile b/18.04/Dockerfile index 9b5b9ca..3cac224 100644 --- a/18.04/Dockerfile +++ b/18.04/Dockerfile @@ -22,7 +22,7 @@ RUN dpkg -i libc6-dev_2.27-3ubuntu1.2_amd64.deb RUN dpkg -i libc6-i386_2.27-3ubuntu1.2_amd64.deb RUN dpkg -i libc6-dbg_2.27-3ubuntu1.2_amd64.deb -RUN curl -O https://bootstrap.pypa.io/2.7/get-pip.py && python get-pip.py && rm get-pip.py +RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip RUN python -m pip install --ignore-installed pwntools RUN gem install one_gadget seccomp-tools diff --git a/19.04/Dockerfile b/19.04/Dockerfile index ee570b3..b6f075e 100644 --- a/19.04/Dockerfile +++ b/19.04/Dockerfile @@ -8,7 +8,7 @@ RUN dpkg --add-architecture i386 RUN sed -i -re 's/([a-z]{2}.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list RUN apt update -y RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6:i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y -RUN curl -O https://bootstrap.pypa.io/2.7/get-pip.py && python get-pip.py && rm get-pip.py +RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip RUN python -m pip install --ignore-installed pwntools RUN gem install one_gadget seccomp-tools diff --git a/20.04/Dockerfile b/20.04/Dockerfile index 20e8234..00ba2b3 100644 --- a/20.04/Dockerfile +++ b/20.04/Dockerfile @@ -7,7 +7,7 @@ RUN dpkg --add-architecture i386 RUN apt update -y RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6-i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y -RUN curl -O https://bootstrap.pypa.io/2.7/get-pip.py && python get-pip.py && rm get-pip.py +RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip RUN python -m pip install --ignore-installed pwntools RUN gem install one_gadget seccomp-tools diff --git a/21.04/Dockerfile b/21.04/Dockerfile index cb8fe10..775312c 100644 --- a/21.04/Dockerfile +++ b/21.04/Dockerfile @@ -7,7 +7,7 @@ RUN dpkg --add-architecture i386 RUN apt update -y RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools libssl-dev libffi-dev build-essential libc6-i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y -RUN curl -O https://bootstrap.pypa.io/2.7/get-pip.py && python get-pip.py && rm get-pip.py +RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip RUN python -m pip install --ignore-installed pwntools RUN gem install one_gadget seccomp-tools From 6b8753dc9cc5681ee12760a40906109b9b5ebc4d Mon Sep 17 00:00:00 2001 From: Kangwoosun Date: Thu, 17 Feb 2022 14:43:50 +0900 Subject: [PATCH 04/11] add command in README.md --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/README.md b/README.md index b70f653..737b2c3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,41 @@ # pwn-docker + +### docker build image command + +```sh +cd pwn-docker/16.04 +docker build --tag pwn-docker:16.04 . + +cd pwn-docker/18.04 +docker build --tag pwn-docker:18.04 . + +cd pwn-docker/19.04 +docker build --tag pwn-docker:19.04 . + +cd pwn-docker/20.04 +docker build --tag pwn-docker:20.04 . + +cd pwn-docker/21.04 +docker build --tag pwn-docker:21.04 . +``` + +### docker run contianer command + +```sh + +docker run --rm -it -v $(pwd):/root/pwn --name ubuntu_16 pwn-docker:16.04 /bin/zsh + +``` + + + +### docker alias + +```sh +alias pwn16="docker run --rm -it -v $(pwd):/pwn --name ubuntu_16 pwn-docker:16.04 /bin/zsh" +alias pwn18="docker run --rm -it -v $(pwd):/pwn --name ubuntu_18 pwn-docker:18.04 /bin/zsh" +alias pwn19="docker run --rm -it -v $(pwd):/pwn --name ubuntu_19 pwn-docker:19.04 /bin/zsh" +alias pwn20="docker run --rm -it -v $(pwd):/pwn --name ubuntu_20 pwn-docker:20.04 /bin/zsh" +alias pwn21="docker run --rm -it -v $(pwd):/pwn --name ubuntu_21 pwn-docker:21.04 /bin/zsh" +``` \ No newline at end of file From 726582dd999c6fc3698ecf62cee7ec721bc75798 Mon Sep 17 00:00:00 2001 From: Kangwoosun Date: Thu, 24 Feb 2022 23:23:21 +0900 Subject: [PATCH 05/11] edit README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 737b2c3..51fbef9 100644 --- a/README.md +++ b/README.md @@ -29,13 +29,13 @@ docker run --rm -it -v $(pwd):/root/pwn --name ubuntu_16 pwn-docker:16.04 /bin/z ``` - -### docker alias +### docker alias in ~/.zshrc or ~/.bashrc ```sh -alias pwn16="docker run --rm -it -v $(pwd):/pwn --name ubuntu_16 pwn-docker:16.04 /bin/zsh" -alias pwn18="docker run --rm -it -v $(pwd):/pwn --name ubuntu_18 pwn-docker:18.04 /bin/zsh" -alias pwn19="docker run --rm -it -v $(pwd):/pwn --name ubuntu_19 pwn-docker:19.04 /bin/zsh" -alias pwn20="docker run --rm -it -v $(pwd):/pwn --name ubuntu_20 pwn-docker:20.04 /bin/zsh" -alias pwn21="docker run --rm -it -v $(pwd):/pwn --name ubuntu_21 pwn-docker:21.04 /bin/zsh" +export somewhere="/path/to/somewhere" +alias pwn16="docker run --rm -it -v $somewhere:/pwn --name ubuntu_16 pwn-docker:16.04 /bin/zsh" +alias pwn18="docker run --rm -it -v $somewhere:/pwn --name ubuntu_18 pwn-docker:18.04 /bin/zsh" +alias pwn19="docker run --rm -it -v $somewhere:/pwn --name ubuntu_19 pwn-docker:19.04 /bin/zsh" +alias pwn20="docker run --rm -it -v $somewhere:/pwn --name ubuntu_20 pwn-docker:20.04 /bin/zsh" +alias pwn21="docker run --rm -it -v $somewhere:/pwn --name ubuntu_21 pwn-docker:21.04 /bin/zsh" ``` \ No newline at end of file From 9ca0b93ac2593a7222186b1e6c34a94dde21f97f Mon Sep 17 00:00:00 2001 From: Kangwoosun Date: Sun, 27 Feb 2022 20:25:12 +0900 Subject: [PATCH 06/11] add python3 -m pip install pwntools --- 19.04/Dockerfile | 2 +- 20.04/Dockerfile | 2 +- 21.04/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/19.04/Dockerfile b/19.04/Dockerfile index b6f075e..0f4c697 100644 --- a/19.04/Dockerfile +++ b/19.04/Dockerfile @@ -10,7 +10,7 @@ RUN apt update -y RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6:i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip -RUN python -m pip install --ignore-installed pwntools +RUN python -m pip install --ignore-installed pwntools && python3 -m pip install --ignore-installed pwntools RUN gem install one_gadget seccomp-tools RUN git clone https://github.com/pwndbg/pwndbg .pwndbg diff --git a/20.04/Dockerfile b/20.04/Dockerfile index 00ba2b3..3cc6e18 100644 --- a/20.04/Dockerfile +++ b/20.04/Dockerfile @@ -9,7 +9,7 @@ RUN apt update -y RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6-i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip -RUN python -m pip install --ignore-installed pwntools +RUN python -m pip install --ignore-installed pwntools && python3 -m pip install --ignore-installed pwntools RUN gem install one_gadget seccomp-tools RUN git clone https://github.com/pwndbg/pwndbg .pwndbg diff --git a/21.04/Dockerfile b/21.04/Dockerfile index 775312c..55f92f4 100644 --- a/21.04/Dockerfile +++ b/21.04/Dockerfile @@ -9,7 +9,7 @@ RUN apt update -y RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools libssl-dev libffi-dev build-essential libc6-i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip -RUN python -m pip install --ignore-installed pwntools +RUN python -m pip install --ignore-installed pwntools && python3 -m pip install --ignore-installed pwntools RUN gem install one_gadget seccomp-tools RUN git clone https://github.com/pwndbg/pwndbg .pwndbg From 3a24d318ec0ed62f28c3e28b3cba1045ebbde340 Mon Sep 17 00:00:00 2001 From: Kangwoosun Date: Sun, 27 Feb 2022 20:41:41 +0900 Subject: [PATCH 07/11] add apt install tmux --- 16.04/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/16.04/Dockerfile b/16.04/Dockerfile index 51fb19d..0c049c4 100644 --- a/16.04/Dockerfile +++ b/16.04/Dockerfile @@ -9,7 +9,7 @@ RUN apt update -y RUN apt install software-properties-common -y RUN apt-add-repository ppa:brightbox/ruby-ng RUN apt update -y -RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6:i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby2.4 ruby2.4-dev -y +RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6:i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby2.4 ruby2.4-dev tmux -y RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install pip==20.0.1 RUN python3 -m pip install --upgrade pip From 0d24c2cdccc6c5f05011edff20831de196cad3ef Mon Sep 17 00:00:00 2001 From: Kangwoosun Date: Thu, 3 Mar 2022 15:25:02 +0900 Subject: [PATCH 08/11] edit Dockerfile --- 18.04/Dockerfile | 4 ++-- 19.04/Dockerfile | 2 +- 20.04/Dockerfile | 2 +- 21.04/Dockerfile | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/18.04/Dockerfile b/18.04/Dockerfile index 3cac224..69f75b9 100644 --- a/18.04/Dockerfile +++ b/18.04/Dockerfile @@ -6,7 +6,7 @@ ARG DEBIAN_FRONTEND=noninteractive RUN dpkg --add-architecture i386 RUN apt update -y -RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y +RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full tmux -y RUN wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc-bin_2.27-3ubuntu1.2_amd64.deb RUN wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc-dev-bin_2.27-3ubuntu1.2_amd64.deb @@ -24,7 +24,7 @@ RUN dpkg -i libc6-dbg_2.27-3ubuntu1.2_amd64.deb RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip -RUN python -m pip install --ignore-installed pwntools +RUN python -m pip install --ignore-installed pwntools && python3 -m pip install --ignore-installed pwntools RUN gem install one_gadget seccomp-tools RUN git clone https://github.com/pwndbg/pwndbg .pwndbg diff --git a/19.04/Dockerfile b/19.04/Dockerfile index 0f4c697..a80ed3b 100644 --- a/19.04/Dockerfile +++ b/19.04/Dockerfile @@ -7,7 +7,7 @@ RUN dpkg --add-architecture i386 RUN sed -i -re 's/([a-z]{2}.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list RUN apt update -y -RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6:i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y +RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6:i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full tmux -y RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip RUN python -m pip install --ignore-installed pwntools && python3 -m pip install --ignore-installed pwntools diff --git a/20.04/Dockerfile b/20.04/Dockerfile index 3cc6e18..058a5b6 100644 --- a/20.04/Dockerfile +++ b/20.04/Dockerfile @@ -6,7 +6,7 @@ ARG DEBIAN_FRONTEND=noninteractive RUN dpkg --add-architecture i386 RUN apt update -y -RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6-i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y +RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6-i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full tmux -y RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip RUN python -m pip install --ignore-installed pwntools && python3 -m pip install --ignore-installed pwntools diff --git a/21.04/Dockerfile b/21.04/Dockerfile index 55f92f4..b9c868b 100644 --- a/21.04/Dockerfile +++ b/21.04/Dockerfile @@ -6,7 +6,7 @@ ARG DEBIAN_FRONTEND=noninteractive RUN dpkg --add-architecture i386 RUN apt update -y -RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools libssl-dev libffi-dev build-essential libc6-i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y +RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools libssl-dev libffi-dev build-essential libc6-i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full tmux -y RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip RUN python -m pip install --ignore-installed pwntools && python3 -m pip install --ignore-installed pwntools From e2b2ed5f8fb2acc0f772e7f4a276c195fb15199f Mon Sep 17 00:00:00 2001 From: Kangwoosun Date: Thu, 17 Mar 2022 23:20:36 +0900 Subject: [PATCH 09/11] edit Dockerfile --- 16.04/Dockerfile | 3 +++ 18.04/Dockerfile | 2 ++ 19.04/Dockerfile | 2 ++ 20.04/Dockerfile | 2 ++ 21.04/Dockerfile | 2 ++ README.md | 10 +++++----- 6 files changed, 16 insertions(+), 5 deletions(-) diff --git a/16.04/Dockerfile b/16.04/Dockerfile index 0c049c4..d6789ac 100644 --- a/16.04/Dockerfile +++ b/16.04/Dockerfile @@ -32,6 +32,9 @@ RUN git clone https://github.com/sindresorhus/pure .zsh/pure RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc +echo set -g mouse on > ~/.tmux.conf + + RUN mkdir /pwn WORKDIR /pwn CMD [ "/bin/zsh" ] diff --git a/18.04/Dockerfile b/18.04/Dockerfile index 69f75b9..682a732 100644 --- a/18.04/Dockerfile +++ b/18.04/Dockerfile @@ -43,6 +43,8 @@ RUN git clone https://github.com/sindresorhus/pure .zsh/pure RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc +echo set -g mouse on > ~/.tmux.conf + RUN mkdir /pwn WORKDIR /pwn CMD [ "/bin/zsh" ] diff --git a/19.04/Dockerfile b/19.04/Dockerfile index a80ed3b..5cede28 100644 --- a/19.04/Dockerfile +++ b/19.04/Dockerfile @@ -29,6 +29,8 @@ RUN git clone https://github.com/sindresorhus/pure .zsh/pure RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc +echo set -g mouse on > ~/.tmux.conf + RUN mkdir /pwn WORKDIR /pwn CMD [ "/bin/zsh" ] diff --git a/20.04/Dockerfile b/20.04/Dockerfile index 058a5b6..8c8bd7c 100644 --- a/20.04/Dockerfile +++ b/20.04/Dockerfile @@ -28,6 +28,8 @@ RUN git clone https://github.com/sindresorhus/pure .zsh/pure RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc +echo set -g mouse on > ~/.tmux.conf + RUN mkdir /pwn WORKDIR /pwn CMD [ "/bin/zsh" ] diff --git a/21.04/Dockerfile b/21.04/Dockerfile index b9c868b..7b4cc0a 100644 --- a/21.04/Dockerfile +++ b/21.04/Dockerfile @@ -28,6 +28,8 @@ RUN git clone https://github.com/sindresorhus/pure .zsh/pure RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc +echo set -g mouse on > ~/.tmux.conf + RUN mkdir /pwn WORKDIR /pwn CMD [ "/bin/zsh" ] diff --git a/README.md b/README.md index 51fbef9..f0b477e 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,9 @@ docker run --rm -it -v $(pwd):/root/pwn --name ubuntu_16 pwn-docker:16.04 /bin/z ```sh export somewhere="/path/to/somewhere" -alias pwn16="docker run --rm -it -v $somewhere:/pwn --name ubuntu_16 pwn-docker:16.04 /bin/zsh" -alias pwn18="docker run --rm -it -v $somewhere:/pwn --name ubuntu_18 pwn-docker:18.04 /bin/zsh" -alias pwn19="docker run --rm -it -v $somewhere:/pwn --name ubuntu_19 pwn-docker:19.04 /bin/zsh" -alias pwn20="docker run --rm -it -v $somewhere:/pwn --name ubuntu_20 pwn-docker:20.04 /bin/zsh" -alias pwn21="docker run --rm -it -v $somewhere:/pwn --name ubuntu_21 pwn-docker:21.04 /bin/zsh" +alias pwn16="docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --rm -it -v $somewhere:/pwn --name ubuntu_16 pwn-docker:16.04 /bin/zsh" +alias pwn18="docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --rm -it -v $somewhere:/pwn --name ubuntu_18 pwn-docker:18.04 /bin/zsh" +alias pwn19="docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --rm -it -v $somewhere:/pwn --name ubuntu_19 pwn-docker:19.04 /bin/zsh" +alias pwn20="docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --rm -it -v $somewhere:/pwn --name ubuntu_20 pwn-docker:20.04 /bin/zsh" +alias pwn21="docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --rm -it -v $somewhere:/pwn --name ubuntu_21 pwn-docker:21.04 /bin/zsh" ``` \ No newline at end of file From 5c833f0a0a296da136ab4bdc335bd14eb53ec188 Mon Sep 17 00:00:00 2001 From: Kangwoosun Date: Thu, 5 May 2022 07:30:50 -0700 Subject: [PATCH 10/11] Edit Dockerfile --- 16.04/Dockerfile | 2 +- 18.04/Dockerfile | 2 +- 19.04/Dockerfile | 2 +- 20.04/Dockerfile | 2 +- 21.04/Dockerfile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/16.04/Dockerfile b/16.04/Dockerfile index d6789ac..83482b4 100644 --- a/16.04/Dockerfile +++ b/16.04/Dockerfile @@ -32,7 +32,7 @@ RUN git clone https://github.com/sindresorhus/pure .zsh/pure RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc -echo set -g mouse on > ~/.tmux.conf +RUN echo set -g mouse on > ~/.tmux.conf RUN mkdir /pwn diff --git a/18.04/Dockerfile b/18.04/Dockerfile index 682a732..ef29cce 100644 --- a/18.04/Dockerfile +++ b/18.04/Dockerfile @@ -43,7 +43,7 @@ RUN git clone https://github.com/sindresorhus/pure .zsh/pure RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc -echo set -g mouse on > ~/.tmux.conf +RUN echo set -g mouse on > ~/.tmux.conf RUN mkdir /pwn WORKDIR /pwn diff --git a/19.04/Dockerfile b/19.04/Dockerfile index 5cede28..d2a93c0 100644 --- a/19.04/Dockerfile +++ b/19.04/Dockerfile @@ -29,7 +29,7 @@ RUN git clone https://github.com/sindresorhus/pure .zsh/pure RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc -echo set -g mouse on > ~/.tmux.conf +RUN echo set -g mouse on > ~/.tmux.conf RUN mkdir /pwn WORKDIR /pwn diff --git a/20.04/Dockerfile b/20.04/Dockerfile index 8c8bd7c..1820ec4 100644 --- a/20.04/Dockerfile +++ b/20.04/Dockerfile @@ -28,7 +28,7 @@ RUN git clone https://github.com/sindresorhus/pure .zsh/pure RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc -echo set -g mouse on > ~/.tmux.conf +RUN echo set -g mouse on > ~/.tmux.conf RUN mkdir /pwn WORKDIR /pwn diff --git a/21.04/Dockerfile b/21.04/Dockerfile index 7b4cc0a..9489d7a 100644 --- a/21.04/Dockerfile +++ b/21.04/Dockerfile @@ -28,7 +28,7 @@ RUN git clone https://github.com/sindresorhus/pure .zsh/pure RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc -echo set -g mouse on > ~/.tmux.conf +RUN echo set -g mouse on > ~/.tmux.conf RUN mkdir /pwn WORKDIR /pwn From 9931b94cb1bf130f97fd03516bc27c2c7ff2a176 Mon Sep 17 00:00:00 2001 From: Kangwoosun Date: Sun, 15 May 2022 01:06:06 +0900 Subject: [PATCH 11/11] edit Dockerfile --- 16.04/Dockerfile | 2 ++ 21.04/Dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/16.04/Dockerfile b/16.04/Dockerfile index 83482b4..f9a1ff8 100644 --- a/16.04/Dockerfile +++ b/16.04/Dockerfile @@ -9,6 +9,8 @@ RUN apt update -y RUN apt install software-properties-common -y RUN apt-add-repository ppa:brightbox/ruby-ng RUN apt update -y +RUN apt-get update -y +RUN apt-get install glibc-source RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6:i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby2.4 ruby2.4-dev tmux -y RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install pip==20.0.1 diff --git a/21.04/Dockerfile b/21.04/Dockerfile index 9489d7a..9c4e4e7 100644 --- a/21.04/Dockerfile +++ b/21.04/Dockerfile @@ -6,6 +6,8 @@ ARG DEBIAN_FRONTEND=noninteractive RUN dpkg --add-architecture i386 RUN apt update -y +RUN apt-get update -y +RUN apt-get install glibc-source RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools libssl-dev libffi-dev build-essential libc6-i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full tmux -y RUN curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && rm get-pip.py RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip