forked from rapid7/metasploit-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsfconsole
executable file
·26 lines (23 loc) · 843 Bytes
/
msfconsole
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env ruby
# -*- coding: binary -*-
#
# This user interface provides users with a command console interface to the
# framework.
#
require 'pathname'
begin
# TODO: Temporary until warnings can be turned on only for developers to prevent confusion for end users
if defined?(Warning) && Warning.respond_to?(:[]=)
Warning[:deprecated] = false
end
# @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')
require 'metasploit/framework/profiler'
require 'metasploit/framework/command/console'
require 'msf/core/payload_generator'
Metasploit::Framework::Profiler.start
Metasploit::Framework::Command::Console.start
rescue Interrupt
puts "\nAborting..."
exit(1)
end