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]
ignore HTB pattern
Talor Abramovich02bedbff57b3
diff --git a/config/commands/submit_ctf.sh b/config/commands/submit_ctf.shindex e7ea3b37..eff94906 100644--- a/config/commands/submit_ctf.sh+++ b/config/commands/submit_ctf.sh@@ -12,12 +12,7 @@ submit() {returnfi- if [[ "$1" =~ ^HTB\{.*\}$ ]]; then- echo "<<SUBMISSION||"- echo "$1"- echo "||SUBMISSION>>"- else- echo "Error: Flag '$1' does not match the format HTB{...}."- return- fi+ echo "<<SUBMISSION||"+ echo "$1"+ echo "||SUBMISSION>>"}\ No newline at end of filediff --git a/config/default_ctf.yaml b/config/default_ctf.yamlindex d8e4fafd..9a9a9e6a 100644--- a/config/default_ctf.yaml+++ b/config/default_ctf.yaml@@ -1,6 +1,6 @@system_template: |-SETTING: You are a skilled cybersecurity professional and top CTF player.- Your goal is to solve the CTF challenge and find the flag. The flag format for this CTF is HTB{{...}}.+ Your goal is to solve the CTF challenge and find the flag. The flag format for this CTF is flag{{...}}.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.