Tags: jail beginner php
# UIUCTF: PHPFUCK
![solved in time of CTF](https://img.shields.io/badge/solved-in%20time%20of%20CTF-brightgreen.svg)
i hate php
**Jail**, **PHP**, **Beginner**
## Attached files
Flag is found within the “flag.php” file on the website. (View Source)
## Detailed solution
Connecting to their website, we can see this website is running PHP Version 7.4.3.
![Root](https://raw.githubusercontent.com/Diplodongus/CTFs/main/UIUCTF2021/img/PHPFUCK/1-root.png?raw=true "Root of website given")
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](https://raw.githubusercontent.com/Diplodongus/CTFs/main/UIUCTF2021/img/PHPFUCK/2-flag.php.png?raw=true "Flag.php page")
If we inspect the source of this page (**CTRL+U**), we are greeted with the flag.
![Final Flag](https://raw.githubusercontent.com/Diplodongus/CTFs/main/UIUCTF2021/img/PHPFUCK/3-flag.png?raw=true "Final Flag")
This was the easy version of phpfuck_fixed.