Skip to content

Instantly share code, notes, and snippets.

@cimi
Last active May 5, 2020 14:43
Show Gist options
  • Select an option

  • Save cimi/3d15d980c98669c3425b9d09f92f21a5 to your computer and use it in GitHub Desktop.

Select an option

Save cimi/3d15d980c98669c3425b9d09f92f21a5 to your computer and use it in GitHub Desktop.

Revisions

  1. cimi created this gist May 5, 2020.
    23 changes: 23 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    # docker build -t ctf:ubuntu19.10 .
    # docker run --rm -v $PWD:/pwd --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -d --name ctf -i ctf:ubuntu19.10
    # docker exec -it ctf /bin/bash

    FROM ubuntu:19.10
    ENV LC_CTYPE C.UTF-8
    ENV DEBIAN_FRONTEND=noninteractive
    RUN dpkg --add-architecture i386 && \
    apt-get update && \
    apt-get install -y build-essential jq strace ltrace curl wget rubygems gcc dnsutils netcat gcc-multilib net-tools vim gdb gdb-multiarch \
    python python3 python3-pip python3-dev libssl-dev libffi-dev wget git make procps libpcre3-dev libdb-dev libxt-dev libxaw7-dev \
    python-pip libc6:i386 libncurses5:i386 libstdc++6:i386 libgmp3-dev libmpc-dev software-properties-common bsdmainutils libxrender1 && \
    pip install capstone requests pwntools r2pipe && \
    pip3 install pwntools keystone-engine unicorn capstone ropper && \
    pip3 install opencv-python tensorflow keras && \
    add-apt-repository ppa:longsleep/golang-backports && apt update && apt-get install -y golang-go && \
    mkdir tools && cd tools && \
    git clone https://github.com/JonathanSalwan/ROPgadget && \
    git clone https://github.com/radare/radare2 && cd radare2 && sys/install.sh && \
    cd .. && git clone https://github.com/pwndbg/pwndbg && cd pwndbg && git checkout stable && ./setup.sh && \
    cd .. && git clone https://github.com/niklasb/libc-database && cd libc-database && ./get && \
    cd .. && git clone https://github.com/Ganapati/RsaCtfTool.git && cd RsaCtfTool && pip3 install -r "requirements.txt" && \
    gem install one_gadget