DVWA Series 4 using Sqlmap for medium level injection

Source: Internet
Author: User

Below we try to use Sqlmap for injection at medium level.

First, to detect the presence of an injection point, execute the following command:

Sqlmap.py-u Http://192.168.80.1/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit

The test results did not find the injection point, because DVWA needed to be logged in before it could be used, so a cookie for the current session was needed to maintain the connection state during the infiltration process. Use Burpsuite to intercept packets and get cookies.

650) this.width=650; "Style=" background-image:none;border-bottom:0px;border-left:0px;padding-left:0px; padding-right:0px;border-top:0px;border-right:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http ://s3.51cto.com/wyfs02/m02/77/01/wkiom1zg2kgqj9haaad_q_zcbac862.png "height=" 145 "/>

Add the--cookie parameter to the SQLMAP and continue with the injection.

Sqlmap.py-u "Http://192.168.80.1/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit"--cookie= "security=medium; phpsessid=2f120ee00f32798d11de936832312549 "

This successfully detects the injection point.

650) this.width=650; "Style=" background-image:none;border-bottom:0px;border-left:0px;padding-left:0px; padding-right:0px;border-top:0px;border-right:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http ://s3.51cto.com/wyfs02/m00/77/01/wkiom1zg2kob6b34aae66touvxi509.png "height=" 296 "/>

A separate series of posts will be sent to Sqlmap and Burpsuite.

This article from "a pot of turbid wine" blog, reproduced please contact the author!

DVWA Series 4 using Sqlmap for medium level injection

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.