Tags: jail beginner php 

Rating:

UIUCTF: PHPFUCK

date
solved in time of CTF
warmup category score solves

Description

i hate php

http://phpfuck.chal.uiuc.tf

author: arxenix

Tags

Jail, PHP, Beginner

Attached files

  • None

Summary

Flag is found within the “flag.php” file on the website. (View Source)

Flag

uiuctf{pl3as3_n0_m0rE_pHpee}

Detailed solution

Connecting to their website, we can see this website is running PHP Version 7.4.3.

Root

Furthermore, it is commented at the top that “Flag is inside ./flag.php”

When we try to navigate to /flag.php, we just see “No flag for you!”

Flag.php

If we inspect the source of this page (CTRL+U), we are greeted with the flag.

Final Flag

This was the easy version of phpfuck_fixed.

Original writeup (https://github.com/Diplodongus/CTFs/blob/main/UIUCTF2021/PHPFUCK.md).