1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-07-18 18:31:41 +02:00

Fix a crash when msfconsole is a symlink

This commit is contained in:
James Lee 2014-08-20 11:03:41 -05:00
parent c3e8bc8fa0
commit cef4ddf535
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321

View File

@ -1,13 +1,9 @@
#!/usr/bin/env ruby
# -*- coding: binary -*-
#
# $Id$
#
# This user interface provides users with a command console interface to the
# framework.
#
# $Revision$
#
#
# Standard Library
@ -20,7 +16,7 @@ require 'pathname'
#
# @see https://github.com/rails/rails/blob/v3.2.17/railties/lib/rails/generators/rails/app/templates/script/rails#L3-L5
require Pathname.new(__FILE__).expand_path.parent.join('config', 'boot')
require Pathname.new(__FILE__).realpath.expand_path.parent.join('config', 'boot')
require 'metasploit/framework/command/console'
Metasploit::Framework::Command::Console.start