149 words
1 minute
Exploitation - KnightCTF 2026

Exploitation - KnightCTF 2026#

Challenge Info#

  • Category: Forensics / Exploitation

Description#

The attacker appears to have identified a web application running on our server. We need to determine what application was being targeted. Find the version and username associated with the application in the capture.

Flag Format: KCTF{version_username}

Solution#

Step 1: Initial Analysis#

Downloaded pcap2.pcapng and analyzed HTTP traffic using tshark.

Step 2: Identify the Web Application#

Found WordPress installation at /wordpress/ on 192.168.1.102:

GET /wordpress/ HTTP/1.1
GET /wordpress/wp-login.php HTTP/1.1

Step 3: Extract WordPress Version#

Found version in the RSS/Atom feed generator tag:

Terminal window
strings pcap2.pcapng | grep "version=" | head -10

Output:

<generator uri="https://wordpress.org/" version="6.9">WordPress</generator>

Version: 6.9

Step 4: Find Username#

Extracted HTTP POST data from login attempts:

Terminal window
tshark -r pcap2.pcapng -Y 'http.request.method == POST' -T fields -e http.file_data

Decoded the hex POST data:

log=kadmin_user&pwd=f750d046

Also confirmed via wp-json API response:

[{"id":1,"name":"kadmin_user","url":"http://192.168.1.102/wordpress",...}]

Username: kadmin_user

Key Observations#

  • Attacker (192.168.1.104) was performing directory bruteforce on the WordPress installation
  • Login attempts were captured showing credentials
  • The WordPress user kadmin_user is the administrator (user id=1)

Flag#

KCTF{6.9_kadmin_user}

Author: MR. Umair
Date: January 20, 2026
Competition: KnightCTF 2026

Exploitation - KnightCTF 2026
https://ctf-writeups-webb.vercel.app/posts/knightctf-2026-forensics-exploitation/
Author
Umair Aziz
Published at
2026-03-17
License
CC BY-NC-SA 4.0