Skip to content

Missing functions and imports #3

@Schmiddisen

Description

@Schmiddisen

Hello maintainers,

today I took the time and reproduced the CTF-Dojo. During this process, I've encountered some issues that I want to share:

  1. requirements.txt is missing
  2. litellm import missing in ctf_forge.py
  3. function validate_and_fix_dockerfile() does not exist anymore (imported and used in ctf_forge.py) > I have replaced the call with validate_dockerfile()
  4. in generation.py, the following functions and colors have to be imported:
from forge.ctf_forge import (
    generate_adaptive_docker_setup,
    generate_fallback_dockerfile,
    generate_interpreter_fix_commands,
    generate_library_fix_commands,
    generate_shebang_fix_command,
    get_binary_architecture,
    get_category_specific_guidelines,
    get_enhanced_file_analysis,
    select_compatible_base_image,
    detect_custom_interpreter_paths,
    detect_node_files,
    detect_problematic_shebangs,
    detect_provided_libraries,
    detect_python_files,
    test_binary_library_configurations,
    call_by_litllm
)

RED = "\033[91m"
GREEN = "\033[92m"
YELLOW = "\033[93m"
BLUE = "\033[94m"
RESET = "\033[0m"

Note that I copied ctf_forge into the forge directory and had to delete some functions due to circular imports.

  1. The default ctf chosen for the demo is "ptmcasino" instead of a true random ctf

Everything regarding the templates is confusing and I couldn't really figure out what that should achieve. It worked without them, but still curious.

I'll be running enigma+ and test some models, thank you for your work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions