gobotnet

package
v0.0.0-...-fd1379f Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2016 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(slice []byte, elements ...byte) []byte

func CaptureRect

func CaptureRect(compressImage bool, rect image.Rectangle) ([]byte, error)

func CaptureScreen

func CaptureScreen(compressImage bool) ([]byte, error)

func CheckError

func CheckError(err error) bool

func CheckFileExist

func CheckFileExist(filePath string) bool

func CheckRegistryProgram

func CheckRegistryProgram() (value string, result bool)

Проверяем находимся ли мы в автозапуске

func CheckSetValueRegistryKey

func CheckSetValueRegistryKey(typeReg registry.Key, regPath, nameValue string) bool

func CmdExec

func CmdExec(cmd string) ([]byte, error)

func CmdExecOrig

func CmdExecOrig(cmd string) ([]byte, error)

func CopyFileToDirectory

func CopyFileToDirectory(pathSourceFile string, pathDestFile string) error

func CreateDir

func CreateDir(dirPath string, fileMode os.FileMode) bool

func CreateFile

func CreateFile(pathFile string) error

func CreateFileAndWriteData

func CreateFileAndWriteData(fileName string, writeData []byte) error

func DeleteFile

func DeleteFile(nameFile string) error

func DeleteRegistryKey

func DeleteRegistryKey(typeReg registry.Key, regPath, nameProgram string) error

func GetFullPathBotDir

func GetFullPathBotDir() string

func GetRegistryKey

func GetRegistryKey(typeReg registry.Key, regPath string, access uint32) (key registry.Key, err error)

func GetRegistryKeyValue

func GetRegistryKeyValue(typeReg registry.Key, regPath, nameKey string) (keyValue string, err error)

func GetTokenFromRegistry

func GetTokenFromRegistry() string

func GetUrlFromRegistry

func GetUrlFromRegistry() string

func IsDebugModeEnable

func IsDebugModeEnable() bool

func JoinToString

func JoinToString(data []string) string

func KeyLog

func KeyLog() (i int, err error)

func OutMessage

func OutMessage(message string)

func ParseJsonResponse

func ParseJsonResponse(jsonStruct interface{}, parseStr []byte) (bool, error)

func PrintRegistryPaths

func PrintRegistryPaths()

func RandStringRunes

func RandStringRunes(n int) string

func ReadFile

func ReadFile(nameFile string) (bytesFile []byte, err error)

func RegisterAutoRun

func RegisterAutoRun() error

func RegisterFromProgram

func RegisterFromProgram()

func RegistryFromConsole

func RegistryFromConsole(usingAutorun bool, usingRegistry bool, rewriteExe bool) bool

func RemoveDirWithContent

func RemoveDirWithContent(dir string) error

func SaveTokenToRegistry

func SaveTokenToRegistry(token string) bool

func SaveUrlToRegistry

func SaveUrlToRegistry(url string) bool

func ScreenRect

func ScreenRect() (image.Rectangle, error)

func SetDebugMode

func SetDebugMode(mode bool)

func UnRegisterAutoRun

func UnRegisterAutoRun()

func UnRegisterFromProgram

func UnRegisterFromProgram()

func UnRegistryFromConsole

func UnRegistryFromConsole(usingRegistry bool)

Пытаемся удалить себя и выпилиться из реестра

func WriteRegistryKey

func WriteRegistryKey(typeReg registry.Key, regPath, nameProgram, pathToExecFile string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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