Skip to content

Instantly share code, notes, and snippets.

@MrTheWhiteHat
Created January 6, 2017 19:22
Show Gist options
  • Save MrTheWhiteHat/efada4a75cf7ae11028eec45dcfbb724 to your computer and use it in GitHub Desktop.
Save MrTheWhiteHat/efada4a75cf7ae11028eec45dcfbb724 to your computer and use it in GitHub Desktop.
解决metasploit-framework不能使用过程和结果
bundle install
apt-get install ruby-dev
gem install bcrypt -v '3.1.10'
bundle install
cat /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/pg-0.18.3/mkmf.log
apt-get install libpq-dev
gem install pg -v '0.18.3'
bundle install
An error occurred while installing metasploit-framework (4.11.5), and Bundler
cannot continue.
Make sure that `gem install metasploit-framework -v '4.11.5'` succeeds before
bundling.
root@Kali:~# cd /usr/share/metasploit-framework
root@Kali:~# ls
app Gemfile.lock msfconsole msfpescan msfvenom tools
config lib msfd msfrop plugins vendor
data metasploit-framework.gemspec msfdb msfrpc Rakefile
db modules msfelfscan msfrpcd ruby
Gemfile msfbinscan msfmachscan msfupdate scripts
root@Kali:/usr/share/metasploit-framework#:msfupdate(前面的都没成功,只用运行这个命令就可以,更新和解决metasploit不能使用的问题)
root@Kali:/usr/share/metasploit-framework#:msfconsole
.,,. .
.\$$$$$L..,,==aaccaacc%#s$b. d8, d8P
d8P #$$$$$$$$$$$$$$$$$$$$$$$$$$$b. `BP d888888p
d888888P '7$$$$\""""''^^`` .7$$$|D*"'``` ?88'
d8bd8b.d8p d8888b ?88' d888b8b _.os#$|8*"` d8P ?8b 88P
88P`?P'?P d8b_,dP 88P d8P' ?88 .oaS###S*"` d8P d8888b $whi?88b 88b
d88 d8 ?8 88b 88b 88b ,88b .osS$$$$*" ?88,.d88b, d88 d8P' ?88 88P `?8b
d88' d88b 8b`?8888P'`?8b`?88P'.aS$$$$Q*"` `?88' ?88 ?88 88b d88 d88
.a#$$$$$$"` 88b d8P 88b`?8888P'
,s$$$$$$$"` 888888P' 88n _.,,,ass;:
.a$$$$$$$P` d88P' .,.ass%#S$$$$$$$$$$$$$$'
.a$###$$$P` _.,,-aqsc#SS$$$$$$$$$$$$$$$$$$$$$$$$$$'
,a$$###$$P` _.,-ass#S$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$####SSSS'
.a$$$$$$$$$$SSS$$$$$$$$$$$$$$$$$$$$$$$$$$$$SS##==--""''^^/$$$$$$'
_______________________________________________________________ ,&$$$$$$'_____
ll&&$$$$'
.;;lll&&&&'
...;;lllll&'
......;;;llll;;;....
` ......;;;;... . .
Love leveraging credentials? Check out bruteforcing
in Metasploit Pro -- learn more on http://rapid7.com/metasploit
=[ metasploit v4.13.10-dev ]
+ -- --=[ 1610 exploits - 923 auxiliary - 280 post ]
+ -- --=[ 472 payloads - 39 encoders - 9 nops ]
+ -- --=[ Free Metasploit Pro trial: http://r-7.co/trymsp ]
msf >
@MrTheWhiteHat
Copy link
Author

root@Kali:/usr/share/metasploit-framework#:msfupdate(前面的都没成功,只用运行这个命令就可以,更新和解决metasploit不能使用的问题)
root@Kali:/usr/share/metasploit-framework#:msfconsole

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment