差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版 前次修改 | |||
tech:sqlmap [2018/04/16 04:04] – [參考網址] Jonathan Tsai | tech:sqlmap [2019/07/12 08:21] (目前版本) – jonathan_tsai | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 檢測 SQL Injection 的工具 - SQLMap ====== | ||
+ | * 最近剛好有網站被 [[https:// | ||
+ | |||
+ | * SQLMap 檢測運行環境 : | ||
+ | * CentOS 6.9 x86_64 / CentOS Linux release 7.6.1810 (Core) | ||
+ | * python-2.6.6-66 / python-2.7.5-80 | ||
+ | |||
+ | ===== 安裝程序 ===== | ||
+ | * 只要下載解壓縮就可執行< | ||
+ | wget https:// | ||
+ | mv master master.tar.gz | ||
+ | tar -zxvf master.tar.gz | ||
+ | cd sqlmapproject-sqlmap-* | ||
+ | </ | ||
+ | |||
+ | ===== 基本檢測語法 ===== | ||
+ | * 要檢測的網址 - http:// | ||
+ | * SQLMap 執行語法 <code sh> | ||
+ | python sqlmap.py -u " | ||
+ | </ | ||
+ | python sqlmap.py --url=" | ||
+ | </ | ||
+ | * 如果有 SQL Injection 會出現類似以下的訊息< | ||
+ | ___ | ||
+ | __H__ | ||
+ | ___ ___[.]_____ ___ ___ {1.2.4.3# | ||
+ | |_ -| . [' | ||
+ | |___|_ | ||
+ | |_|V |_| | ||
+ | |||
+ | : | ||
+ | : | ||
+ | [22:01:46] [INFO] heuristic (basic) test shows that GET parameter ' | ||
+ | [22:01:47] [INFO] heuristic (XSS) test shows that GET parameter ' | ||
+ | : | ||
+ | [22:01:47] [WARNING] reflective value(s) found and filtering out | ||
+ | : | ||
+ | [22:07:23] [INFO] the back-end DBMS is MySQL | ||
+ | [22:07:23] [INFO] fetching banner | ||
+ | [22:07:24] [INFO] retrieved: 5.6.39-83.1-56 | ||
+ | web server operating system: Linux CentOS 5.10 | ||
+ | web application technology: PHP 5.2.10, Apache 2.2.3 | ||
+ | back-end DBMS: MySQL >= 5.0 | ||
+ | banner: | ||
+ | </ | ||
+ | * 如果沒有問題, | ||
+ | ___ | ||
+ | __H__ | ||
+ | ___ ___[,]_____ ___ ___ {1.2.4.3# | ||
+ | |_ -| . [.] | .'| . | | ||
+ | |___|_ | ||
+ | |_|V |_| | ||
+ | : | ||
+ | : | ||
+ | [22:09:35] [WARNING] heuristic (basic) test shows that GET parameter ' | ||
+ | : | ||
+ | [22:24:57] [WARNING] GET parameter ' | ||
+ | : | ||
+ | : | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== 參考網址 ===== | ||
+ | * https:// | ||
+ | |||
+ | {{tag> | ||