Exploit database

GH-88d8bc551618926a04536090300b4292

dungnm24/cve-2020-0796

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-0796

81 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files41

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

WindowsProtocolTestSuites/TestSuites/MS-ADOD/Setup/Scripts/Add-IADGroupMember.ps1

PowerShell · 1,012 bytes
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.

##############################################################################
#
# Microsoft Windows PowerShell Scripting
# File:           Add-IADGroupMember.ps1
# Purpose:        Add a user or a list of users to the specified user group.
# Version:        1.0 (8 Feb, 2012)
# Requirements:   Windows PowerShell 2.0 CTP
# Supported OS:   Windows 7 or later versions
#           
##############################################################################

filter Add-IADGroupMember {
  param(
    [string[]]$MemberDN=$(Throw "MemberDN cannot be empty")
  )

  if($_ -is [ADSI] -and $_.psbase.SchemaClassName -eq 'group')
  {
    $group = $_

    $MemberDN | Where-Object {$_} | ForEach-Object { $group.Properties["member"].Add($_) } 
    $group.psbase.CommitChanges()
  }
  else
  {
    Write-Warning "Wrong object type, only Group objects are allowed"
  }
}