[PR #36] [MERGED] Support scanning privileges on non-English hosts #13

Closed
opened 2026-03-03 13:56:47 +03:00 by kerem · 0 comments
Owner

📋 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: masterHead: priv


📝 Commits (1)

  • 03ed69b Support 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.

## 📋 Pull Request Information **Original PR:** https://github.com/KelvinTegelaar/RunAsUser/pull/36 **Author:** [@jborean93](https://github.com/jborean93) **Created:** 12/12/2022 **Status:** ✅ Merged **Merged:** 12/12/2022 **Merged by:** [@KelvinTegelaar](https://github.com/KelvinTegelaar) **Base:** `master` ← **Head:** `priv` --- ### 📝 Commits (1) - [`03ed69b`](https://github.com/KelvinTegelaar/RunAsUser/commit/03ed69b3f0c655b32915d6199a97710759b510ff) Support scanning privileges on non-English hosts ### 📊 Changes **2 files changed** (+90 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `Public/Invoke-AsCurrentUser.ps1` (+4 -4) 📝 `runasuser.psm1` (+86 -0) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 13:56:47 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/RunAsUser#13
No description provided.