MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / removeShadowPlugin

Function removeShadowPlugin

internal/pluginhost/loader_windows.go:194–206  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

192}
193
194func removeShadowPlugin(path string) {
195 if path == "" {
196 return
197 }
198 if errRemove := os.Remove(path); errRemove == nil {
199 return
200 }
201 pathPtr, errPath := windows.UTF16PtrFromString(path)
202 if errPath != nil {
203 return
204 }
205 _ = windows.MoveFileEx(pathPtr, nil, windows.MOVEFILE_DELAY_UNTIL_REBOOT)
206}
207
208func removeStaleShadowPlugins(dir string) {
209 entries, errRead := os.ReadDir(dir)

Callers 4

OpenMethod · 0.85
shadowCopyPluginToDirFunction · 0.85
removeStaleShadowPluginsFunction · 0.85
closeMethod · 0.85

Calls 1

RemoveMethod · 0.80

Tested by

no test coverage detected