fix meterp sessions getting initialized improperly, fix msf> prompt in exploit context after color cmd

git-svn-id: file:///home/svn/framework3/trunk@7449 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2009-11-10 16:10:39 +00:00
parent 159ca526b4
commit 2cbb32550c
3 changed files with 5 additions and 3 deletions

View File

@ -124,7 +124,7 @@ class Core
print_line("Enable or disable color output.")
return
end
driver.update_prompt('')
driver.update_prompt
end
def cmd_resource(*args)

View File

@ -183,7 +183,8 @@ module DispatcherShell
found = false
error = false
output.reset_color
# If output is disabled output will be nil
output.reset_color if (output)
if (method)
entries = dispatcher_stack.length

View File

@ -39,7 +39,8 @@ class Output < Rex::Ui::Output
@config[:color] = :auto
end
def update_prompt(prompt)
def update_prompt(prompt = nil)
return if prompt.nil?
substitute_colors(prompt)
end