1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-09 04:26:11 +02:00

Move the framework instantion to after the fork

git-svn-id: file:///home/svn/framework3/trunk@12499 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2011-05-02 02:59:14 +00:00
parent 078fb3e7ae
commit 92a066e7e9

6
msfd
View File

@ -73,8 +73,6 @@ arguments.parse(ARGV) { |opt, idx, val|
$stderr.puts "[*] Initializing msfd..."
# Create an instance of the framework
$framework = Msf::Simple::Framework.create
$stderr.puts "[*] Running msfd..."
@ -87,5 +85,9 @@ rescue ::NotImplementedError
$stderr.puts "[-] Background mode is not available on this platform"
end
# Create an instance of the framework
$framework = Msf::Simple::Framework.create
# Run the plugin instance in the foreground.
$framework.plugins.load('msfd', opts).run(opts)