mirror of
https://github.com/KelvinTegelaar/RunAsUser.git
synced 2026-04-26 09:05:56 +03:00
[PR #36] [MERGED] Support scanning privileges on non-English hosts #13
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/RunAsUser#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/KelvinTegelaar/RunAsUser/pull/36
Author: @jborean93
Created: 12/12/2022
Status: ✅ Merged
Merged: 12/12/2022
Merged by: @KelvinTegelaar
Base:
master← Head:priv📝 Commits (1)
03ed69bSupport scanning privileges on non-English hosts📊 Changes
2 files changed (+90 additions, -4 deletions)
View changed files
📝
Public/Invoke-AsCurrentUser.ps1(+4 -4)📝
runasuser.psm1(+86 -0)📄 Description
Uses the Win32 C API to get the current user privileges when scanning for SeDelegateSessionUserImpersonatePrivilege. This removes the need for calling whoami /all which is language dependent and may not be parseable on Windows hosts configured in other languages.
Supersedes https://github.com/KelvinTegelaar/RunAsUser/pull/35 and https://github.com/KelvinTegelaar/RunAsUser/pull/32
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.