selfdelete

package module
v0.0.0-...-a1d89d6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 3 Imported by: 0

README

self-delete

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

The selfdelete package allows an executable to perform self deletion while running. This concept was initially discovered by @jonasLyk.

Usage

Import the package and call the method SelfDelete().

import selfdelete "github.com/thesh1n/self-delete"

package main

func main(){
    println("Hello world!")

    selfdelete.SelfDelete()
}

References

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelfDelete

func SelfDelete() error

Types

type FILE_DISPOSITION_INFO

type FILE_DISPOSITION_INFO struct {
	DeleteFile bool
}

type FILE_RENAME_INFO

type FILE_RENAME_INFO struct {
	ReplaceIfExists bool
	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