One-shot desktop / console inventory of running processes and listening TCP/UDP ports.
Useful for quick host hygiene checks and IR triage: what is listening, and which process owns it.
- Lists processes (PID, name, path when readable)
- Lists listening endpoints (protocol, address, port, owning PID/name on Linux)
- Console table, JSON, or CSV export
- Works on Linux and Windows (.NET 8)
- .NET 8 SDK
dotnet test ProcessPortSnapshot.Tests/ProcessPortSnapshot.Tests.csprojdotnet run --project ProcessPortSnapshot.csproj
dotnet run --project ProcessPortSnapshot.csproj -- --json --out snapshot.json
dotnet run --project ProcessPortSnapshot.csproj -- --csv --out snapshot.csvOn Linux, listener rows include PID/process via /proc. On Windows, listeners come from the managed TCP/UDP tables (PID enrichment is best-effort / may be blank without elevated APIs).
For systems you own or are authorized to inspect. Not a substitute for EDR.