powershell
cm20121009
干净的桌子千篇一律 乱的桌子却各有各的风骚
展开
-
Install-Module offline
Inspect Save-Module -Name NtObjectManager -Path <path> -RequiredVersion 1.0.8 Install Install-Module -Name NtObjectManager -RequiredVersion 1.0.8 Failing that, just build your own download UR...原创 2018-10-03 22:17:25 · 352 阅读 · 0 评论 -
user and sid
function get-UserFromSid { param($UserSID = (read-host "Enter the user sid")) $objSID = New-Object System.Security.Principal.SecurityIdentifier($UserSID) $objUser = $objSID.Translate( [System.Securi...原创 2018-10-03 22:15:51 · 129 阅读 · 0 评论 -
利用token获得TrustedInstaller权限
Save-Module -Name NtObjectManager -Path c:\test Install-Module -Name NtObjectManager Import-Module NtObjectManager sc.exe start TrustedInstaller Set-NtTokenPrivilege SeDebugPrivilege $p = Get-NtProces...原创 2018-10-03 22:19:14 · 1551 阅读 · 0 评论