Made SETPASS and advanced option

git-svn-id: file:///home/svn/framework3/trunk@13492 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Carlos Perez
2011-08-04 23:34:40 +00:00
parent 3982cf51b4
commit 5dc78a8b00
+11 -7
View File
@@ -24,8 +24,8 @@ class Metasploit3 < Msf::Post
This module will login with the specified username/password and execute the
supplied command as a hidden process. Output is not returned by default, by setting
CMDOUT to false output will be redirected to a temp file and read back in to
display.By setting SETPASS to true, it will reset the users password and then
execute the command.
display.By setting advanced option SETPASS to true, it will reset the users
password and then execute the command.
},
'License' => MSF_LICENSE,
'Version' => '$Revision$',
@@ -35,11 +35,15 @@ class Metasploit3 < Msf::Post
))
register_options(
[
OptString.new('USER', [true, 'Username to reset/login with' ]),
OptString.new('PASS', [true, 'Password to use' ]),
OptString.new('CMD', [true, 'Command to execute' ]),
OptBool.new('SETPASS', [false, 'Reset password', false]),
OptBool.new('CMDOUT', [false, 'Retrieve command output', false]),
OptString.new('USER', [true, 'Username to reset/login with' ]),
OptString.new('PASS', [true, 'Password to use' ]),
OptString.new('CMD', [true, 'Command to execute' ]),
OptBool.new('CMDOUT', [false, 'Retrieve command output', false]),
], self.class)
register_advanced_options(
[
OptBool.new('SETPASS', [false, 'Reset password', false])
], self.class)
end