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

      

  • 相关阅读:
    安卓学习第三课——常见布局
    安卓学习第二课——短信发送器
    POJ3735【矩阵快速幂】
    Intel Code Challenge Final Round (Div. 1 + Div. 2, Combined)【A,B,C,D】
    POJ3737【数学】
    HDU2489【状压枚举】
    POJ3734【状压枚举】
    HDU1598【最小生成树拓展】
    HDU1597【二分瞎搞】
    HDU3279【水】
  • 原文地址:https://www.cnblogs.com/a986771570/p/7597758.html
Copyright © 2011-2022 走看看