1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-09 04:26:11 +02:00

Fixes #3528, apply patch from chao-mu

git-svn-id: file:///home/svn/framework3/trunk@11586 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Joshua Drake 2011-01-17 18:00:21 +00:00
parent 63934c34ec
commit f76d216cfe

View File

@ -16,7 +16,7 @@ logs = ::File.join(Msf::Config.log_directory,'scripts', 'gettelnet')
# Cleaup script file name
@dest = logs + "/clean_up_" + filenameinfo + ".rc"
session = client
@@exec_opts = Rex::Parser::Arguments.new(
"-h" => [ false, "Help menu." ],
"-e" => [ false, "Enable Telnet Server only." ],
@ -154,13 +154,13 @@ unsupported if client.platform !~ /win32|win64/i
if enbl
message
insttlntsrv(session)
insttlntsrv()
enabletlntsrv()
print_status("For cleanup use command: run multi_console_command -rc #{@dest}")
elsif usr!= nil && pass != nil
message
insttlntsrv(session)
insttlntsrv()
enabletlntsrv()
addrdpusr(usr, pass)
print_status("For cleanup use command: run multi_console_command -rc #{@dest}")