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]

Merge branch 'talor-branch' into connect_to_server

talorabr912a0ed81a2f
diff --cc config/default_ctf.yaml
index 060910f5,790333a4..fe35bafe
--- a/config/default_ctf.yaml
+++ b/config/default_ctf.yaml
@@@ -113,7 -113,6 +113,8 @@@ command_files
- config/commands/decompile.py
- config/commands/disassemble.py
- config/commands/debug.sh
+- config/commands/_connect.py
+- config/commands/server_connection.sh
+ - config/commands/forfeit.sh
parse_command: ParseCommandDetailed
history_processor: Last5Observations
diff --cc docker/swe-ctf.Dockerfile
index ca9e9aaf,d2782354..697527de
--- a/docker/swe-ctf.Dockerfile
+++ b/docker/swe-ctf.Dockerfile
@@@ -62,8 -62,8 +62,9 @@@ COPY docker/ctf_requirements.txt /root/
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"
+ COPY docker/number_theory__fixed /opt/RsaCtfTool/lib/number_theory.py
ENV PATH=$PATH:/opt/RsaCtfTool
+ENV PWNLIB_NOTERM=1
WORKDIR /