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:
parent
078fb3e7ae
commit
92a066e7e9
6
msfd
6
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)
|
||||
|
Loading…
Reference in New Issue
Block a user