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 files9
action1corp/psaction1Revision 6df663089027
- ↑..Parent directory
- Export-Action1UserRolesJson.ps1
- Export-Action1UsersJson.ps1
- Get-Action1User.ps1
- Get-Action1UserRoles.ps1
- Get-Action1Users.ps1
- Import-Action1UsersJson.ps1
- New-Action1User.ps1
- Remove-Action1User.ps1
- Update-Action1User.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
Public/User/Get-Action1UserRoles.ps1
PowerShell · 802 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 Get-Action1UserRoles {
[CmdletBinding()]
param(
[Parameter(Mandatory = $true, Position = 0)]
[ValidateNotNullOrEmpty()]
[ValidateScript({
Test-Guid -Guid $_ -Label 'UserId'
})]
[string]$UserId
)
$uriPathBuilder = Get-UriMapValue -Key 'G_UserRoles'
$uri = & $uriPathBuilder $UserId
$path = "$Script:Action1_BaseURI{0}" -f $uri
Write-Action1Debug "Listing roles for user '$UserId'."
Invoke-Action1PagedGetRequest -Path $path -Label "User roles '$UserId'"
}