Linux - Install Metasploit on Arch

Platform: Arch Linux
Author: Nixawk
=========================================================
0. git clone https://github.com/rapid7/metasploit-framework

1. sudo pacman -S  git ruby gcc patch curl zlib readline autoconf automake diffutils make libtool bison libpcap

2. wget -O rvm.sh https://get.rvm.io
   bash rvm.sh stable --autolibs=enabled --ruby=1.9.3
   bundle install

3. metasploit database configuration
   sudo pacman -S postgresql
   sudo systemctl start postgresql
   sudo -u postgres initdb --locale en_US.UTF-8 -E UTF8 -D '/var/lib/postgres/data'
   sudo -u postgres createuser msfuser -P -S -R -D
   sudo -u postgres createdb -O msfuser msfdb
   cat /path/to/metasploit-framework/config/database.yml

   ---------------------database.yml----------------------
   # Please only use postgresql bound to a TCP port.
   # Only postgresql is supportable for metasploit-framework
   # these days. (No SQLite, no MySQL).
   #
   # To set up a metasploit database, follow the directions hosted at:
   # https://fedoraproject.org/wiki/Metasploit_Postgres_Setup (Works on
   # essentially any Linux distro, not just Fedora)
   production: &pgsql
     adapter: postgresql
     database: msfdb
     username: msfuser
     password: msfpass
     host: localhost
     port: 5432
     pool: 5
     timeout: 5

4. start msfconsole
[*] Starting the Metasploit Framework console...\
     ,           ,
    /             \
   ((__---,,,---__))
      (_) O O (_)_________
         \ _ /            |\
          o_o \   M S F   | \
               \   _____  |  *
                |||   WW|||
                |||     |||


       =[ metasploit v4.11.0-dev [core:4.11.0.pre.dev api:1.0.0]]
+ -- --=[ 1390 exploits - 789 auxiliary - 226 post        ]
+ -- --=[ 356 payloads - 37 encoders - 8 nops             ]
+ -- --=[ Free Metasploit Pro trial: http://r-7.co/trymsp ]

msf > 

=========================================================
References:

http://www.dinotools.de/2014/04/04/install-metasploit-from-git-on-arch/
https://github.com/rapid7/metasploit-framework/wiki
http://blog.csdn.net/nixawk/article/details/44724755 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值