Use better system call

bug/bundler_fix
Meatballs 2014-02-22 20:34:56 +00:00
parent f7858bf1a7
commit e31a144f4d
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 4 additions and 6 deletions

View File

@ -158,14 +158,12 @@ class VncInject
Rex::FileUtils::find_full_path('vncviewer.exe')
if (vnc)
if viewonly
vo = "-viewonly "
else
vo = ""
end
args = []
args.push '-viewonly' if viewonly
args.push "#{vlhost}::#{vlport}"
self.view = framework.threads.spawn("VncViewerWrapper", false) {
system("vncviewer #{vo}#{vlhost}::#{vlport}")
system(vnc, *args)
}
return true