ACTION on persistence.rb should be an OptEnum

That way, upcase / downcase problems get caught on option validation,
rather than down in the module's guts.
This commit is contained in:
Tod Beardsley 2012-04-10 14:45:54 -05:00
parent cbc12560a5
commit 03c958a9b1
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class Metasploit3 < Msf::Post
OptString.new('TEMPLATE', [false, 'Alternate template Windows PE File to use.']),
OptString.new('REXE',[false, 'The remote executable to use.','']),
OptString.new('REXENAME',[false, 'The name to call exe on remote system','']),
OptString.new('ACTION',[true, 'Use TEMPLATE or REXE mode.','TEMPLATE']),
OptEnum.new('ACTION',[true, 'Use TEMPLATE or REXE mode.','TEMPLATE', ['TEMPLATE', 'REXE']]),
OptEnum.new('PAYLOAD_TYPE', [true, 'Meterpreter Payload Type.', 'TCP',['TCP','HTTP','HTTPS']])
], self.class)