windows 安装 metasploit-framework

  1. 下载metasploit-framework: https://www.metasploit.com/download
  2. 安装
  3. 执行msfdb init
  4. 修改C:\Users\用户名\.msf4\database.yml
    • 修改前

      development: &pgsql
        adapter: postgresql
        database: msf_database
        
        #修改了username, password
        username: msf
        password: 123
      
        host: 127.0.0.1
        port: 5432
        pool: 200
      
      production: &production
        <<: *pgsql
      
      test:
        <<: *pgsql
        database: msftest
        username: msftest
        password: XXXXXXXXXXXXXXXXXXXX
      
    • 修改后

      development: &pgsql
        adapter: postgresql
        database: msf_database
      
        #修改了username, password
        username: msftest
        password: XXXXXXXXXXXXXXXXXXXX
      
        host: 127.0.0.1
        port: 5432
        pool: 200
      
      production: &production
        <<: *pgsql
      
      test:
        <<: *pgsql
        database: msftest
        username: msftest
        password: XXXXXXXXXXXXXXXXXXXX
      
  5. 更推荐直接使用kali
posted @ 2019-11-13 11:35  twfb  阅读(2197)  评论(0编辑  收藏  举报