Kali 中文网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
查看: 1373|回复: 3

[求助] 【求助】msfconsole 启动失败问题

[复制链接]
发表于 2018-3-5 15:46:31 | 显示全部楼层 |阅读模式
kali   启动 msfconsole 时候失败,报错:
root@kali:~# msfconsole
/usr/share/metasploit-framework/lib/msf/core/payload/android.rb:87:in `not_after=': bignum too big to convert into `long' (RangeError)
        from /usr/share/metasploit-framework/lib/msf/core/payload/android.rb:87:in `sign_jar'
        from /usr/share/metasploit-framework/lib/msf/core/payload/android.rb:118:in `generate_jar'
        from /usr/share/metasploit-framework/modules/payloads/singles/android/meterpreter_reverse_tcp.rb:44:in `generate_jar'
        from /usr/share/metasploit-framework/lib/msf/core/payload/android.rb:38:in `generate'
        from /usr/share/metasploit-framework/lib/msf/core/payload.rb:204:in `size'
        from /usr/share/metasploit-framework/lib/msf/core/payload_set.rb:91:in `block in recalculate'
        from /usr/share/metasploit-framework/lib/msf/core/payload_set.rb:78:in `each_pair'
        from /usr/share/metasploit-framework/lib/msf/core/payload_set.rb:78:in `recalculate'
        from /usr/share/metasploit-framework/lib/msf/core/modules/loader/base.rb:251:in `block in load_modules'
        from /usr/share/metasploit-framework/lib/msf/core/modules/loader/base.rb:248:in `each'
        from /usr/share/metasploit-framework/lib/msf/core/modules/loader/base.rb:248:in `load_modules'
        from /usr/share/metasploit-framework/lib/msf/core/module_manager/loading.rb:119:in `block in load_modules'
        from /usr/share/metasploit-framework/lib/msf/core/module_manager/loading.rb:117:in `each'
        from /usr/share/metasploit-framework/lib/msf/core/module_manager/loading.rb:117:in `load_modules'
        from /usr/share/metasploit-framework/lib/msf/core/module_manager/module_paths.rb:41:in `block in add_module_path'
        from /usr/share/metasploit-framework/lib/msf/core/module_manager/module_paths.rb:40:in `each'
        from /usr/share/metasploit-framework/lib/msf/core/module_manager/module_paths.rb:40:in `add_module_path'
        from /usr/share/metasploit-framework/lib/msf/base/simple/framework/module_paths.rb:50:in `block in init_module_paths'
        from /usr/share/metasploit-framework/lib/msf/base/simple/framework/module_paths.rb:49:in `each'
        from /usr/share/metasploit-framework/lib/msf/base/simple/framework/module_paths.rb:49:in `init_module_paths'
        from /usr/share/metasploit-framework/lib/msf/ui/console/driver.rb:219:in `initialize'
        from /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:62:in `new'
        from /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:62:in `driver'
        from /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:48:in `start'
        from /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:82:in `start'
        from /usr/bin/msfconsole:48:in `<main>'
root@kali:~#

+1
1376°C
3
  • hunterlin
  • hunterlin
  • hunterlin
过: 他们
 楼主| 发表于 2018-3-5 15:47:31 | 显示全部楼层
入门小白一枚,有谁遇到过的么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2018-3-5 17:16:18 | 显示全部楼层
https://github.com/rapid7/metasploit-framework/issues/9556  貌似找到方法了


On my system the error message typically involved the first line in the dump saying this:
/usr/share/metasploit-framework/lib/msf/core/payload/android.rb:92:in not_after=': bignum too big to convert intolong' (RangeError)

After trying the install uninstall reinstall foolishness I finally edited the file:
/usr/share/metasploit-framework/lib/msf/core/payload/android.rb

I changed the following line:
#cert.not_after = cert.not_before + 36002436520 # 20 years
cert.not_after = cert.not_before + 3600243652 # 2 years

Clearly android payloads are probably not going to work after this. But I am only using a 32bit version of Kali because that is what is provided for the PWK course.
Thanks.

我装的是32位,人懒不想改文件,找个64位的装去了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2018-3-5 17:18:08 | 显示全部楼层
貌似找到答案了  
原文在这:https://github.com/rapid7/metasploit-framework/issues/9556

On my system the error message typically involved the first line in the dump saying this:
/usr/share/metasploit-framework/lib/msf/core/payload/android.rb:92:in not_after=': bignum too big to convert intolong' (RangeError)

After trying the install uninstall reinstall foolishness I finally edited the file:
/usr/share/metasploit-framework/lib/msf/core/payload/android.rb

I changed the following line:
#cert.not_after = cert.not_before + 36002436520 # 20 years
cert.not_after = cert.not_before + 3600243652 # 2 years

Clearly android payloads are probably not going to work after this. But I am only using a 32bit version of Kali because that is what is provided for the PWK course.
Thanks.

好像是32位的问题,需要改文件,人懒不想改就找个64位下载去了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

Kali linux ( 蜀ICP备10027298号-4 ) Topics |


免责声明:
Kali linux中文网所发布的一切教程文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。

GMT+8, 2018-6-17 17:57 , Processed in 0.185370 second(s), 22 queries , Gzip On.

Powered by Discuz!

© 2009-2016 CNNS

快速回复 返回顶部 返回列表