Open folder
Launch the app and open your practice folder.
Open your working folder, read the challenge source, and use the agent to find the hidden string while considering how to design a solvable ctf challenge. You keep full control of the environment and the results.
Launch the app and open your practice folder.
Use read_file to view the challenge code.
Use Shell to execute your solve script.
Review the output card and the exit code.
index.html2 lineshidden1 matchsolve.pysavedpython solve.pyexit 0# Web Challenge 1
# comment
category: web
given: a login page and its source
idea 1: read the form code
idea 2: check the html source
status: solved
flag: submitted on the platform
notes: used grep to find strings
This plain text file records the category, the given files, the ideas you tried, and the final status of your practice challenge.
The agent uses read_file to load the challenge source into the chat context and you see the raw text immediately while you review the matches to find the hidden string. Then grep searches. You can use grep to search for specific strings in the file. The agent displays the search results in a clear card for your review. You review the matches to find the hidden string and understand the code structure. This approach works for any text file and helps you solve the capture the flag game. You can write a script to process the data and the agent runs it for you. This method is effective for ctf in cyber security tasks, so ask which web security lab to do first.
The agent runs your script in the terminal and shows the real output so you can verify the result immediately and clearly before moving on. See the exit code. Review the diff and the output, test the result yourself. This method helps you solve these tasks effectively and with clarity. You see the exit code clearly and understand the status immediately. The output is saved to a file for later review. You review the diff before accepting changes to ensure correctness. This workflow supports your specific needs for each challenge type, and setting up a pentest lab for students is useful.