mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-07-18 18:31:41 +02:00
Improve accuracy of msfconsole performance profiling
This commit is contained in:
parent
10ea667b8f
commit
6e06d1e6f8
@ -15,11 +15,11 @@ begin
|
||||
|
||||
# @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 'msfenv'
|
||||
require 'metasploit/framework/profiler'
|
||||
require 'metasploit/framework/command/console'
|
||||
|
||||
Metasploit::Framework::Profiler.start
|
||||
|
||||
require 'msfenv'
|
||||
require 'metasploit/framework/command/console'
|
||||
Metasploit::Framework::Command::Console.start
|
||||
rescue Interrupt
|
||||
puts "\nAborting..."
|
||||
|
Loading…
Reference in New Issue
Block a user