From 131ffe4ab2ad01e10aa67f99473ee7d46038b317 Mon Sep 17 00:00:00 2001 From: David Maloney Date: Wed, 2 Nov 2011 02:47:28 +0000 Subject: [PATCH] Fixed inconsistencies in how data was being passed to report_auth_info(). The command dispatcher and filezilla server cred module both used the accessor :ptype but report_auth_info looks for :type. While ptype is what the db field is called, almsot everything else references :type so it is better for consistency to keep everything at :type. Fixes #5906 git-svn-id: file:///home/svn/framework3/trunk@14141 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/ui/console/command_dispatcher/db.rb | 2 +- modules/post/windows/gather/credentials/filezilla_server.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/ui/console/command_dispatcher/db.rb b/lib/msf/ui/console/command_dispatcher/db.rb index 90f20a8c66..627f5434c1 100644 --- a/lib/msf/ui/console/command_dispatcher/db.rb +++ b/lib/msf/ui/console/command_dispatcher/db.rb @@ -691,7 +691,7 @@ class Db :port => port, :user => (user == "NULL" ? nil : user), :pass => (pass == "NULL" ? nil : pass), - :ptype => ptype, + :type => ptype, :sname => service, :active => true ) diff --git a/modules/post/windows/gather/credentials/filezilla_server.rb b/modules/post/windows/gather/credentials/filezilla_server.rb index c4ca4059b5..f4c74403f0 100644 --- a/modules/post/windows/gather/credentials/filezilla_server.rb +++ b/modules/post/windows/gather/credentials/filezilla_server.rb @@ -188,7 +188,7 @@ class Metasploit3 < Msf::Post :proto => 'tcp', :user => 'admin', :pass => config['admin_pass'], - :ptype => "password", + :type => "password", :target_host => config['admin_bindip'], :target_port => config['admin_port'] )