You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
534 B
20 lines
534 B
FROM ubuntu:latest
|
|
|
|
RUN apt-get update && \
|
|
apt install -y python3 gcc musl-dev python3-pip gdb nano && \
|
|
python3 -m pip install ROPgadget && \
|
|
python3 -m pip install capstone && \
|
|
python3 -m pip install pwntools
|
|
|
|
COPY Bufferoverflow /root/Bufferoverflow
|
|
COPY ROPgadget /root/ROPgadget
|
|
|
|
WORKDIR /root/Bufferoverflow
|
|
|
|
RUN gcc main.c -o binaire -fno-stack-protector -ggdb -Wl,-z,relro,-z,now,-z,noexecstack -static
|
|
|
|
WORKDIR /root
|
|
|
|
ENTRYPOINT ["/bin/bash"]
|
|
|
|
#python3 ROPgadget/ROPgadget.py --binary Bufferoverflow/binaire |