Break through delay injection and blind speed limit, use DNS injection to get data quickly

Source: Internet
Author: User
Tags vps

DNS injection is a DNS resolution request for a domain name through a database to achieve fast data acquisition purposes.

Principle:

Send a picture of yourself first

Usually in the presence of an injection point without data echo injection, we need to use delayed injection or blind (Boolean injection), this injection speed is very slow, need a word Fu Chai solution, and very easy to hang Web site, at this time how we quickly get data. Below I will explain in detail the MySQL DNS injection operation steps.

Things to prepare:

Domain 2, VPS one (loaded well sqlmap)

There's no such thing as Cloudeye, there's a free http://ceye.io/.

First came our first domain md5crack.cn modify the domain name DNS server

Here I changed domain DNS to my second domain name Test.itgou.club, and then the Test.itgou.club domain name resolution to their own VPS IP.

Then wait for DNS to take effect.

The local injection point (inject.php) is then tested with the following code:

1 <?php
2 $link = mysql_connect ("localhost", "root", "root");
3 mysql_select_db ("MySQL", $link);
4 $sql = "Select password from user where user= ' {$_get[' user ']} '";
5 Echo $sql;
6 mysql_query ($sql);
7 ?>

You can see that the injection point has no other way to get the data except for the deferred injection, but we have a DNS injection that doesn't need to be injected without delay.

Then come to SSH login to our VPS and go into Sqlmap's sqlmap/lib/request/directory

Here's a dns.py, what's this for, a script that listens to 53 ports (DNS ports) and uses him to get the data.

Then we run this script and listen for Port 53.

Access Injection point: http://localhost/inject.php?user=root

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.