victim

package
v0.0.0-...-95adb3f Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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