Download ASP source code using the stm feature

Source: Internet
Author: User

If the shell cannot be uploaded, you can upload an stm file with the following content:
<! -# Include file = "conn. asp"->
Directly accessing this stm file will find a blank file, but right-click to view the source code, you will find that conn. asp is 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"->
The contents of the statement.
I tried it locally! A test. stm file is created under the my iis directory with the following content:
<! -# Include file = "OK. asp"->
Another file named OK. asp is put under 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.

From: WebShell's Blog

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.