zoukankan      html  css  js  c++  java
  • debian10安装Metasploit

    0x0 注释source.listdebian的更新源。

    0x1 添加Kali源,在source.list.d新建kali.list,方便操作。

    deb http://http.kali.org/kali kali-rolling main non-free contrib
    deb-src http://http.kali.org/kali kali-rolling main non-free contrib
    

    阿里云的kali源

    deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
    deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
    

    添加数字证书

    $wget archive.kali.org/archive-key.asc   //下载签名
    $apt-key add archive-key.asc   //安装签名
    

    更新包列表

    $apt-get update
    

    0x2 安装postgresql

    添加postgresql源

    deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main
    

    安装postgresql

    $wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
    

    //添加数字证书

    $apt-get update
    $apt-get install postgresql
    

    0x3 安装metasploit-framework

    $apt-get install metasploit-framework #so easy
    

    0x4 初始化metasploit-framework

    $msfdb init 
    

    0x5 完成安装,检查

    msf启动

    $msfconsole

    检测数据库连接

    msf>db_status

    出现postgresql connected to xxx说明数据库连接正常

    报错
    warning: warning: deprecated Object#=~ is called on Integer; it always returns nil。
    这个是我报告问题的路径,打开文件,跳到84行
    互换SIMPLE_INT与config,后添加.to_s(此处由于不将config,msfconsole 链接数据库是会报错,提示整型没有转字符串,导致打开无法链接)

         def self.type_cast_config_to_integer(config)
                  if SIMPLE_INT =~ config.to_s
              config.to_i
            else
              config
            end
          end
    

    参考博文:https://www.cnblogs.com/little-kwy/p/11811130.html

    个人博客:cscwdxgg.github.io
    微信公众号:Asz918q
  • 相关阅读:
    居然就这么没有了
    RAID4 in WAFL
    网络存储导论第15章:Netapp产品分析
    radwareAPSolute应用前端解决方案全局负载均衡解决方案
    RAID , LVM and EVMS
    FND_STANDARD.SET_WHO
    基于基表的Form开发
    eclipse pydev 升级地址
    .net程序员应该知道的
    收集利用Jquery取得iframe中元素
  • 原文地址:https://www.cnblogs.com/wdxgg/p/11996230.html
Copyright © 2011-2022 走看看