From bd315d76558c28e0f940e86d44b5b53238e69e22 Mon Sep 17 00:00:00 2001 From: Roberto Soares Espreto Date: Fri, 10 Oct 2014 13:54:42 -0300 Subject: [PATCH] Changed print_good and OptEnum --- modules/auxiliary/gather/hp_enum_perfd.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/auxiliary/gather/hp_enum_perfd.rb b/modules/auxiliary/gather/hp_enum_perfd.rb index 4224c44f28..e1947e5540 100644 --- a/modules/auxiliary/gather/hp_enum_perfd.rb +++ b/modules/auxiliary/gather/hp_enum_perfd.rb @@ -15,8 +15,8 @@ class Metasploit3 < Msf::Auxiliary super( 'Name' => 'Enum Environment Perfd Daemon', 'Description' => %q{ - Enum Environment Perfd Daemon. - Commands: "u" Disks Share, "i" Disk space, "p" Process list, "a" Core CPU info, "g" Server status, "l" Network Interface (statistics in/out), "T" Scope transactions, "A" Others infos, "q" and "Q" => exit. + This module will enumerate the environment + HP Operation Manager via daemon perfd. }, 'Author' => [ 'Roberto Soares Espreto ' ], 'License' => MSF_LICENSE @@ -25,7 +25,7 @@ class Metasploit3 < Msf::Auxiliary register_options( [ Opt::RPORT(5227), - OptString.new("CMD", [true, 'Command to execute', 'p']) + OptEnum.new("CMD", [true, 'Command to execute', 'p', [ 'u', 'i', 'p', 'a', 'g', 'l', 'T', 'A', 'q' ]]) ], self.class) end @@ -39,7 +39,7 @@ class Metasploit3 < Msf::Auxiliary resp = sock.get_once if (resp and resp =~ /Welcome/) - print_status("#{target_host}:#{rport}, Perfd server banner: #{resp}") + print_good("#{target_host}:#{rport}, Perfd server banner: #{resp}") report_service(:host => rhost, :port => rport, :name => "perfd", :proto => "tcp", :info => resp) else print_error("#{target_host}:#{rport}, Perfd server banner detection failed!")