-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.go
33 lines (26 loc) · 893 Bytes
/
globals.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package ransimware
import _ "embed" // Import embed for the DefaultPNG
// DefaultPNG is an example PNG for use with WallpaperNotify().
//
//go:embed ransimware.png
var DefaultPNG []byte
// Desktop wallpaper style consts
const (
DesktopCenter string = "0"
DesktopFill string = "10"
DesktopFit string = "6"
DesktopSpan string = "22"
DesktopStretch string = "2"
DesktopTile string = "0"
)
// EncryptFunc defines a function pointer that can be used to encrypt
// file contents before exfil.
type EncryptFunc func(fn string, b []byte) ([]byte, error)
// ExfilFunc defines a function pointer that can be used to exil file
// contents.
type ExfilFunc func(fn string, b []byte) error
// NotifyFunc defines a function pointer that can be used to notify
// the user of the ransom.
type NotifyFunc func() error
// Version is the package version
const Version string = "0.28.2"