File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,24 @@ ENV LC_ALL en_US.UTF-8
16
16
ENV LANG en_US.UTF-8
17
17
ENV LANGUAGE en_US:en
18
18
19
- # Unicorn pypi package fails to setup on ARM, which we need to support for M1 Macs
19
+ # Unicorn and z3 both fail to build from pypi pacakges on ARM
20
20
# Build from source instead and generate our own Python bindings
21
- RUN git clone https://github.com/unicorn-engine/unicorn.git /opt/unicorn
21
+ RUN git clone https://github.com/unicorn-engine/unicorn.git --single-branch -b 2.0.0 /opt/unicorn
22
22
WORKDIR /opt/unicorn/bindings/python
23
23
RUN python3 setup.py install && rm -rf /opt/unicorn
24
24
25
+ RUN git clone https://github.com/Z3Prover/z3.git --single-branch -b z3-4.11.2 /opt/z3 && mkdir /opt/z3/build
26
+ WORKDIR /opt/z3/build
27
+ RUN cmake -DCMAKE_BUILD_TYPE=Release -DZ3_BUILD_PYTHON_BINDINGS=TRUE -DZ3_INSTALL_PYTHON_BINDINGS=TRUE .. && make -j && make install && rm -rf /opt/z3
28
+
25
29
RUN useradd --create-home --groups sudo --shell /bin/zsh wolvsec
26
30
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
27
31
WORKDIR /home/wolvsec
28
32
USER wolvsec
29
33
30
34
ENV PATH="${PATH}:/home/wolvsec/.local/bin"
31
35
32
- RUN pip3 install pwntools numpy ipython z3-solver
36
+ RUN pip3 install pwntools numpy ipython
33
37
34
38
RUN bash -c "$(curl -fsSL https://gef.blah.cat/sh)"
35
39
You can’t perform that action at this time.
0 commit comments