Move the framework instantion to after the fork

git-svn-id: file:///home/svn/framework3/trunk@12499 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-05-02 02:59:14 +00:00
parent 078fb3e7ae
commit 92a066e7e9
1 changed files with 4 additions and 2 deletions

6
msfd
View File

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