From eee716a6b3c3bdc63ab83b361aa9c4683739d965 Mon Sep 17 00:00:00 2001 From: Meatballs Date: Tue, 21 Jan 2014 20:59:31 +0000 Subject: [PATCH] Grab comments and descriptions ftw --- modules/post/windows/gather/enum_ad_user_comments.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/post/windows/gather/enum_ad_user_comments.rb b/modules/post/windows/gather/enum_ad_user_comments.rb index de28dd3018..d68ffb0e1c 100644 --- a/modules/post/windows/gather/enum_ad_user_comments.rb +++ b/modules/post/windows/gather/enum_ad_user_comments.rb @@ -13,10 +13,10 @@ class Metasploit3 < Msf::Post def initialize(info={}) super( update_info( info, - 'Name' => 'Windows Gather Active Directory User Descriptions', + 'Name' => 'Windows Gather Active Directory User Comments', 'Description' => %Q{ This module will enumerate user accounts in the default AD directory. Which - contain 'pass' in their description (case-insensitive) by default. + contain 'pass' in their description or comment (case-insensitive) by default. }, 'License' => MSF_LICENSE, 'Author' => [ 'Ben Campbell ' ], @@ -31,8 +31,8 @@ class Metasploit3 < Msf::Post register_options([ OptInt.new('MAX_SEARCH', [true, 'Maximum values to retrieve, 0 for all.', 50]), OptBool.new('STORE_LOOT', [true, 'Store file in loot.', false]), - OptString.new('FIELDS', [true, 'Fields to retrieve.', 'sAMAccountName,userAccountControl,description']), - OptString.new('FILTER', [true, 'Search filter.', '(&(&(&(&(objectCategory=person)(objectClass=user)(description=*pass*)))))']), + OptString.new('FIELDS', [true, 'Fields to retrieve.','sAMAccountName,userAccountControl,comment,description']), + OptString.new('FILTER', [true, 'Search filter.','(&(&(objectCategory=person)(objectClass=user))(|(description=*pass*)(comment=*pass*)))']), ], self.class) end