Checking if group_filter is empty

bug/bundler_fix
Stuart Morgan 2015-12-23 15:14:37 +00:00
parent f950633d32
commit 391145a4af
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class Metasploit3 < Msf::Post
vprint_status "Retrieving AD Groups"
begin
group_fields = ['distinguishedName', 'objectSid', 'samAccountType', 'sAMAccountName', 'whenChanged', 'whenCreated', 'description', 'groupType', 'adminCount', 'comment', 'managedBy', 'cn']
if datastore['GROUP_FILTER'].empty?
if datastore['GROUP_FILTER'].nil? || datastore['GROUP_FILTER'].empty?
group_query = "(objectClass=group)"
else
group_query = "(&(objectClass=group)(#{datastore['GROUP_FILTER']}))"