Changed print_good and OptEnum

bug/bundler_fix
Roberto Soares Espreto 2014-10-10 13:54:42 -03:00
parent 08fdb4fab2
commit bd315d7655
1 changed files with 4 additions and 4 deletions

View File

@ -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 <robertoespreto[at]gmail.com>' ],
'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!")