We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 852f6a6 commit 0a5101cCopy full SHA for 0a5101c
1 file changed
msfrpcd
@@ -93,19 +93,20 @@ require 'msf/ui'
93
94
# Fork into the background if requested
95
begin
96
- if foreground
97
- $stdout.puts "[*] #{rpctype}RPC ready at #{Time.now}."
98
- else
+ unless foreground
99
$stderr.puts "[*] #{rpctype}RPC backgrounding at #{Time.now}..."
100
exit(0) if Process.fork()
101
end
102
rescue ::NotImplementedError
103
$stderr.puts "[-] Background mode is not available on this platform"
+ foreground = true
104
105
106
# Create an instance of the framework
107
$framework = Msf::Simple::Framework.create(frameworkOpts)
108
+$stdout.puts "[*] #{rpctype}RPC ready at #{Time.now}." if foreground
109
+
110
# Run the plugin instance in the foreground.
111
112
$framework.plugins.load("#{rpctype.downcase}rpc", opts).run
0 commit comments