File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -93,19 +93,20 @@ require 'msf/ui'
93
93
94
94
# Fork into the background if requested
95
95
begin
96
- if foreground
97
- $stdout. puts "[*] #{ rpctype } RPC ready at #{ Time . now } ."
98
- else
96
+ unless foreground
99
97
$stderr. puts "[*] #{ rpctype } RPC backgrounding at #{ Time . now } ..."
100
98
exit ( 0 ) if Process . fork ( )
101
99
end
102
100
rescue ::NotImplementedError
103
101
$stderr. puts "[-] Background mode is not available on this platform"
102
+ foreground = true
104
103
end
105
104
106
105
# Create an instance of the framework
107
106
$framework = Msf ::Simple ::Framework . create ( frameworkOpts )
108
107
108
+ $stdout. puts "[*] #{ rpctype } RPC ready at #{ Time . now } ." if foreground
109
+
109
110
# Run the plugin instance in the foreground.
110
111
begin
111
112
$framework. plugins . load ( "#{ rpctype . downcase } rpc" , opts ) . run
You can’t perform that action at this time.
0 commit comments