Nmap Information Collection: Service and OS Versions
Determining service versions using version detection
Flag -sVforces Nmap to connect to open ports and send a series of probes from the database nmap-service-probesResponses are compared against signatures to identify specific software and...
Why does a CTF player need Nmap port scanning?
Each CTF box is a machine with a set of services. One or more of them contain a vulnerability that leads to a flag. The goal is to find these services, determine their versions, and figure out where to dig. This is exactly what Nmap—Network Mapper...
PHP Wrappers and LFI Vulnerability: Reading the Source Code
If it works on a CTF task with a PHP backend include()This isn't just path traversal—it's an LFI vulnerability with access to PHP wrappers. The difference is critical: path traversal allows file reading, while LFI can allow file...
Business logic directory traversal attacks
Before we go over payloads, let's look at motivation—both in CTFs and beyond. Path traversal isn't an end in itself, but an entry point for an escalation chain. Read .env— received the password for the database. Read the SSH key from...
Parsing CTF tasks reverse: from the line "Wrong" to the flag
The algorithm for solving an Easy-level problem is a repeatable pattern. Here it is in full.
Step 1 - terminal reconnaissance. file→ format and architecture. strings→ suspicious lines. ltrace→ is the password leaking? strcmpIf ltrace...
What you'll need before launching Ghidra
Ghidra is a free static software analysis framework from the NSA, open-sourced in 2019. Its main advantage over IDA Free is its built-in decompiler, which converts machine code into C-like pseudocode without a license or additional modules. Binary code...
Nmap version detection and banner grabbing
Knowing that port 80 is open isn't enough. You need to determine what's running on it: Apache, Nginx, Python SimpleHTTPServer, or a custom application. The service version determines whether there's a public exploit for it.
Flag -sVEnables version...
Network Protocols for Penetration Testing: Where Scanning Fits in the Attack Chain
Before delving into nmap flags, why bother with port scanning? In a real attack or CTF, port scanning is the first active step after obtaining the target's IP address. According to the MITRE ATT&CK...
Why write a write-up if the problem is already solved
By the time you finish a CTF task, your brain has already moved on to the next one. Writing down your solution seems like a waste of time—you already remember everything. A week later, you remember half of it. A month later, you remember the...
Good and Bad Write-Ups: A CTF Task Analysis Using an Example
The best way to understand the difference is to see both options side by side. Let's take a fictitious task: "Holiday Snap" (Forensics, 100 pts). Description: "The admin posted a vacation photo. Nothing interesting." File...
Burp Suite Repeater – Manual Vulnerability Scanning
Repeater is the workhorse of CTF. It accounts for 80% of web task execution time. Found an interesting request in HTTP History? Right-click → Send to Repeater (or Ctrl+R).
In the Repeater tab, on the left is the request, on the right is an...
What is Burp Suite and why is it needed for web CTF assignments?
Burp Suite is an HTTP interception proxy from PortSwigger. It intervenes between the browser and the target web application, passing every request and response through it. It reveals information the browser typically hides: hidden...
Hidden Data in Audio: Spectrograms and DTMF
Audio steganography is a category that Russian-language resources barely cover. Meanwhile, audio-based problems are becoming increasingly common in CTF tournaments, and if you only solve images, you'll barely cover half the steganography category...
How Data Is Hidden in Files: Four Steganography Techniques in Pictures
Before launching any tools, it's important to understand what exactly we're looking for. All methods for embedding hidden data in files fall into four families—from trivial ones to those requiring specialized steganalysis...
SQLMap for Beginners: Automation after Manual Exploration
For beginners, sqlmap isn't the first tool in the chain, but the final one. It's run after manually confirming the injection. Mindlessly scanning all parameters generates noise, wastes time, and yields false positives. I've seen people...
How to Detect SQL Injection with Single Quote
Finding SQL injections using single quotes is the first skill that distinguishes a conscious approach from mindlessly running scanners. The idea is simple: the symbol '— a string separator in SQL. If an application inserts input directly into a...
Shell Scripting for Hacking: Linking Tools Through Pipes
The power of bash is in its pipes. Each utility does one thing well, and bash glues them together into a chain. According to hadess.io, "the real power of Bash in security is piping output between tools." Let's look at some common...
Bash Penetration Test Automation: Why CTF Scripts?
Bash is available on any Linux system. Python may be missing on stripped-down CTF containers and minimal Docker images, but sh, grep, awk And sedcan even be found in BusyBox. On one of the recent assignments, the remote machine contained only...
Extracting files from pcap using Export Objects
File → Export Objects → HTTPOpens a list of all files transferred via HTTP during the capture: images, scripts, documents, and binaries. Similar menus are available for SMB, TFTP, and email attachments (IMF). Essentially, this is automatic...
The First Five Minutes: Parsing Pcap Files in Wireshark
The most common mistake in CTF is opening pcap and reading packets from top to bottom. In a dump of 10-20,000 packets, this is a guaranteed waste of time. The first five minutes are reconnaissance: figuring out where to dig and what to...