Re-add color to search command

This commit is contained in:
Alan Foster 2021-02-23 23:48:05 +00:00
parent e0dfd5cf9a
commit 45e22d53d2
No known key found for this signature in database
GPG Key ID: 3BD4FA3818818F04
4 changed files with 8 additions and 8 deletions

View File

@ -353,7 +353,7 @@ GEM
rex-socket
rex-text
rex-struct2 (0.1.3)
rex-text (0.2.31)
rex-text (0.2.33)
rex-zip (0.1.4)
rex-text
rexml (3.2.4)

View File

@ -434,7 +434,7 @@ class Creds
'Header' => "Credentials",
# For now, don't perform any word wrapping on the cred table as it breaks the workflow of
# copying credentials and pasting them into applications
'Width' => ::BigDecimal::INFINITY,
'WordWrap' => false,
'Columns' => cred_table_columns,
'SearchTerm' => search_term
}

View File

@ -1303,7 +1303,7 @@ module Msf
'SearchTerm' => row_filter,
# For now, don't perform any word wrapping on the search table as it breaks the workflow of
# copying module names in conjunction with the `use <paste-buffer>` command
'Width' => ::BigDecimal::INFINITY,
'WordWrap' => false,
'Columns' => [
'#',
'Name',

View File

@ -73,7 +73,7 @@ RSpec.describe Msf::Ui::Console::CommandDispatcher::Creds do
'',
'host origin service public private realm private_type JtR Format',
'---- ------ ------- ------ ------- ----- ------------ ----------',
' thisuser thispass Password'
' thisuser thispass Password '
])
end
@ -85,7 +85,7 @@ RSpec.describe Msf::Ui::Console::CommandDispatcher::Creds do
'',
'host origin service public private realm private_type JtR Format',
'---- ------ ------- ------ ------- ----- ------------ ----------',
' thisuser thispass Password'
' thisuser thispass Password '
])
end
@ -98,7 +98,7 @@ RSpec.describe Msf::Ui::Console::CommandDispatcher::Creds do
'',
'host origin service public private realm private_type JtR Format',
'---- ------ ------- ------ ------- ----- ------------ ----------',
' nonblank_pass Password'
' nonblank_pass Password '
])
end
end
@ -111,7 +111,7 @@ RSpec.describe Msf::Ui::Console::CommandDispatcher::Creds do
'',
'host origin service public private realm private_type JtR Format',
'---- ------ ------- ------ ------- ----- ------------ ----------',
' nonblank_user Password'
' nonblank_user Password '
])
end
end
@ -208,7 +208,7 @@ RSpec.describe Msf::Ui::Console::CommandDispatcher::Creds do
'',
'host origin service public private realm private_type JtR Format',
'---- ------ ------- ------ ------- ----- ------------ ----------',
' thisuser thispass Password'
' thisuser thispass Password '
])
end
end