Files
metasploit-gs/msfconsole
T

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

28 lines
796 B
Ruby
Raw Normal View History

2005-12-17 06:46:23 +00:00
#!/usr/bin/env ruby
# -*- coding: binary -*-
2005-11-28 21:38:48 +00:00
#
# This user interface provides users with a command console interface to the
# framework.
#
require 'pathname'
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
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
require 'msfenv'
require 'metasploit/framework/command/console'
Metasploit::Framework::Command::Console.start
rescue Interrupt
puts "\nAborting..."
exit(1)
end