gpt4 book ai didi

ruby - 在 Ubuntu 错误上运行 Metasploit

转载 作者:行者123 更新时间:2023-12-04 18:54:31 25 4
gpt4 key购买 nike

http://www.darkoperator.com/installing-metasploit-in-ubunt/
这是我用于安装过程的站点
我打了

msfconsole



安装 rbenv ruby​​ 后(我知道它的安装时间较长,但我仍然这样做了),并收到此错误。

/usr/local/rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/psych.rb:370:in

parse: (/opt/metasploit-framework/config/database.yml): mapping values are not allowed in this context at line 9 column 22

(Psych::SyntaxError)
from /usr/local/rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/psych.rb:370:in parse_stream
from /usr/local/rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/psych.rb:318:in parse
from /usr/local/rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/psych.rb:245:in load
from /usr/local/rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/psych.rb:464:in block
in load_file from /usr/local/rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/psych.rb:464:in open
from /usr/local/rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/psych.rb:464:in load_file
from /opt/metasploit-framework/lib/msf/ui/console/driver.rb:164:in initialize from /opt/metasploit-framework/lib/metasploit/framework/command/console.rb:62:in new from /opt/metasploit-framework/lib/metasploit/framework/command/console.rb:62:in driver from /opt/metasploit-framework/lib/metasploit/framework/command/console.rb:48:in
start
from /opt/metasploit-framework/lib/metasploit/framework/command/base.rb:82:in
start
from /usr/local/bin/msfconsole:48:in



请帮忙!!!

最佳答案

完全归功于 Iraklis Mathiopoulos @ https://medium.com/@iraklis/sometimes-you-need-metasploit-running-on-a-box-with-a-public-ip-in-order-to-get-reverse-shells-to-74fda07165a5#.2tplo6bnh :

安装先决条件。

  • 添加用户 msfdev
  • 添加用户 msfdev 须藤
  • apt-get 更新
  • apt-get -y install autoconf bison build-essential curl git-core libapr1 libaprutil1 libcurl4-openssl-dev libgmp3-dev libpcap-dev libpq-dev libreadline6-dev libsqlite3-dev libssl-dev libsvn1 libtool libxml2 libxml2-dev libxslt-dev libyaml -dev 定位 ncurses-dev openssl wget xsel zlib1g zlib1g-dev

  • 使用 msfdev 进行安装
  • su - msfdev
  • wget https://raw.githubusercontent.com/iam1980/metasploit-vps-installer/master/msf_vps_installer.sh
  • bash msf_vps_installer.sh
  • 关于ruby - 在 Ubuntu 错误上运行 Metasploit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36322355/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com