雖然技術(shù)是百度學(xué)的狂男,但是還是要記錄一下,畢竟是一個(gè)腳本小子,記憶力不好煮仇。
WordPress安全檢測工具
先說一下WordPress是一個(gè)什么東西,它是一個(gè)相當(dāng)流行的內(nèi)容管理系統(tǒng)谎仲,它的組件有很多浙垫。它怎么讀呢,(我(此處為兒化音)的普瑞斯)郑诺。
那有沒有自動(dòng)的WordPress安全檢測工具呢夹姥?
答案是有的。辙诞。
Plecost是一款非常棒的wordpress安全檢測工具
WPSCAN是另外一款優(yōu)秀的wordpress安全檢測工具
CMS-Explorer是另外一款優(yōu)秀的wordpress安全檢測工具
Usage: /usr/bin/plecost [options] [ URL | [-l num] -G]
Google search options:
-l num? ? : Limit number of results for each plugin in google.(限制Google中每個(gè)插件的結(jié)果數(shù)量辙售。)
-G? ? ? ? : Google search mode(谷歌模式)
Options:
-n? ? ? ? : Number of plugins to use (Default all - more than 7000).(使用插件數(shù)量,默認(rèn)7000)
-c? ? ? ? : Check plugins only with CVE associated.(與插件關(guān)聯(lián))
-R file? : Reload plugin list. Use -n option to control the size (This take several minutes)(重新加載插件列表飞涂。)
-o file? : Output file. (Default "output.txt")(輸入文件)
-i file? : Input plugin list. (Need to start the program)(加載插件列表旦部。)
-s time? : Min sleep time between two probes. Time in seconds. (Default 10)(線程間隔時(shí)間)
-M time? : Max sleep time between two probes. Time in seconds. (Default 20)(單一線程間隔時(shí)間)
-t num? ? : Number of threads. (Default 1)(線程)
-h? ? ? ? : Display help. (More info: http://iniqua.com/labs/)
舉栗子
快速掃描:plecost http://SITE.com
詳細(xì)輸出:plecost -v http://SITE.com -o results.json
不檢查WordPress版本,僅適用于插件:plecost -nc http://SITE.com
強(qiáng)制掃描封拧,即使沒有檢測到Wordpress:plecost -f http://SITE.com
列出可用的模塊列表:plecost -nb -l
在列表中選擇一個(gè)單詞列表:plecost -nb -w plugin_list_10.txt http://SITE.com
多線程:plecost -c 10 http://SITE.com
github:https://github.com/iniqua/plecost
wpscan也差不多志鹃,直接github
https://github.com/wpscanteam/wpscan#wpscan-arguments
.htaccess and WordPress
不管是保護(hù)wordpress還是其他任何網(wǎng)頁,.htaccess文件都是非常有用的泽西。什么是.htaccess曹铃?
概述來說,htaccess文件是Apache服務(wù)器中的一個(gè)配置文件捧杉,它負(fù)責(zé)相關(guān)目錄下的網(wǎng)頁配置陕见。通過htaccess文件,可以幫我們實(shí)現(xiàn):網(wǎng)頁301重定向味抖、自定義404錯(cuò)誤頁面评甜、改變文件擴(kuò)展名、允許/阻止特定的用戶或者目錄的訪問仔涩、禁止目錄列表忍坷、配置默認(rèn)文檔等功能。
我們下面會(huì)講如何配置.htaccess保護(hù)wordpress:
首先熔脂,限制wp-admin文件夾被非管理員訪問佩研。
order deny,allow
allow from 116.76.45.1
deny from all
值得注意的是,你需要把.htaccess文件放在wp-damin目錄下霞揉。
如果你想要阻止某個(gè)IP段訪問(注意116.76.45.是一個(gè)IP段)
order allow,deny
deny from 116.76.45.
allow from all
我們可以再增加一些腳本執(zhí)行的限制
RemoveHandler cgi-script .cgi .php .py
AddType text/plain .cgi .php .py
原文:http://www.freebuf.com/articles/808.html