Skip to content

Commit 8da9053

Browse files
committed
Update Dockerfile to not build unicorn from source since pip works now
1 parent e19cb95 commit 8da9053

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

docker/Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,25 @@ RUN apt-get install -y apt-transport-https
77
RUN apt-get install -y \
88
build-essential gdbserver cmake pkg-config \
99
strace curl wget gcc zsh vim gdb git netcat tmux \
10-
procps python3 python3-pip python3-dev file binutils sudo locales
10+
procps python3 python3-pip python3-dev file binutils sudo locales \
11+
ruby-standalone
12+
13+
RUN gem install one_gadget
1114

1215
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
1316

1417
ENV LC_ALL en_US.UTF-8
1518
ENV LANG en_US.UTF-8
1619
ENV LANGUAGE en_US:en
1720

18-
RUN git clone https://github.com/unicorn-engine/unicorn.git /opt/unicorn
19-
WORKDIR /opt/unicorn/bindings/python
20-
RUN python3 setup.py install && rm -rf /opt/unicorn
21-
2221
RUN useradd --create-home --groups sudo --shell /bin/zsh wolvsec
2322
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
2423
WORKDIR /home/wolvsec
2524
USER wolvsec
2625

2726
ENV PATH="${PATH}:/home/wolvsec/.local/bin"
2827

29-
RUN pip3 install pwntools numpy ipython
28+
RUN pip3 install pwntools numpy ipython z3-solver
3029

3130
RUN bash -c "$(curl -fsSL https://gef.blah.cat/sh)"
3231

docker/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
# Builds the docker image for amd64 and arm64 and pushes it to docker hub
4+
5+
docker buildx build --platform=linux/arm64,linux/amd64 --tag qdwight/wolvsec --push .

0 commit comments

Comments
 (0)