Make note of other commands to investigate

bug/bundler_fix
Jon Hart 2014-10-11 13:07:52 -07:00
parent c80a5b5796
commit c3a58cec9e
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,10 @@ class Metasploit3 < Msf::Auxiliary
include Msf::Auxiliary::Scanner
include Msf::Auxiliary::Report
ALLOWED_COMMANDS = %w(a A i g l p q T u)
# TODO: figure out what these do:
# o: valid command, takes no args, does nothing
# B, c, F, G, I, M, U, x: all require an "instance id" and possibly other args
ALLOWED_COMMANDS = %w(a A i g l p t T u w Z)
def initialize
super(
@ -40,7 +43,7 @@ class Metasploit3 < Msf::Auxiliary
if datastore['COMMANDS']
bad_commands = commands - ALLOWED_COMMANDS
unless bad_commands.empty?
raise ArgumentError, "Bad perfd command(s) #{bad_commands}"
fail ArgumentError, "Bad perfd command(s) #{bad_commands}"
end
end
end