get rid of the single-character escapes so we're less likely to see accidental color substitutions
git-svn-id: file:///home/svn/framework3/trunk@7443 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
fd4e4154cd
commit
daf58b6deb
|
@ -187,8 +187,8 @@ class Core
|
||||||
# Display one of the fabulous banners.
|
# Display one of the fabulous banners.
|
||||||
#
|
#
|
||||||
def cmd_banner(*args)
|
def cmd_banner(*args)
|
||||||
banner = "%cya" + Banner.to_s + "%c\n\n"
|
banner = "%cya" + Banner.to_s + "%clr\n\n"
|
||||||
banner << " =[ %yelmetasploit v#{Msf::Framework::Version} [core:#{Msf::Framework::VersionCore} api:#{Msf::Framework::VersionAPI}]%c\n"
|
banner << " =[ %yelmetasploit v#{Msf::Framework::Version} [core:#{Msf::Framework::VersionCore} api:#{Msf::Framework::VersionAPI}]%clr\n"
|
||||||
banner << "+ -- --=[ "
|
banner << "+ -- --=[ "
|
||||||
banner << "#{framework.stats.num_exploits} exploits - #{framework.stats.num_auxiliary} auxiliary\n"
|
banner << "#{framework.stats.num_exploits} exploits - #{framework.stats.num_auxiliary} auxiliary\n"
|
||||||
banner << "+ -- --=[ "
|
banner << "+ -- --=[ "
|
||||||
|
@ -1490,7 +1490,7 @@ class Core
|
||||||
mod.init_ui(driver.input, driver.output)
|
mod.init_ui(driver.input, driver.output)
|
||||||
|
|
||||||
# Update the command prompt
|
# Update the command prompt
|
||||||
driver.update_prompt("#{mod.type}(%red#{mod.shortname}%c) ")
|
driver.update_prompt("#{mod.type}(%red#{mod.shortname}%clr) ")
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -21,8 +21,8 @@ class Driver < Msf::Ui::Driver
|
||||||
ConfigCore = "framework/core"
|
ConfigCore = "framework/core"
|
||||||
ConfigGroup = "framework/ui/console"
|
ConfigGroup = "framework/ui/console"
|
||||||
|
|
||||||
DefaultPrompt = "%umsf%c"
|
DefaultPrompt = "%undmsf%clr"
|
||||||
DefaultPromptChar = "%c>"
|
DefaultPromptChar = "%clr>"
|
||||||
|
|
||||||
#
|
#
|
||||||
# The console driver processes various framework notified events.
|
# The console driver processes various framework notified events.
|
||||||
|
|
|
@ -28,7 +28,7 @@ class Console
|
||||||
if (Rex::Compat.is_windows())
|
if (Rex::Compat.is_windows())
|
||||||
super("meterpreter")
|
super("meterpreter")
|
||||||
else
|
else
|
||||||
super("%umeterpreter%c")
|
super("%undmeterpreter%clr")
|
||||||
end
|
end
|
||||||
|
|
||||||
# The meterpreter client context
|
# The meterpreter client context
|
||||||
|
|
|
@ -66,9 +66,9 @@ module Color
|
||||||
str.gsub!(/%dcya/, colorize('dark', 'cyan'))
|
str.gsub!(/%dcya/, colorize('dark', 'cyan'))
|
||||||
str.gsub!(/%dwhi/, colorize('dark', 'white'))
|
str.gsub!(/%dwhi/, colorize('dark', 'white'))
|
||||||
str.gsub!(/%dmag/, colorize('dark', 'magenta'))
|
str.gsub!(/%dmag/, colorize('dark', 'magenta'))
|
||||||
str.gsub!(/%u/, colorize('underline'))
|
str.gsub!(/%und/, colorize('underline'))
|
||||||
str.gsub!(/%b/, colorize('bold'))
|
str.gsub!(/%bld/, colorize('bold'))
|
||||||
str.gsub!(/%c/, colorize('clear'))
|
str.gsub!(/%clr/, colorize('clear'))
|
||||||
|
|
||||||
str
|
str
|
||||||
end
|
end
|
||||||
|
|
|
@ -43,15 +43,15 @@ class Output < Rex::Ui::Output
|
||||||
|
|
||||||
|
|
||||||
def print_error(msg = '')
|
def print_error(msg = '')
|
||||||
print_line("%red[-]%c #{msg}")
|
print_line("%red[-]%clr #{msg}")
|
||||||
end
|
end
|
||||||
|
|
||||||
def print_good(msg = '')
|
def print_good(msg = '')
|
||||||
print_line("%grn[+]%c #{msg}")
|
print_line("%grn[+]%clr #{msg}")
|
||||||
end
|
end
|
||||||
|
|
||||||
def print_status(msg = '')
|
def print_status(msg = '')
|
||||||
print_line("%blu[*]%c #{msg}")
|
print_line("%blu[*]%clr #{msg}")
|
||||||
end
|
end
|
||||||
|
|
||||||
def print_line(msg = '')
|
def print_line(msg = '')
|
||||||
|
|
Loading…
Reference in New Issue