SnakeCase option looks better
parent
983f5abc2f
commit
f7858bf1a7
|
@ -28,7 +28,7 @@ module VncInjectOptions
|
||||||
"Disables the Metasploit Courtesy shell",
|
"Disables the Metasploit Courtesy shell",
|
||||||
true
|
true
|
||||||
]),
|
]),
|
||||||
OptBool.new('VIEW_ONLY',
|
OptBool.new('ViewOnly',
|
||||||
[
|
[
|
||||||
false,
|
false,
|
||||||
"Runs the viewer in view mode",
|
"Runs the viewer in view mode",
|
||||||
|
@ -85,7 +85,7 @@ module VncInjectOptions
|
||||||
|
|
||||||
# If the AUTOVNC flag is set, launch VNC viewer.
|
# If the AUTOVNC flag is set, launch VNC viewer.
|
||||||
if (datastore['AUTOVNC'] == true)
|
if (datastore['AUTOVNC'] == true)
|
||||||
if (session.autovnc(datastore['VIEW_ONLY']))
|
if (session.autovnc(datastore['ViewOnly']))
|
||||||
print_status("Launched vncviewer.")
|
print_status("Launched vncviewer.")
|
||||||
else
|
else
|
||||||
print_error("Failed to launch vncviewer. Is it installed and in your path?")
|
print_error("Failed to launch vncviewer. Is it installed and in your path?")
|
||||||
|
|
Loading…
Reference in New Issue