Comments (2)
It might work if I expand the check to find \RPC Control\ anywhere in the name. This also affects AppContainers as well so might be worth doing. You could try and do it manually by extracting the path to the ALPC Port and then using the Get-RpcEndpoint command instead. e.g.
$name = (Get-NtHandle -ProcessId <PID OF EXE> | ? ObjectType -eq 'ALPC Port' | ? Name -Match 'RPC Control').Name
Get-RpcEndpoint -AlpcPort $name
I've not tested that though.
from sandbox-attacksurface-analysis-tools.
Yes, it does the job, thank you :)
PS C:\Users\Administrator> $name = (Get-NtHandle -ProcessId 4880 | ? ObjectType -eq 'ALPC Port' | ? Name -Match 'RPC Control').Name
PS C:\Users\Administrator> Get-RpcEndpoint -AlpcPort $name
UUID Version Protocol Endpoint Annotation
---- ------- -------- -------- ----------
75ef42c7-22f4-44a0-8200-9351cd316e01 1.0 ncalrpc \Silos\532\RPC Control\cexecsvc
from sandbox-attacksurface-analysis-tools.
Related Issues (20)
- Does Params object contains too much parameters: "Cannot find an overload..." HOT 5
- NtApiDotNet.Win32.RpcServer.ParsePeFile doesn't return RPC servers HOT 2
- compile error HOT 2
- RpcServer.ParsePeFile throw and uncatchable error
- Windows Defender is reporting this module as trojan HOT 1
- System.AccessViolationException using RpcEndpointMapper against Windows Server 2022 Host HOT 1
- For anyone looking to solve build eror with "exited with code 9009" for NtObjectManager HOT 3
- [Question] - Link NewCredentials To Process
- some process can not show?
- Get-NtApiSet seems to not resolve ALL ApiSet versions HOT 2
- How to Get-NtNamedPipeFile programmatically? HOT 2
- Get-NtNamedPipeFile failed with "Object Name invalid" HOT 2
- Security Policy violation Binary Artifacts HOT 2
- Getting Access Denied when calling NtFile.Open on a named pipe HOT 1
- Is there a way to check if a certain fields threw an exception when using NtFile.Open?
- Errors on Win10 22H2 HOT 1
- Why is 2.0.0 on the PSGallery but not on Github? HOT 5
- TokenViewer: Create Process -> black window? HOT 1
- Procedure names auto-labeled incorrectly when symbols fail to resolve HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sandbox-attacksurface-analysis-tools.