???????????CentOS???°??Metasploit??????????????????????????????????????????????飬?????????????????顣
????????????????CentOS 6.4_x64?汾??????????????????????????????????????????????£?
????yum update
????yum upgrade

??????????Metasploit????????????????????????£?
????yum groupinstall 'Development Tools'
????yum install sqlite-devel libxslt-devel libxml2-devel java-1.7.0-openjdk libpcap-devel nano openssl-devel zlib-devel libffi-devel gdbm-devel readline-devel nano wget
??????????Ruby???????????μ???????????????????в????????????в??????????????°汾??YAML?????°汾?yaml-0.1.6????????????£?
????cd /usr/src
????wget http://pyyaml.org/download/libyaml/yaml-0.1.6.tar.gz
????tar zxvf yaml-0.1.6.tar.gz
????cd yaml-0.1.6
????./configure --prefix=/usr/local
????make && make install
??????????????????Ruby???°汾??Ruby?????°汾?ruby-2.2.1???????????????????????????????£?
????cd /usr/src
????wget http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.1.tar.gz
????tar zxvf ruby-2.2.1.tar.gz
????cd ruby-2.2.1
????./configure --prefix=/usr/local --with-opt-dir=/usr/local/lib
????make && make install
???????Nmap???????Metasploit?в??????????????????????????????????????????£?
????cd /usr/src
????svn co https://svn.nmap.org/nmap
????cd nmap
????./configure
????make
????make install
????make clean
????CenOS?и?????Postgresql?汾????????????Postgresql???°汾?????°汾?PostgreSQl9.4?????????????£?
????exclude=postgresql*
????wget http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-1.noarch.rpm
????rpm -ivh pgdg-centos94-9.4-1.noarch.rpm
????????Postgresql??????????yum????м????????????£?
????yum update
????yum install postgresql94-server postgresql94-devel postgresql94
???????????????????????????????????????????????£?
????service postgresql-9.4 initdb
????service postgresql-9.4 start
????chkconfig postgresql-9.4 on
???????????ruby???????gem?????????°???????·???????????????????????????????????????????м???????
????echo export PATH=/usr/pgsql-9.4/bin:$PATH >> /etc/bashrc
????source ~/.bashrc
?????????????л???Postgresql??????????????????????????Metasploit????????????????????????£?
????su - postgres
???????????????????????????????Щ??????database.yml???????????????£?
????createuser msf -P -S -R -D
????createdb -O msf msf
????exit
????exit
??????????????????????????????Postgresql????????????????pg_hba.conf????????????£?
????vi /var/lib/pgsql/9.4/data/pg_hba.conf
????????????????????£?
????local msf msf md5
????hostmsf msf 127.0.0.1/8 md5
????hostmsf msf ::1/128 md5
??????????

???????ú?????????????
????service postgresql-9.4 restart