zoukankan      html  css  js  c++  java
  • metasploit连接postgres数据库

    msf

    百度百科

    Metasploit是一款开源的安全漏洞检测工具,可以帮助安全和IT专业人士识别安全性问题,验证漏洞的缓解措施,并管理专家驱动的安全性进行评估,提供真正的安全风险情报。这些功能包括智能开发,密码审计,Web应用程序扫描,社会工程。团队合作,在Metasploit和综合报告提出了他们的发现。

    环境:kali linux 2017

    启动msfconsole

    打开后显示数据库没有链接

    解决方法如下

    //启动对应的服务
    root@kali:~# service postgresql restart root@kali:~# msfdb start root@kali:~# msfconsole msf > db_status [*] postgresql selected, no connection 数据库未连接 'msf > ' root@kali:~# msfdb -h Error: unrecognized action '-h' Manage a metasploit framework database msfdb init # initialize the database msfdb reinit # delete and reinitialize the database msfdb delete # delete database and stop using it msfdb start # start the database msfdb stop # stop the database //初始化数据库并重启 msfdb reinit msfdb start msf > msf > db_status [*] postgresql connected to msf db_discomnect 断开数据库 cat /usr/share/metasploit-framework/config/database.yml db_connect msf:s9qvzls1+7Bs4sfLg8nHeX7HaXG3aa8adMVfZDJotC8=@localhost/msf msf > db_ db_connect db_export db_nmap db_status db_disconnect db_import db_rebuild_cache msf > db_status [*] postgresql connected to msf msf > db_disconnect msf > db_connect msf:PtQ5o7VfChzWvvvrU5t8jTkFaHyApHjnJqnTuzR3ZHw=@localhost/msf [*] Rebuilding the module cache in the background... msf > db_status searsh

      

  • 相关阅读:
    【源码剖析】HashMap1.7 详解
    友链
    P4747 [CERC2017]Intrinsic Interval
    Educational Codeforces Round 97 简要题解
    CF908D New Year and Arbitrary Arrangement(期望 dp)
    一个方便的自定义注解,管理实体类
    Leetcode 657 机器人能否回到原点
    Leetcode 695 岛屿的最大面积 二维平面DFS
    WebSocket 的简单用例
    俄罗斯方块JAVA
  • 原文地址:https://www.cnblogs.com/a986771570/p/7597758.html
Copyright © 2011-2022 走看看