Programming Level 1 20 points

09. Python Automation - File Reading

Mission

In security work, programming is essential for processing large amounts of data. In this challenge, you'll use Python to read a file and find the flag. There's a file called "data.txt" with 100 lines of text, and it contains one flag. Complete and run this Python code: ```python # Open data.txt and read each line with open('data.txt', 'r') as file: for line in file: # Check if each line contains "FLAG{" if '____' in line: # Fill this in print(line.strip()) ```

#python#programming#automation#files

Clear it in 3 steps

Not started
  1. Start the environment

  2. Investigate the target

  3. Submit the flag