Move the framework instantion to after the fork
git-svn-id: file:///home/svn/framework3/trunk@12499 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
078fb3e7ae
commit
92a066e7e9
6
msfd
6
msfd
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue