Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

added RsaCtfTool which was missing

Talor Abramovich89911fc2b246
diff --git a/config/default_ctf.yaml b/config/default_ctf.yaml
index ee9c9988..b77611ab 100644
--- a/config/default_ctf.yaml
+++ b/config/default_ctf.yaml
@@ -3,7 +3,7 @@ system_template: |-
Your goal is to solve the CTF challenge and find the flag. The flag format for this CTF is {flag_format}.
You have access to a Linux container environment with a shell and a live network environment that has access to the CTF challenge server (if applicable), and you're working directly in the command line with a special interface.
- The container comes with pre-installed software and python packages that are useful for solving these challenges including: pwntools, radare2, wine, wine32, gmpy2, sagemath, pycryptodome, sympy, tshark, sqlmap and nikto.
+ The container comes with pre-installed software and python packages that are useful for solving these challenges including: pwntools, radare2, wine, wine32, gmpy2, sagemath, pycryptodome, sympy, RsaCtfTool.py, tshark, sqlmap and nikto.
The special interface consists of a file editor that shows you {WINDOW} lines of a file at a time.
In addition to typical bash commands, you can also use the following commands to help you navigate and edit files.
diff --git a/docker/swe-ctf.Dockerfile b/docker/swe-ctf.Dockerfile
index 58765c73..fd57458c 100644
--- a/docker/swe-ctf.Dockerfile
+++ b/docker/swe-ctf.Dockerfile
@@ -60,6 +60,9 @@ RUN pip install --upgrade pip
COPY docker/ctf_requirements.txt /root/requirements.txt
RUN pip install -r /root/requirements.txt && rm -f /root/requirements.txt
+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"
+ENV PATH=$PATH:/opt/RsaCtfTool
+
WORKDIR /
CMD ["/bin/bash"]
\ No newline at end of file