15 lines
509 B
Docker
15 lines
509 B
Docker
|
FROM alpine:latest
|
||
|
RUN mkdir /PWD
|
||
|
WORKDIR /tmp
|
||
|
RUN apk add --no-cache gdb python3 gcc musl-dev bash py3-pip python3-dev linux-headers
|
||
|
RUN apk add --no-cache git cmake make
|
||
|
RUN git clone --depth 1 'https://github.com/unicorn-engine/unicorn.git'
|
||
|
WORKDIR /tmp/unicorn/bindings/python
|
||
|
RUN pip install .
|
||
|
RUN pip3 install pwntools
|
||
|
ADD spawn-on-host-tmux.sh /bin/spawn-on-host-tmux.sh
|
||
|
RUN chmod +x /bin/spawn-on-host-tmux.sh
|
||
|
RUN ln -s /bin/spawn-on-host-tmux.sh /bin/pwntools-terminal
|
||
|
WORKDIR /PWD
|
||
|
ENTRYPOINT ["sh"]
|