wechall_training:php LFI (Exploit, PHP, Training)

Source: Internet
Author: User

Your mission is to exploit this code, which have obviously an LFI vulnerability:

GeSHi ' Ed PHP code
$filename = ' pages/'. (Isset ($_get["file"])? $_get["File"]: "Welcome"). HTML '; include $filename;

There is a lot of important stuff in. /solution.php, so please include and execute the this file for us.

Here is a few examples of the script in action (in the box below):

For debugging purposes, your may look at the whole source again, also as highlighted version.


Because the string after adding a ". html", completely do not know how to deal with, to search the puzzle, found can be truncated with% 00来, and then tried it? file=. /.. /solution.php% 00, found this file does not exist, looked at the problem finding is? File=. /.. /solution.php% 00..

wechall_training:php LFI (Exploit, PHP, Training)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.