ctfhub web information disclosure backup file download (website source code, back file)

Website source code

Insert picture description here

Enter the environment, first we use bp to grab the package
Insert picture description here

Add two payloads after the HTTP request method GET/, one for blasting the file name and one for blasting the suffix name

Insert picture description here
Insert picture description here
Insert picture description here

Learn that the backup form of the webpage source code is www.zip, download the webpage source code
Insert picture description here

Open notepad file
Insert picture description here

Found this thing
Insert picture description here

You can get the flag by accessing the url

Bak file

Insert picture description here

Open the environment, we check the source code and find that the backup file is bak, and we know that the flag is in index.php, try index.php.bak
Insert picture description here

Download and open the file and we get the flag

Guess you like

Origin blog.csdn.net/weixin_52268949/article/details/113482786
Recommended