Capture The Flag challenges are how most people actually learn offensive security — you get a vulnerable machine, a goal, and nothing else. Parrot Linux is a natural fit for this, because its Security edition arrives with most of the tools a CTF throws at you already installed. This guide covers a practical Parrot Linux CTF setup for the two platforms beginners meet first: Hack The Box and TryHackMe. Everything here targets intentionally vulnerable boxes you are authorised to attack — never real systems that belong to someone else.
Why Parrot Linux works well for CTFs
A CTF rewards having the right tool ready the moment you need it. Parrot’s Security edition bundles network scanners, web proxies, password crackers, and exploitation frameworks out of the box, so you spend time solving the box rather than installing software. Parrot 7.4, released in October 2026, is built on Debian 13 with a 7.1 kernel and ships KDE Plasma 6 by default, which keeps the desktop responsive even on modest hardware — useful when you are running a VPN, a browser, and several scans at once.
If you are still deciding which edition to grab, our comparison of the Home vs Security edition explains why CTF players almost always want Security. There is also a dedicated Hack The Box edition, tuned for that platform specifically.
Install Parrot in a virtual machine first
Run your CTF setup inside a VM, not on bare metal. A VM gives you snapshots, isolates your experiments from your main system, and is trivial to rebuild if something breaks. On most hardware VirtualBox or VMware does the job — we have a step-by-step walkthrough for installing Parrot Linux on VMware that applies directly here.
Whichever hypervisor you pick, give the VM at least 4 GB of RAM and two CPU cores. Scans and brute-forcing are hungry, and a starved VM will crawl. Take a clean snapshot immediately after installation and tool updates, so you can always roll back to a working baseline. If you later want to move the setup onto real hardware, nothing here changes — the same tools and workflow apply.
Update the system and tools
A fresh install is rarely current. Parrot uses its own upgrade wrapper on top of apt, which handles the rolling release correctly:
sudo parrot-upgradeIf you prefer the underlying commands, the equivalent is:
sudo apt update
sudo apt full-upgradeReboot if the kernel was updated. For the full reasoning on which command to use and when, see our guide on how to update and upgrade Parrot Linux safely.
Connecting to Hack The Box
Hack The Box machines live behind a VPN. After you create an account and start a machine, the platform gives you an OpenVPN configuration file, usually named something like username.ovpn. Parrot ships OpenVPN already, so connecting is one command:
sudo openvpn ~/Downloads/username.ovpnLeave that terminal open — closing it drops the VPN. In a second terminal, confirm you received a tunnel address on the tun0 interface:
ip addr show tun0Once you see an IP on tun0, ping the target machine’s IP to confirm the route works. If the ping fails but the VPN is up, the specific box may simply block ICMP — move straight to a port scan instead.
A note on the Pwnbox alternative
Hack The Box offers a browser-based Parrot environment called Pwnbox. It is convenient, but running your own local Parrot VM teaches you more and never counts against a usage timer. Treat Pwnbox as a backup for when you are away from your own machine.
Connecting to TryHackMe
TryHackMe works almost identically. Download your .ovpn file from your account’s access page, then connect the same way:
sudo openvpn ~/Downloads/thm-username.ovpnTryHackMe’s dashboard shows a green indicator when your connection is recognised. Many TryHackMe rooms also offer an in-browser attack box, which is a good fallback, but the local VPN route is faster and gives you your full toolset.
The core tools you will use every box
Across both platforms, a handful of tools come up constantly. They are all pre-installed on Parrot Security:
- Nmap — your first move on every box is a port scan. Our Nmap essential commands guide covers the scans you will run again and again.
- Gobuster / ffuf — once a web port is open, enumerate hidden directories. See our walkthrough on Gobuster and ffuf directory enumeration.
- Burp Suite — for inspecting and tampering with web requests by hand.
- Metasploit — for known-exploit delivery against vulnerable services.
- Hashcat / John — for cracking hashes you recover from a box.
A repeatable first-moves workflow
Beginners stall because they do not know what to do first. A simple, repeatable order removes that paralysis:
- Connect the VPN and confirm
tun0has an address. - Run a full TCP port scan with Nmap against the target IP.
- For each open service, run a version and default-script scan to identify what is running.
- If a web port is open, enumerate directories with ffuf or Gobuster.
- Research each discovered service and version for known weaknesses, then test only against your authorised target.
Write notes as you go. A text file per box, listing open ports, versions, and what you tried, turns a frustrating dead-end into a searchable record you learn from later.
Keep long tasks alive with tmux
CTF scans and brute-force runs can take a long time, and you do not want a closed terminal or a dropped SSH session to kill them. Parrot ships tmux, a terminal multiplexer that keeps sessions running in the background. Start a named session before a long scan:
tmux new -s box1Detach at any time with Ctrl+b then d; your scan keeps running. Reattach later with:
tmux attach -t box1tmux also lets you split one window into several panes, so you can watch a scan in one pane while you take notes or run a second tool in another. For CTF work that alone makes the terminal far less cramped.
Organise your workspace
Make a directory per machine so output does not pile up in your home folder:
mkdir -p ~/ctf/htb/boxname
cd ~/ctf/htb/boxnameRun scans from inside that folder and use each tool’s output flag to save results there. When you solve twenty boxes this way, you have twenty tidy folders of evidence and commands — a personal knowledge base worth more than any single flag.
Common setup problems and quick fixes
A few issues trip up almost everyone on their first box. If OpenVPN reports a TLS handshake timeout, your download of the config may be stale — download a fresh .ovpn from the platform and retry. If the VPN connects but every tool reports the host as down, remember that many lab boxes drop ICMP; tell Nmap to skip the ping check with -Pn and scan anyway. And if a scan feels impossibly slow, check that your VM has enough RAM and that you are not running an oversized wordlist on a tiny box. For wider performance tuning, our guide on how to speed up a slow Parrot Linux system covers the usual culprits.
Staying on the right side of the rules
Both platforms give you explicit permission to attack their target machines, and that permission is what makes this legal and ethical. It does not extend anywhere else. Do not point these tools at the platform’s own infrastructure, at other players, or at any system outside the designated lab. The skills transfer to real authorised engagements later; the habit of only attacking what you are allowed to attack transfers too, and matters more.
FAQ
Do I need the Security edition for CTFs?
It is strongly recommended. The Home edition is a clean desktop without the security toolset, so you would spend a lot of time installing tools the Security edition already includes.
My OpenVPN connects but I cannot reach the box. Why?
First confirm tun0 has an IP. If it does and ping still fails, the machine may block ICMP — run an Nmap scan with -Pn instead, since the box can be alive while ignoring pings.
Should I use Parrot in a VM or install it directly?
Use a VM for CTFs. Snapshots let you roll back a broken setup in seconds, and isolation keeps your experiments away from your main system.