redcode-labs / Coldfire

Golang malware development library
MIT License
927 stars 142 forks source link

Change Code Structure #27

Closed Osiris9999 closed 2 years ago

Osiris9999 commented 2 years ago

I have noticed that a lot of functions here are calling other functions with a different name. This is actually unnecessary.

// IsRoot checks if the current user is the administrator of the machine.
func IsRoot() bool {
    return isRoot()
}
// CmdOut executes a given command and returns its output.
func CmdOut(command string) (string, error) {
    return cmdOut(command)
}

I hope you folks will remove such functions and de-bloatify the framework.