metasploit-framework/msfconsole

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
796 B
Plaintext
Raw Normal View History

#!/usr/bin/env ruby
# -*- coding: binary -*-
#
# This user interface provides users with a command console interface to the
# framework.
#
require 'pathname'
begin
2020-05-05 19:34:44 +08:00
# Silences warnings as they only serve to confuse end users
if defined?(Warning) && Warning.respond_to?(:[]=)
2023-10-13 08:23:38 +08:00
Warning[:deprecated] = false unless ENV['CI']
end
2020-04-29 17:56:03 +08:00
2020-03-11 20:59:07 +08:00
# @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__).realpath.expand_path.parent.join('config', 'boot')
2020-03-13 01:58:26 +08:00
require 'metasploit/framework/profiler'
Metasploit::Framework::Profiler.start
require 'msfenv'
require 'metasploit/framework/command/console'
Metasploit::Framework::Command::Console.start
rescue Interrupt
puts "\nAborting..."
exit(1)
end