From 92a066e7e98f863e5de00312752791bf4dfdc83b Mon Sep 17 00:00:00 2001 From: HD Moore Date: Mon, 2 May 2011 02:59:14 +0000 Subject: [PATCH] Move the framework instantion to after the fork git-svn-id: file:///home/svn/framework3/trunk@12499 4d416f70-5f16-0410-b530-b9f4589650da --- msfd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/msfd b/msfd index e54a495917..d427a8041f 100755 --- a/msfd +++ b/msfd @@ -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)