Exploit databaseDownload repository ZIP
GH-ef3d97a8ccdca9fadfa598b5cf6af377
action1corp/psaction1
Sources for CVE-2022-3775
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files2
action1corp/psaction1Revision 6df663089027
- ↑..Parent directory
- Add-Action1EndpointCustomAttributeMethod.ps1
- Add-Action1PolicyResultDetailsMethod.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
Private/Legacy/Add-Action1EndpointCustomAttributeMethod.ps1
PowerShell · 837 bytes# Action1 Public Repository Material
# Subject to TERMS_OF_USE.md (https://github.com/Action1Corp/PSAction1/blob/main/TERMS_OF_USE.md)
# Provided AS IS
# Use at your own risk
# Review and test before production deployment
# (c) Action1 Corporation
function Add-Action1EndpointCustomAttributeMethod {
[CmdletBinding()]
param (
[Parameter(Mandatory, ValueFromPipeline)]
[object]$InputObject
)
begin {
$GetCustomAttributeScriptBlock = {
param(
[Parameter(Mandatory)]
[string]$Name
)
($this.custom | Where-Object { $_.name -eq $Name }).value
}
}
process {
$InputObject | Add-Member -MemberType ScriptMethod -Name 'GetCustomAttribute' -Value $GetCustomAttributeScriptBlock -Force
$InputObject
}
}