2013年6月24日 星期一
CentOS 6.4 64 bit w3af_gui 無法執行 ( w3af )
w3af 請參考
http://xrcd2.blogspot.tw/2012/07/w3af-waf-for-apache.html
root@w3af w3af]# ./w3af_gui
On Debian systems please install the following operating system packages before running the pip installer:
sudo apt-get install build-essential python-setuptools git python-pip graphviz python2.7-dev libsqlite3-dev libxslt1-dev python-gtksourceview2 python-gtk2 libxml2-dev
Your python installation needs the following modules to run w3af:
clamd github git.util esmre phply chardet pdfminer concurrent.futures guess_language cluster msgpack ntlm xdot
After installing any missing operating system packages, use pip to install the remaining modules:
sudo pip install clamd PyGithub GitPython esmre chardet pdfminer futures guess-language cluster msgpack-python python-ntlm xdot
sudo pip install -e git+git://github.com/ramen/phply.git#egg=phply
A script with these commands has been created for you at /tmp/w3af_dependency_install.sh
=======================
python-setuptools
Easy Install 是一個 Python的模組化工具 (easy_install),是包含在 setuptools rpm 中,提供Python自動化程式下載、編譯、安裝和管理的模組。
使用方法 #easy_install [套件名稱]
如 easy_install pip
或使用 #pip [套件名稱] 也行
更詳細的介紹請自行參閱
http://www.openfoundry.org/tw/tech-column/8536-introduction-of-python-extension-management-tools
2013年6月13日 星期四
簡單的 linux H.A 架構 keepalived (linux vrrp) Part III
延續 簡單的 linux H.A 架構 這個主題,
Part I
http://xrcd2.blogspot.tw/2013/04/linux-ha-keepalived-linux-vrrp.html
Part II
http://xrcd2.blogspot.tw/2013/05/linux-ha-keepalived-linux-vrrp-part-ii.html
加入 notify shell
notify_master "/etc/keepalived/notify_master.sh" #變成 master 時執行的 shell
notify_backup "/etc/keepalived/notify_backup.sh" #變成 backup 時執行的 shell
notify_fault "/etc/keepalived/notify_fault.sh" #故障時執行的 shell
notify "/etc/keepalived/notify.sh" # 狀態轉換時執行的 shell
加入的位置如下:
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 1
priority 100
advert_int 3
smtp_alert
authentication {
auth_type PASS
auth_pass 1234
}
virtual_ipaddress {
192.168.1.1
}
notify_master "/etc/keepalived/notify_master.sh"
notify_backup "/etc/keepalived/notify_backup.sh"
track_script {
check_shell
chk_httpd
chk_http_port
chk_https_port
chk_8080_port
}
track_interface{
eth0
}
}
Part I
http://xrcd2.blogspot.tw/2013/04/linux-ha-keepalived-linux-vrrp.html
Part II
http://xrcd2.blogspot.tw/2013/05/linux-ha-keepalived-linux-vrrp-part-ii.html
加入 notify shell
notify_master "/etc/keepalived/notify_master.sh" #變成 master 時執行的 shell
notify_backup "/etc/keepalived/notify_backup.sh" #變成 backup 時執行的 shell
notify_fault "/etc/keepalived/notify_fault.sh" #故障時執行的 shell
notify "/etc/keepalived/notify.sh" # 狀態轉換時執行的 shell
加入的位置如下:
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 1
priority 100
advert_int 3
smtp_alert
authentication {
auth_type PASS
auth_pass 1234
}
virtual_ipaddress {
192.168.1.1
}
notify_master "/etc/keepalived/notify_master.sh"
notify_backup "/etc/keepalived/notify_backup.sh"
track_script {
check_shell
chk_httpd
chk_http_port
chk_https_port
chk_8080_port
}
track_interface{
eth0
}
}
訂閱:
文章 (Atom)