Fixed loot formatting so data is under the proper column

The credentials table was defined with the columns "User", "Password", "Host", "Port", and "SSL".  Credentials were not added in that order, however. They were added in the order "host, port, user, password, ssl" in this line:

credentials << [cred['host'], cred['port'], cred['user'], cred['password'], cred['ssl']]

I changed the order the columns were defined to fix this.

The permissions table had a similar issue. The "FileWrite" column was missing, so I added it. I also moved the "Home" column to after the "AutoCreate" column. Now the line:

permissions << [perm['host'], perm['user'], perm['dir'], perm['fileread'], perm['filewrite'], perm['filedelete'], perm['fileappend'],perm['dircreate'], perm['dirdelete'], perm['dirlist'], perm['dirsubdirs'], perm['autocreate']]

works correctly.
bug/bundler_fix
Charles Smith 2013-01-17 16:52:02 -05:00
parent 624ef9a329
commit 892899acd5
1 changed files with 5 additions and 4 deletions

View File

@ -89,10 +89,10 @@ class Metasploit3 < Msf::Post
'Indent' => 1,
'Columns' =>
[
"User",
"Password",
"Host",
"Port",
"User",
"Password",
"SSL"
])
@ -105,14 +105,15 @@ class Metasploit3 < Msf::Post
"User",
"Dir",
"FileRead",
"FileWrite",
"FileDelete",
"FileAppend",
"DirCreate",
"DirDelete",
"DirList",
"DirSubdirs",
"Home",
"AutoCreate"
"AutoCreate",
"Home"
])
configuration = Rex::Ui::Text::Table.new(