(New) Asp original code query ideas

Source: Internet
Author: User

The method is simple. We know that files are generally used in ASP.

<! -- # Include virtual = "/file. asp" -->

 
<! -- # Include file = "file. asp" -->

 
Two Methods: Through the STM file, the ASP file can be directly storedSource codeOutput directly to the client browser.
Requirements:
1. The server must have shtml script ing
2. You can write a. STM/. shtm/. shtml suffix file to the server.
3. Check the file name and relative location.
Example:
Write the test. stm file to the server directory
<! -- # Include virtual = "/news/index. asp" -->
Or
<! -- # Include file = "index. asp" -->

 
Note: When "virtual =" is used, you must specify the relative location of the file for the root. When "file =" is used, you must specify the file for the upload directory, that is, test. the relative position of the STM.
Enter _ blank> http://www.xxx.com/news/test.htm in the browser to check the sourceCodeYou can see the source code of the index. asp file. Of course, we can also write multiple files to view the source code of multiple files at a time.
There are also many friends who use this method to attack and view the contents of files such as Conn to obtain the same database location! I am using it flexibly!

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.