mirror of
https://github.com/tsale/EDR-Telemetry
synced 2026-06-08 17:58:18 +00:00
5f39823b76
Add C# tool to create, start, modify, and uninstall Windows services for telemetry testing. Includes P/Invoke wrappers for service management APIs and supports install/start/modify/uninstall operations. Also update VSSDelete publish instructions to use --self-contained false.
VssDeletePOC
This is a simple proof-of-concept for deleting the first available Volume Shadow Copy Service (VSS) snapshot on Windows.
It uses the AlphaVSS library.
Setup & Run
- Create a new console project:
dotnet new console -n VssDeletePOC cd VssDeletePOC - Add the dependency:
If you see an error about no versions available, run:
dotnet add package AlphaVSS cd VssDeletePOCdotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org - Replace the content of
Program.cswith the content of Program.cs. - Run the program:
dotnet run
Build & Run as Executable
-
Install the Visual C++ Redistributable (x64).
-
Publish a self-contained executable (64-bit):
dotnet publish -c Release -r win-x64 --self-contained true -
Run the generated
.exe(requires Administrator privileges).
Creating a VSS Snapshot
If you don't have a VSS snapshot already, on a Windows server, you can create one using the following command:
vssadmin create shadow /for=C:
Replace C: with the drive letter you want to snapshot.
You can verify that the snapshot was created by running:
vssadmin list shadows