Skip to content

Title: CTF - Read flag variable #53

@Farhadjan20200

Description

@Farhadjan20200

Title: CTF - Read flag variable

Summary:
This challenge required reading a flag variable from a local script. I inspected the repository, found config.py with flag="CTF-2025_win", and printed it in the required format.

Environment:

  • Python 3.10

Steps:

  1. Opened config.py and found flag = "CTF-2025_win".
  2. Ran:
    python -c "from config import flag; print(f'MHL{{{flag}}}')"
    Result:
    MHL{CTF-2025_win}

Screenshots:

  • images/config_py.png — shows the flag line in config.py
  • images/output.png — terminal output with final MHL{...}

Github:
https://github.com/FarhadLab/data-recovery-tool (public — sensitive data removed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions