Extract the contents of a password-protected ZIP file using brute-force or dictionary attack techniques.
Technical Requirements
Language: Python 3.x or bash with standard ZIP cracking tools
Input file: /app/secret.zip (encrypted ZIP archive)
Output file: /app/flag.txt (extracted content)
Task Description
A ZIP file at /app/secret.zip is protected with a weak numeric password in the range 1000-9999. The archive contains a single file named flag.txt with a secret flag.
Your task is to:
Crack the password using brute-force or dictionary attack
Extract the contents to /app/flag.txt
Input Specification
File: /app/secret.zip
Encryption: Standard ZIP password protection
Password: 4-digit numeric (1000-9999)
Contents: Single file named flag.txt
Output Specification
File: /app/flag.txt
Format: Plain text
Content: The flag string extracted from the archive
Success Criteria
The task is complete when /app/flag.txt exists and contains the correct flag content from the encrypted archive.