Skip to content

Instantly share code, notes, and snippets.

@xmpf
Created July 21, 2023 19:40
Show Gist options
  • Save xmpf/bb164cc9016447d7d9677f7ebeae43af to your computer and use it in GitHub Desktop.
Save xmpf/bb164cc9016447d7d9677f7ebeae43af to your computer and use it in GitHub Desktop.
Dockerfile for rsactftool with neca installed
FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update -y && \
apt install -y \
libgmp-dev libmpfr-dev libmpc-dev python3 python3-dev python3-pip gcc musl-dev \
libssl-dev libffi-dev git gcc g++ make cmake git sagemath
# install neca
RUN git clone --depth 1 https://github.com/jix/neca.git && \
cd neca && \
cmake . && \
make -j2 && \
make install
WORKDIR /opt
RUN git clone https://github.com/Ganapati/RsaCtfTool.git
WORKDIR /opt/RsaCtfTool
RUN pip install -r "requirements.txt"
WORKDIR /data
ENTRYPOINT ["/opt/RsaCtfTool/RsaCtfTool.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment