r/PowerShell • u/dud380 • Feb 26 '26
I built a PowerShell module that maps all input surfaces in a compiled .NET assembly — HTTP endpoints, SignalR, gRPC, WCF, Blazor and more
Hey r/PowerShell! 👋
Just released DllSpy — a PowerShell module that maps every input surface in a compiled .NET assembly without running it. Point it at a DLL and instantly see all HTTP endpoints, SignalR hub methods, gRPC operations, WCF services, Razor Pages, and Blazor components.
Install from the Gallery:
Install-Module -Name DllSpyBasic usage:
# Map everything
Search-DllSpy -Path .\MyApi.dll
# Filter by surface type
Search-DllSpy -Path .\MyApi.dll -Type HttpEndpoint
Search-DllSpy -Path .\MyApi.dll -Type SignalRMethod
# Filter by HTTP method or class name
Search-DllSpy -Path .\MyApi.dll -HttpMethod DELETE
Search-DllSpy -Path .\MyApi.dll -Class User*
# Show only anonymous / authenticated surfaces
Search-DllSpy -Path .\MyApi.dll -AllowAnonymous
Search-DllSpy -Path .\MyApi.dll -RequiresAuthIt also has a security scanning mode that flags things like unauthenticated state-changing endpoints and missing authorization declarations:
Test-DllSpy -Path .\MyApi.dll
Test-DllSpy -Path .\MyApi.dll -MinimumSeverity HighGreat for security reviews, pentesting, auditing third-party assemblies, or just exploring an unfamiliar codebase without digging through source.
GitHub: https://github.com/n7on/dllspy
PowerShell Gallery: https://www.powershellgallery.com/packages/DllSpy
Would love feedback from the community!
3
u/ZenoArrow Feb 26 '26
Thank you, this looks to be potentially very useful.
2
u/purplemonkeymad Feb 27 '26
I'm a bit confused, you say:
But would this not run any static members in it?
1
u/BOT_Solutions Feb 27 '26
This is very aligned with the kind of visibility tooling we have been working on internally. Different layer of the stack, but the same core idea of reducing unknowns and surfacing risk early.
The static analysis angle is strong. Being able to map HTTP endpoints, hubs and auth requirements from a compiled assembly without executing it is genuinely useful for audits, security reviews and getting up to speed on an unfamiliar codebase.
It is always interesting to see how much surface area an app exposes once you actually enumerate it. Tools like this make that conversation far more objective.
Curious how you are handling things like dynamically registered routes or reflection heavy patterns, as those can sometimes hide a few surprises.
7
u/[deleted] Feb 26 '26
[removed] — view removed comment