A Capture The Flag (CTF) competition is a cybersecurity challenge where participants find hidden "flags" (strings like flag{...}) by solving security puzzles. CTFs test every skill you've learned: recon, web exploitation, cryptography, forensics, and more.
flag{...} or CTF{...}
Common web CTF challenges test your ability to find hidden endpoints, manipulate requests, and exploit OWASP vulnerabilities.
Crypto challenges require you to break or reverse custom encryption schemes. Start by identifying the cipher type from the output format.
= or ==. Decode with base64 -d.
xxd -r -p to decode.
rot13 or brute-force all 25 shifts.
Forensics challenges give you a file β an image, pcap, memory dump, or disk image β and you must find the flag hidden within.
file and strings on an unknown file first. Check the file's metadata and trailing bytes.
You've found a file called challenge.bin. Running file on it says "PNG image data". The image looks like a blank white square, but you suspect steganography.
What was the flag hidden in the file's strings? Try it yourself using any PNG file.
Follow this scenario to complete your mock CTF. Document each step and the flag you find.
Scan the target 10.10.10.5 with Nmap. Which ports are open?
Port 80 hosts a login page. Try SQL injection: admin' OR '1'='1
You find a Base64 string: ZmxhZ3tzMW1wbDMtY3RmITB9. Decode it.
Combine all your findings. Submit the final flag.
1. What Nmap flag performs a stealth SYN scan?
2. Which OWASP vulnerability injects scripts into web page output?
3. What is the main difference between encryption and hashing?
4. What CVSS score range indicates a Critical vulnerability?
5. In a CTF, what tool would you use to extract hidden data from an image?