enigma.Dockerfile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. FROM sweagent/swe-agent:0.6.1
  2. ARG TARGETARCH
  3. ENV DEBIAN_FRONTEND=noninteractive
  4. RUN apt-get update && apt-get install -y \
  5. build-essential \
  6. vim \
  7. cmake \
  8. libgtk2.0-dev \
  9. pkg-config \
  10. libavcodec-dev \
  11. libavformat-dev \
  12. libswscale-dev \
  13. libssl-dev \
  14. libffi-dev \
  15. libtbb2 \
  16. libtbb-dev \
  17. libjpeg-dev \
  18. libpng-dev \
  19. libtiff-dev \
  20. ubuntu-desktop \
  21. bc \
  22. bsdmainutils \
  23. tshark \
  24. openjdk-17-jdk \
  25. && rm -rf /var/lib/apt/lists/*
  26. # Install radare2
  27. WORKDIR /tmp
  28. RUN apt-get update && apt-get install -y curl netcat qemu-user qemu-user-static
  29. RUN curl -LO https://github.com/radareorg/radare2/releases/download/5.9.4/radare2_5.9.4_amd64.deb
  30. RUN dpkg -i radare2_5.9.4_amd64.deb
  31. # Sagemath
  32. RUN apt-get update && apt-get install -y sagemath
  33. # sqlmap and nikto
  34. RUN apt-get install -y sqlmap nikto
  35. # Install apktool and jadx
  36. RUN apt-get install -y apktool
  37. RUN wget https://github.com/skylot/jadx/releases/download/v1.4.7/jadx-1.4.7.zip
  38. RUN unzip -d /usr/local jadx-1.4.7.zip
  39. RUN rm -f jadx-1.4.7.zip
  40. # Install wine & wine32
  41. RUN dpkg --add-architecture i386 && apt update && apt install -y wine wine32
  42. # Install ghidra
  43. RUN cd /opt \
  44. && wget -O ghidra.zip https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_11.0.1_build/ghidra_11.0.1_PUBLIC_20240130.zip \
  45. && unzip ghidra.zip \
  46. && rm -f ghidra.zip
  47. ENV PATH=$PATH:/opt/ghidra_11.0.1_PUBLIC/support:/opt/ghidra_11.0.1_PUBLIC/Ghidra
  48. COPY docker/ghidra_scripts /ghidra_scripts
  49. # Install python requirements
  50. ENV PIP_NO_CACHE_DIR=1
  51. RUN pip install --upgrade pip
  52. COPY docker/ctf_requirements.txt /root/requirements.txt
  53. RUN pip install -r /root/requirements.txt && rm -f /root/requirements.txt
  54. RUN cd /opt && git clone https://github.com/RsaCtfTool/RsaCtfTool.git && apt-get install -y libgmp3-dev libmpc-dev && cd RsaCtfTool && pip3 install -r "requirements.txt"
  55. COPY docker/number_theory__fixed /opt/RsaCtfTool/lib/number_theory.py
  56. ENV PATH=$PATH:/opt/RsaCtfTool
  57. ENV PYTHONUNBUFFERED=1
  58. ENV PWNLIB_NOTERM=1
  59. # Install binwalk
  60. RUN apt-get update && apt-get install -y binwalk
  61. # Install sudo just in case the model still uses it
  62. RUN apt-get install -y sudo
  63. WORKDIR /
  64. CMD ["/bin/bash"]