metasploit打开gem报错

发布于 2022-09-03 07:49:00 字数 5213 浏览 25 评论 0

系统是debian,从github down下来的metasploit项目代码。但经过一夜的折腾gem依赖包全部安装完成。但是在运行
./msfconsole却出现了问题:

black-hole@IMP:~/Black-Hole/attack/metasploit-framework$ gem -v
2.2.2
black-hole@IMP:~/Black-Hole/attack/metasploit-framework$ ruby -v
ruby 2.1.5p273 (2014-11-13) [i386-linux-gnu]
black-hole@IMP:~/Black-Hole/attack/metasploit-framework$ gem list

*** LOCAL GEMS ***

actionpack (4.2.7)
actionview (4.2.7)
activemodel (4.2.7)
activerecord (4.2.7)
activesupport (4.2.7)
addressable (2.4.0)
arel (6.0.3)
arel-helpers (2.3.0)
aruba (0.14.1)
bcrypt (3.1.11)
bigdecimal (1.2.4)
bit-struct (0.15.0)
builder (3.2.2)
bundler (1.12.5)
capybara (2.7.1)
childprocess (0.5.9)
coderay (1.1.1)
contracts (0.14.0)
cucumber (2.4.0)
cucumber-core (1.5.0)
cucumber-rails (1.4.3)
cucumber-wire (0.0.1)
diff-lcs (1.2.5)
docile (1.1.5)
erubis (2.7.0)
factory_girl (4.7.0)
factory_girl_rails (4.7.0)
faraday (0.9.2)
ffi (1.9.14)
filesize (0.1.1)
fivemat (1.3.2)
gherkin (4.0.0)
i18n (0.7.0)
io-console (0.4.2)
jsobfu (0.4.1)
json (1.8.3, 1.8.1)
loofah (2.0.3)
metasm (1.0.2)
metasploit-concern (2.0.1)
metasploit-credential (2.0.3)
metasploit-model (2.0.0)
metasploit-payloads (1.1.13)
metasploit_data_models (2.0.0)
metasploit_payloads-mettle (0.0.5)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.9.0, 4.7.5)
msgpack (1.0.0)
multi_json (1.12.1)
multi_test (0.1.2)
multipart-post (2.0.0)
network_interface (0.0.1)
nokogiri (1.6.8)
octokit (4.3.0)
openssl-ccm (1.2.1)
packetfu (1.1.11)
patch_finder (1.0.2)
pcaprub (0.12.4, 0.11.3)
pg (0.18.4)
pg_array_parser (0.0.9)
pkg-config (1.1.7)
postgres_ext (3.0.0)
pry (0.10.4)
psych (2.0.5)
rack (1.6.4)
rack-test (0.6.3)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.3)
railties (4.2.7)
rake (11.2.2, 10.1.0)
rb-readline-r7 (0.5.2.0)
rdoc (4.1.0)
recog (2.0.21)
redcarpet (3.3.4)
rex-java (0.1.2)
rex-powershell (0.1.0)
rex-random_identifier (0.1.0)
rex-registry (0.1.0)
rex-text (0.1.1)
rex-zip (0.1.0)
rkelly-remix (0.0.6)
robots (0.10.1)
rspec-core (3.5.1)
rspec-expectations (3.5.0)
rspec-mocks (3.5.0)
rspec-rails (3.5.1)
rspec-support (3.5.0)
rubyntlm (0.6.0)
rubyzip (1.2.0)
sawyer (0.7.0)
shoulda-matchers (3.1.1)
simplecov (0.12.0)
simplecov-html (0.10.0)
slop (3.6.0)
sqlite3 (1.3.11)
sshkey (1.8.0)
test-unit (2.1.5.0)
thor (0.19.1)
thread_safe (0.3.5)
timecop (0.8.1)
tzinfo (1.2.2)
tzinfo-data (1.2016.6)
xpath (2.0.0)
yard (0.9.0)
black-hole@IMP:~/Black-Hole/attack/metasploit-framework$ ./msfconsole 
fatal: Needed a single revision
/var/lib/gems/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- robots (LoadError)
    from /var/lib/gems/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:274:in `block in require'
    from /var/lib/gems/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:240:in `load_dependency'
    from /var/lib/gems/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:274:in `require'
    from /home/black-hole/Black-Hole/attack/metasploit-framework/lib/metasploit/framework.rb:18:in `<top (required)>'
    from /home/black-hole/Black-Hole/attack/metasploit-framework/lib/metasploit/framework/database.rb:1:in `require'
    from /home/black-hole/Black-Hole/attack/metasploit-framework/lib/metasploit/framework/database.rb:1:in `<top (required)>'
    from /home/black-hole/Black-Hole/attack/metasploit-framework/lib/metasploit/framework/parsed_options/base.rb:17:in `require'
    from /home/black-hole/Black-Hole/attack/metasploit-framework/lib/metasploit/framework/parsed_options/base.rb:17:in `<top (required)>'
    from /home/black-hole/Black-Hole/attack/metasploit-framework/lib/metasploit/framework/parsed_options/console.rb:2:in `<top (required)>'
    from /var/lib/gems/2.1.0/gems/activesupport-4.2.7/lib/active_support/inflector/methods.rb:263:in `const_get'
    from /var/lib/gems/2.1.0/gems/activesupport-4.2.7/lib/active_support/inflector/methods.rb:263:in `block in constantize'
    from /var/lib/gems/2.1.0/gems/activesupport-4.2.7/lib/active_support/inflector/methods.rb:259:in `each'
    from /var/lib/gems/2.1.0/gems/activesupport-4.2.7/lib/active_support/inflector/methods.rb:259:in `inject'
    from /var/lib/gems/2.1.0/gems/activesupport-4.2.7/lib/active_support/inflector/methods.rb:259:in `constantize'
    from /var/lib/gems/2.1.0/gems/activesupport-4.2.7/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
    from /home/black-hole/Black-Hole/attack/metasploit-framework/lib/metasploit/framework/command/base.rb:73:in `parsed_options_class'
    from /home/black-hole/Black-Hole/attack/metasploit-framework/lib/metasploit/framework/command/base.rb:69:in `parsed_options'
    from /home/black-hole/Black-Hole/attack/metasploit-framework/lib/metasploit/framework/command/base.rb:47:in `require_environment!'
    from /home/black-hole/Black-Hole/attack/metasploit-framework/lib/metasploit/framework/command/base.rb:81:in `start'
    from ./msfconsole:48:in `<main>'
black-hole@IMP:~/Black-Hole/attack/metasploit-framework$ 

昨天从晚上9点折腾到凌晨2点多,早上起来又折腾到现在,身心俱疲。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

生生不灭 2022-09-10 07:49:00

解决了,折腾了八个小时,只需要在前面加上sudo就能搞定。因为我是普通用户,对var/lib没有操作权限。

sudo ./msfconsole

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文