internalTypes

package
v0.0.0-...-402b80f Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BruteForceBase

type BruteForceBase struct {
	Hash        string `json:"hash" gorm:"not null;uniqueIndex:idx_password_hash"`
	PlainText   string `json:"plainText"`
	Algorithm   string `json:"algorithm"`
	NumOfSlaves int    `json:"numSlaves"`
}

type BruteForceDTO

type BruteForceDTO struct {
	CustomORMModel
	BruteForceBase
}

func (BruteForceDTO) TableName

func (BruteForceDTO) TableName() string

type CredentialsBase

type CredentialsBase struct {
	Username string `json:"username" gorm:"uniqueIndex:idx_username_password"`
	Password string `json:"password" gorm:"uniqueIndex:idx_username_password"`
	Hash     string `json:"hash" gorm:"not null;uniqueIndex:idx_hash"`
}

type CredentialsDTO

type CredentialsDTO struct {
	CustomORMModel
	CredentialsBase
}

func (CredentialsDTO) TableName

func (CredentialsDTO) TableName() string

type CustomORMModel

type CustomORMModel struct {
	ID        uint      `gorm:"primaryKey" json:"id"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
	DeletedAt time.Time `json:"deletedAt"`
}

type DecryptionTask

type DecryptionTask struct {
	TargetHash     string
	Mode           int16
	WordlistPath   string
	ResultPassword string
	NumAttempts    int
	MetaData
	Task
}

type EncryptionTask

type EncryptionTask struct {
	ResultHash     string
	TargetPassword string
	Task
}

type EncryptionTaskResult

type EncryptionTaskResult struct {
	TargetPassword string
	EncryptedHash  string
	MetaData
	Task
}

type GoBrutePlugin

type GoBrutePlugin interface {
	Execute(result *EncryptionTaskResult) error
	PluginBase
}

type Health

type Health struct {
	ID     string        `json:"id"`
	Status ServiceStatus `json:"status"`
	Port   int16         `json:"port"`
}

type IBruteForceCreate

type IBruteForceCreate struct {
	Hash        string `json:"hash" gorm:"not null;uniqueIndex:idx_hash"`
	Algorithm   string `json:"algorithm"`
	NumOfSlaves int    `json:"numSlaves"`
}

type IBruteForceRead

type IBruteForceRead struct {
	ID        uint      `json:"id"`
	CreatedAt time.Time `json:"createdAt"`
	BruteForceBase
}

type IBruteForceUpdate

type IBruteForceUpdate struct {
	ID uint `json:"id"`
	BruteForceBase
}

type ICredentialsCreate

type ICredentialsCreate struct {
	CredentialsBase
}

type IReadCredentials

type IReadCredentials struct {
	ID        uint      `json:"id"`
	CreatedAt time.Time `json:"createdAt"`
	CredentialsBase
}

type IUpdateCredentials

type IUpdateCredentials struct {
	ID uint `json:"id"`
	CredentialsBase
}

type MetaData

type MetaData struct {
	Size        int
	TextMessage string
}

type Plugin

type Plugin struct {
	Name string
	Mode int16
}

type PluginBase

type PluginBase interface{}

type ServerError

type ServerError struct {
	Error string `json:"error"`
}

type ServiceStatus

type ServiceStatus uint8
const (
	ONLINE ServiceStatus = iota
	PENDING
	ERROR
	ShuttingDown
)

func (ServiceStatus) String

func (s ServiceStatus) String() string

type Slave

type Slave struct {
	Name string `json:"name"`
	Ip   string `json:"ip"`
	Port int16  `json:"port"`
}

type SlaveDTO

type SlaveDTO struct {
	CustomORMModel
	Slave
}

func (SlaveDTO) TableName

func (SlaveDTO) TableName() string

type Task

type Task struct {
	StartTime time.Time
	EndTime   time.Duration
}

Jump to

Keyboard shortcuts

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