zoukankan      html  css  js  c++  java
  • msf安装

    更新msfconsole

    apt-get  install metasploit-framework
    

    打开发现问题
    出现安装更新后错误
    Unable to find a spec satisfying metasploit-framework (>= 0) in the set.

    命令行输入
    sudo gem install bundler
    然后输入
    bundle install
    然后输入
    sudo gem update --system
    

    从而解决

    再次输入

    msfconsole
    

    成功打开更新后的
    然后退出进行配置

    配置

    先启用数据库
    emm,以前看发现有人连mysql的数据库,但还是感觉用kali自带的postgresql13比较合适,没必要安装那么多

    service postgresql start
    

    然后所有者权限打开

    su - postgres
    创建用户
    createuser msf -P
    输入密码两次
    然后创建db
    createdb --owner=msf chenyouxiu
    意思就是创建chenyouxiu的数据库,然后所有者为msf
    exit
    注销退出
    

    然后打开msf

    输入

    db_status
    查看数据库状态
    

    image-20210802101206900

    显示没有连接数据库

    连接数据库

    db_connect msf:msf@127.0.0.1/chenyouxiu
    

    然后连接成功

    在这里面还是可以查询系统命令和调用whois和nmap等系统命令,当然还是search模块比较方便

    别人都在不停的努力,自己又怎么会停
  • 相关阅读:
    CTF SQL注入知识点
    Rot13加密算法
    LFU缓存
    Redability
    快排
    更新卡片的zIndex
    webshell文件下载器
    [转]背包九讲
    hihocoder第196周
    Python import容易犯的一个错误
  • 原文地址:https://www.cnblogs.com/chenyouxiu/p/15089125.html
Copyright © 2011-2022 走看看