delete-self-poc icon indicating copy to clipboard operation
delete-self-poc copied to clipboard

A way to delete a locked file, or current running executable, on disk.

Results 2 delete-self-poc issues
Sort by recently updated
recently updated
newest added

1. ```c LPWSTR lpwStream = (LPWSTR)DS_STREAM_RENAME; fRename.FileNameLength = sizeof(lpwStream); ``` sizeof(lpwStream) is always 8 bytes on 64-bit OS 2. ```c FILE_RENAME_INFO fRename; RtlCopyMemory(fRename.FileName, lpwStream, sizeof(lpwStream)); ``` The FILE_RENAME_INFO.FileName buffer need...

Tested in my latest win11 24H2, this technique can remove the content of the file, but the file itself still exists.