2005-12-17 06:46:23 +00:00
|
|
|
#!/usr/bin/env ruby
|
2012-06-29 00:18:28 -05:00
|
|
|
# -*- coding: binary -*-
|
2005-11-28 21:38:48 +00:00
|
|
|
#
|
|
|
|
|
# This user interface provides users with a command console interface to the
|
|
|
|
|
# framework.
|
|
|
|
|
#
|
2005-07-13 21:09:07 +00:00
|
|
|
|
2014-07-29 14:07:14 -05:00
|
|
|
require 'pathname'
|
2018-03-20 13:34:15 -05:00
|
|
|
begin
|
2020-05-05 12:34:44 +01:00
|
|
|
|
|
|
|
|
# Silences warnings as they only serve to confuse end users
|
2020-04-29 14:33:19 +01:00
|
|
|
if defined?(Warning) && Warning.respond_to?(:[]=)
|
2023-10-13 01:23:38 +01:00
|
|
|
Warning[:deprecated] = false unless ENV['CI']
|
2020-04-29 14:33:19 +01:00
|
|
|
end
|
2020-04-29 10:56:03 +01:00
|
|
|
|
2020-03-11 12:59:07 +00:00
|
|
|
# @see https://github.com/rails/rails/blob/v3.2.17/railties/lib/rails/generators/rails/app/templates/script/rails#L3-L5
|
2018-03-20 13:34:15 -05:00
|
|
|
require Pathname.new(__FILE__).realpath.expand_path.parent.join('config', 'boot')
|
2020-03-12 17:58:26 +00:00
|
|
|
require 'metasploit/framework/profiler'
|
|
|
|
|
Metasploit::Framework::Profiler.start
|
2023-03-07 12:40:29 +00:00
|
|
|
|
|
|
|
|
require 'msfenv'
|
|
|
|
|
require 'metasploit/framework/command/console'
|
2018-03-20 13:34:15 -05:00
|
|
|
Metasploit::Framework::Command::Console.start
|
|
|
|
|
rescue Interrupt
|
|
|
|
|
puts "\nAborting..."
|
|
|
|
|
exit(1)
|
|
|
|
|
end
|