selfdelete

package module
v0.0.0-...-30ce22f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 3 Imported by: 0

README

go-self-delete

Go implementation of the self-deletion of an running executable from disk.

DISCLAIMER. All information contained in this repository is provided for educational and research purposes only. The owner is not responsible for any illegal use of included code snippets.

Usage

package main

import "github.com/secur30nly/go-self-delete"

func main() {
	// some code ...

	selfdelete.SelfDeleteExe()

	// some code ...
}

References

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelfDeleteExe

func SelfDeleteExe() error

Types

type FILE_DISPOSITION_INFO

type FILE_DISPOSITION_INFO struct {
	DeleteFile bool
}

type FILE_RENAME_INFO

type FILE_RENAME_INFO struct {
	Union struct {
		ReplaceIfExists bool
		Flags           uint32
	}
	RootDirectory  windows.Handle
	FileNameLength uint32
	FileName       [1]uint16
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL