1
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:
adfoster-r7 2023-03-07 12:40:29 +00:00
parent 10ea667b8f
commit 6e06d1e6f8
No known key found for this signature in database
GPG Key ID: 3BD4FA3818818F04

View File

@ -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..."