When the website does not allow uploading files such as asp cer cdx htr

Source: Internet
Author: User

When a Website Cannot be uploaded
When uploading files such as asp cer cdx htr, upload an stm file with the following content:
<! -- # Include file = "conn. asp" -->
Directly request this stm file, and the conn. asp will be displayed at a glance, and the database path will be ready!
After reading the introduction of shtml, I suddenly realized that I finally understood it!
As mentioned above,
<! -- # Include file = "conn. asp" -->
It is an SSI command, which serves to bring the content of "info.htm" to the front page. When a visitor visits the page, his htmldocument displays the content of info.htm.
I tried it locally! A test. stm file is created under the my iis directory with the following content:
<! -- # Include file = "OK. asp" -->
Another Trojan file named OK. asp is stored in the same directory.
The request for test. stm in the browser is blank.
But when I checked the source code, I was so dizzy that it turned out to be the content of my asp file!
In this way, we can use this to obtain the web conn file of the target machine to obtain the database path,
But one premise is that the server does not delete the extension of stm or shtml.

========================================================== ================

Currently, files such as asp, asa, and cer cannot be uploaded on many websites, and the classic upload vulnerability does not exist. However, many websites can still upload other files, such as shtm or shtml files, I found a method where you can create a local shtml file and enter <! -- # Include file = "conn. asp" -->. Conn. asp is the asp file you want to read. Of course, it is the file connecting to the database. Haha, then upload it, and finally request this shtml file in your browser ,? Why is it blank ?, Haha, check the code of this webpage, that is, the code of conn. asp. I don't need to tell you what to do.
 

 

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.