Last active
September 27, 2023 16:06
-
-
Save enigma0x3/e3a5cd6db3adfe096e53f93586065498 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$rpc = ls C:\Windows\System32\*.exe, C:\Windows\System32\*.dll |Get-RpcServer -DbgHelpPath "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbghelp.dll" | |
foreach ($rpc1 in $rpc) | |
{ | |
$ourObject = New-Object -TypeName psobject | |
$ourObject | Add-Member -MemberType NoteProperty -Name InterfaceID -Value $rpc1.InterfaceID | |
$ourObject | Add-Member -MemberType NoteProperty -Name FileName -Value $rpc1.Name | |
$ourObject | Add-Member -MemberType NoteProperty -Name IsRunning -Value $rpc1.IsServiceRunning | |
$ourObject | Add-Member -MemberType NoteProperty -Name EndpointCount -Value $rpc1.EndpointCount | |
$procs = $rpc1.Procedures.Name | Out-String | |
$ourObject | Add-Member -MemberType NoteProperty -Name Procedures -Value $procs | |
$ourObject | fl | Out-file -Encoding ASCII rpc.txt -Append | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment