Layout changes with new colors

This commit is contained in:
Peter
2014-03-07 23:16:50 +01:00
parent dab2001dcc
commit 5fbfa1453c
2 changed files with 20 additions and 8 deletions

View File

@@ -96,7 +96,7 @@ def banner
puts ' \\ /\\ / | | ____) | (__| (_| | | | |'
puts ' \\/ \\/ |_| |_____/ \\___|\\__,_|_| |_|'
puts
puts ' WordPress Security Scanner by the WPScan Team '
puts bold(' WordPress Security Scanner by the WPScan Team ')
# Alignment of the version (w & w/o the Revision)
if REVISION
puts " Version #{version}"
@@ -113,6 +113,10 @@ def colorize(text, color_code)
"\e[#{color_code}m#{text}\e[0m"
end
def bold(text)
colorize(text, 1)
end
def red(text)
colorize(text, 31)
end
@@ -121,6 +125,14 @@ def green(text)
colorize(text, 32)
end
def amber(text)
colorize(text, 33)
end
def blue(text)
colorize(text, 34)
end
def xml(file)
Nokogiri::XML(File.open(file)) do |config|
config.noblanks