From 5dc78a8b00a2f81da549c54bdc88ddb1ff4067fa Mon Sep 17 00:00:00 2001 From: Carlos Perez Date: Thu, 4 Aug 2011 23:34:40 +0000 Subject: [PATCH] Made SETPASS and advanced option git-svn-id: file:///home/svn/framework3/trunk@13492 4d416f70-5f16-0410-b530-b9f4589650da --- modules/post/windows/manage/run_as.rb | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/modules/post/windows/manage/run_as.rb b/modules/post/windows/manage/run_as.rb index bff6e6a466..a09bbaefba 100644 --- a/modules/post/windows/manage/run_as.rb +++ b/modules/post/windows/manage/run_as.rb @@ -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