components

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MPL-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvancedAgentConfiguration

type AdvancedAgentConfiguration struct {
	AgentUpdateInterval *int64  `json:"agent_update_interval"`
	UseNativeHashcat    *bool   `json:"use_native_hashcat"`
	BackendDevice       *string `json:"backend_device"`
}

func (*AdvancedAgentConfiguration) GetAgentUpdateInterval

func (o *AdvancedAgentConfiguration) GetAgentUpdateInterval() *int64

func (*AdvancedAgentConfiguration) GetBackendDevice

func (o *AdvancedAgentConfiguration) GetBackendDevice() *string

func (*AdvancedAgentConfiguration) GetUseNativeHashcat

func (o *AdvancedAgentConfiguration) GetUseNativeHashcat() *bool

type Agent

type Agent struct {
	ID                    int64                      `json:"id"`
	Name                  string                     `json:"name"`
	ClientSignature       string                     `json:"client_signature"`
	CommandParameters     *string                    `json:"command_parameters"`
	CPUOnly               bool                       `json:"cpu_only"`
	Trusted               bool                       `json:"trusted"`
	IgnoreErrors          bool                       `json:"ignore_errors"`
	OperatingSystem       string                     `json:"operating_system"`
	Devices               []string                   `json:"devices"`
	AdvancedConfiguration AdvancedAgentConfiguration `json:"advanced_configuration"`
}

func (*Agent) GetAdvancedConfiguration

func (o *Agent) GetAdvancedConfiguration() AdvancedAgentConfiguration

func (*Agent) GetCPUOnly

func (o *Agent) GetCPUOnly() bool

func (*Agent) GetClientSignature

func (o *Agent) GetClientSignature() string

func (*Agent) GetCommandParameters

func (o *Agent) GetCommandParameters() *string

func (*Agent) GetDevices

func (o *Agent) GetDevices() []string

func (*Agent) GetID

func (o *Agent) GetID() int64

func (*Agent) GetIgnoreErrors

func (o *Agent) GetIgnoreErrors() bool

func (*Agent) GetName

func (o *Agent) GetName() string

func (*Agent) GetOperatingSystem

func (o *Agent) GetOperatingSystem() string

func (*Agent) GetTrusted

func (o *Agent) GetTrusted() bool

type AgentConfiguration

type AgentConfiguration struct {
	Config     AdvancedAgentConfiguration `json:"config"`
	APIVersion int64                      `json:"api_version"`
}

func (*AgentConfiguration) GetAPIVersion

func (o *AgentConfiguration) GetAPIVersion() int64

func (*AgentConfiguration) GetConfig

type AgentLastBenchmark

type AgentLastBenchmark struct {
	LastBenchmarkDate time.Time `json:"last_benchmark_date"`
}

func (*AgentLastBenchmark) GetLastBenchmarkDate

func (o *AgentLastBenchmark) GetLastBenchmarkDate() time.Time

func (AgentLastBenchmark) MarshalJSON

func (a AgentLastBenchmark) MarshalJSON() ([]byte, error)

func (*AgentLastBenchmark) UnmarshalJSON

func (a *AgentLastBenchmark) UnmarshalJSON(data []byte) error

type AgentUpdate

type AgentUpdate struct {
	ID              int64    `json:"id"`
	Name            string   `json:"name"`
	ClientSignature string   `json:"client_signature"`
	OperatingSystem string   `json:"operating_system"`
	Devices         []string `json:"devices"`
}

func (*AgentUpdate) GetClientSignature

func (o *AgentUpdate) GetClientSignature() string

func (*AgentUpdate) GetDevices

func (o *AgentUpdate) GetDevices() []string

func (*AgentUpdate) GetID

func (o *AgentUpdate) GetID() int64

func (*AgentUpdate) GetName

func (o *AgentUpdate) GetName() string

func (*AgentUpdate) GetOperatingSystem

func (o *AgentUpdate) GetOperatingSystem() string

type Attack

type Attack struct {
	ID                      int64                `json:"id"`
	AttackMode              *AttackModeName      `default:"dictionary" json:"attack_mode"`
	AttackModeHashcat       *int64               `default:"0" json:"attack_mode_hashcat"`
	Mask                    *string              `default:"" json:"mask"`
	IncrementMode           *bool                `default:"false" json:"increment_mode"`
	IncrementMinimum        int64                `json:"increment_minimum"`
	IncrementMaximum        int64                `json:"increment_maximum"`
	Optimized               *bool                `default:"false" json:"optimized"`
	SlowCandidateGenerators *bool                `default:"false" json:"slow_candidate_generators"`
	WorkloadProfile         *int64               `default:"3" json:"workload_profile"`
	DisableMarkov           *bool                `default:"false" json:"disable_markov"`
	ClassicMarkov           *bool                `default:"false" json:"classic_markov"`
	MarkovThreshold         *int64               `default:"0" json:"markov_threshold"`
	LeftRule                *string              `default:"" json:"left_rule"`
	RightRule               *string              `default:"" json:"right_rule"`
	CustomCharset1          *string              `default:"" json:"custom_charset_1"`
	CustomCharset2          *string              `default:"" json:"custom_charset_2"`
	CustomCharset3          *string              `default:"" json:"custom_charset_3"`
	CustomCharset4          *string              `default:"" json:"custom_charset_4"`
	HashListID              int64                `json:"hash_list_id"`
	WordLists               []AttackResourceFile `json:"word_lists,omitempty"`
	RuleLists               []AttackResourceFile `json:"rule_lists,omitempty"`
	HashMode                *int64               `default:"0" json:"hash_mode"`
	HashListURL             string               `json:"hash_list_url"`
	HashListChecksum        string               `json:"hash_list_checksum"`
	URL                     string               `json:"url"`
}

func (*Attack) GetAttackMode

func (o *Attack) GetAttackMode() *AttackModeName

func (*Attack) GetAttackModeHashcat

func (o *Attack) GetAttackModeHashcat() *int64

func (*Attack) GetClassicMarkov

func (o *Attack) GetClassicMarkov() *bool

func (*Attack) GetCustomCharset1

func (o *Attack) GetCustomCharset1() *string

func (*Attack) GetCustomCharset2

func (o *Attack) GetCustomCharset2() *string

func (*Attack) GetCustomCharset3

func (o *Attack) GetCustomCharset3() *string

func (*Attack) GetCustomCharset4

func (o *Attack) GetCustomCharset4() *string

func (*Attack) GetDisableMarkov

func (o *Attack) GetDisableMarkov() *bool

func (*Attack) GetHashListChecksum

func (o *Attack) GetHashListChecksum() string

func (*Attack) GetHashListID

func (o *Attack) GetHashListID() int64

func (*Attack) GetHashListURL

func (o *Attack) GetHashListURL() string

func (*Attack) GetHashMode

func (o *Attack) GetHashMode() *int64

func (*Attack) GetID

func (o *Attack) GetID() int64

func (*Attack) GetIncrementMaximum

func (o *Attack) GetIncrementMaximum() int64

func (*Attack) GetIncrementMinimum

func (o *Attack) GetIncrementMinimum() int64

func (*Attack) GetIncrementMode

func (o *Attack) GetIncrementMode() *bool

func (*Attack) GetLeftRule

func (o *Attack) GetLeftRule() *string

func (*Attack) GetMarkovThreshold

func (o *Attack) GetMarkovThreshold() *int64

func (*Attack) GetMask

func (o *Attack) GetMask() *string

func (*Attack) GetOptimized

func (o *Attack) GetOptimized() *bool

func (*Attack) GetRightRule

func (o *Attack) GetRightRule() *string

func (*Attack) GetRuleLists

func (o *Attack) GetRuleLists() []AttackResourceFile

func (*Attack) GetSlowCandidateGenerators

func (o *Attack) GetSlowCandidateGenerators() *bool

func (*Attack) GetURL

func (o *Attack) GetURL() string

func (*Attack) GetWordLists

func (o *Attack) GetWordLists() []AttackResourceFile

func (*Attack) GetWorkloadProfile

func (o *Attack) GetWorkloadProfile() *int64

func (Attack) MarshalJSON

func (a Attack) MarshalJSON() ([]byte, error)

func (*Attack) UnmarshalJSON

func (a *Attack) UnmarshalJSON(data []byte) error

type AttackModeName

type AttackModeName string
const (
	AttackModeNameDictionary       AttackModeName = "dictionary"
	AttackModeNameCombinator       AttackModeName = "combinator"
	AttackModeNameMask             AttackModeName = "mask"
	AttackModeNameHybridDictionary AttackModeName = "hybrid-dictionary"
	AttackModeNameHybridMask       AttackModeName = "hybrid-mask"
)

func (AttackModeName) ToPointer

func (e AttackModeName) ToPointer() *AttackModeName

func (*AttackModeName) UnmarshalJSON

func (e *AttackModeName) UnmarshalJSON(data []byte) error

type AttackResourceFile

type AttackResourceFile struct {
	ID          int64  `json:"id"`
	DownloadURL string `json:"download_url"`
	Checksum    string `json:"checksum"`
	FileName    string `json:"file_name"`
}

func (*AttackResourceFile) GetChecksum

func (o *AttackResourceFile) GetChecksum() string

func (*AttackResourceFile) GetDownloadURL

func (o *AttackResourceFile) GetDownloadURL() string

func (*AttackResourceFile) GetFileName

func (o *AttackResourceFile) GetFileName() string

func (*AttackResourceFile) GetID

func (o *AttackResourceFile) GetID() int64

type AuthenticationResult

type AuthenticationResult struct {
	Authenticated bool  `json:"authenticated"`
	AgentID       int64 `json:"agent_id"`
}

func (*AuthenticationResult) GetAgentID

func (o *AuthenticationResult) GetAgentID() int64

func (*AuthenticationResult) GetAuthenticated

func (o *AuthenticationResult) GetAuthenticated() bool

type CrackerUpdate

type CrackerUpdate struct {
	Available     bool    `json:"available"`
	LatestVersion *string `json:"latest_version,omitempty"`
	DownloadURL   *string `json:"download_url,omitempty"`
	ExecName      *string `json:"exec_name,omitempty"`
	Message       *string `json:"message,omitempty"`
}

func (*CrackerUpdate) GetAvailable

func (o *CrackerUpdate) GetAvailable() bool

func (*CrackerUpdate) GetDownloadURL

func (o *CrackerUpdate) GetDownloadURL() *string

func (*CrackerUpdate) GetExecName

func (o *CrackerUpdate) GetExecName() *string

func (*CrackerUpdate) GetLatestVersion

func (o *CrackerUpdate) GetLatestVersion() *string

func (*CrackerUpdate) GetMessage

func (o *CrackerUpdate) GetMessage() *string

type DeviceStatus

type DeviceStatus struct {
	DeviceID    int64              `json:"device_id"`
	DeviceName  string             `json:"device_name"`
	DeviceType  TheTypeOfTheDevice `json:"device_type"`
	Speed       int64              `json:"speed"`
	Utilization int64              `json:"utilization"`
	Temperature int64              `json:"temperature"`
}

func (*DeviceStatus) GetDeviceID

func (o *DeviceStatus) GetDeviceID() int64

func (*DeviceStatus) GetDeviceName

func (o *DeviceStatus) GetDeviceName() string

func (*DeviceStatus) GetDeviceType

func (o *DeviceStatus) GetDeviceType() TheTypeOfTheDevice

func (*DeviceStatus) GetSpeed

func (o *DeviceStatus) GetSpeed() int64

func (*DeviceStatus) GetTemperature

func (o *DeviceStatus) GetTemperature() int64

func (*DeviceStatus) GetUtilization

func (o *DeviceStatus) GetUtilization() int64

type HashcatBenchmark

type HashcatBenchmark struct {
	HashType  int64   `json:"hash_type"`
	Runtime   int64   `json:"runtime"`
	HashSpeed float64 `json:"hash_speed"`
	Device    int64   `json:"device"`
}

func (*HashcatBenchmark) GetDevice

func (o *HashcatBenchmark) GetDevice() int64

func (*HashcatBenchmark) GetHashSpeed

func (o *HashcatBenchmark) GetHashSpeed() float64

func (*HashcatBenchmark) GetHashType

func (o *HashcatBenchmark) GetHashType() int64

func (*HashcatBenchmark) GetRuntime

func (o *HashcatBenchmark) GetRuntime() int64

type HashcatGuess

type HashcatGuess struct {
	GuessBase           string  `json:"guess_base"`
	GuessBaseCount      int64   `json:"guess_base_count"`
	GuessBaseOffset     int64   `json:"guess_base_offset"`
	GuessBasePercentage float64 `json:"guess_base_percentage"`
	GuessMod            string  `json:"guess_mod"`
	GuessModCount       int64   `json:"guess_mod_count"`
	GuessModOffset      int64   `json:"guess_mod_offset"`
	GuessModPercentage  float64 `json:"guess_mod_percentage"`
	GuessMode           int64   `json:"guess_mode"`
}

func (*HashcatGuess) GetGuessBase

func (o *HashcatGuess) GetGuessBase() string

func (*HashcatGuess) GetGuessBaseCount

func (o *HashcatGuess) GetGuessBaseCount() int64

func (*HashcatGuess) GetGuessBaseOffset

func (o *HashcatGuess) GetGuessBaseOffset() int64

func (*HashcatGuess) GetGuessBasePercentage

func (o *HashcatGuess) GetGuessBasePercentage() float64

func (*HashcatGuess) GetGuessMod

func (o *HashcatGuess) GetGuessMod() string

func (*HashcatGuess) GetGuessModCount

func (o *HashcatGuess) GetGuessModCount() int64

func (*HashcatGuess) GetGuessModOffset

func (o *HashcatGuess) GetGuessModOffset() int64

func (*HashcatGuess) GetGuessModPercentage

func (o *HashcatGuess) GetGuessModPercentage() float64

func (*HashcatGuess) GetGuessMode

func (o *HashcatGuess) GetGuessMode() int64

type HashcatResult

type HashcatResult struct {
	Timestamp time.Time `json:"timestamp"`
	Hash      string    `json:"hash"`
	PlainText string    `json:"plain_text"`
}

func (*HashcatResult) GetHash

func (o *HashcatResult) GetHash() string

func (*HashcatResult) GetPlainText

func (o *HashcatResult) GetPlainText() string

func (*HashcatResult) GetTimestamp

func (o *HashcatResult) GetTimestamp() time.Time

func (HashcatResult) MarshalJSON

func (h HashcatResult) MarshalJSON() ([]byte, error)

func (*HashcatResult) UnmarshalJSON

func (h *HashcatResult) UnmarshalJSON(data []byte) error

type Security

type Security struct {
	BearerAuth string `security:"scheme,type=http,subtype=bearer,name=Authorization"`
}

func (*Security) GetBearerAuth

func (o *Security) GetBearerAuth() string

type Task

type Task struct {
	ID        int64     `json:"id"`
	AttackID  int64     `json:"attack_id"`
	StartDate time.Time `json:"start_date"`
	Status    string    `json:"status"`
	Skip      *int64    `json:"skip,omitempty"`
	Limit     *int64    `json:"limit,omitempty"`
}

func (*Task) GetAttackID

func (o *Task) GetAttackID() int64

func (*Task) GetID

func (o *Task) GetID() int64

func (*Task) GetLimit

func (o *Task) GetLimit() *int64

func (*Task) GetSkip

func (o *Task) GetSkip() *int64

func (*Task) GetStartDate

func (o *Task) GetStartDate() time.Time

func (*Task) GetStatus

func (o *Task) GetStatus() string

func (Task) MarshalJSON

func (t Task) MarshalJSON() ([]byte, error)

func (*Task) UnmarshalJSON

func (t *Task) UnmarshalJSON(data []byte) error

type TaskStatus

type TaskStatus struct {
	OriginalLine    string         `json:"original_line"`
	Time            time.Time      `json:"time"`
	Session         string         `json:"session"`
	HashcatGuess    HashcatGuess   `json:"hashcat_guess"`
	Status          int64          `json:"status"`
	Target          string         `json:"target"`
	Progress        []int64        `json:"progress"`
	RestorePoint    int64          `json:"restore_point"`
	RecoveredHashes []int64        `json:"recovered_hashes"`
	RecoveredSalts  []int64        `json:"recovered_salts"`
	Rejected        int64          `json:"rejected"`
	DeviceStatuses  []DeviceStatus `json:"device_statuses"`
	TimeStart       time.Time      `json:"time_start"`
	EstimatedStop   time.Time      `json:"estimated_stop"`
}

func (*TaskStatus) GetDeviceStatuses

func (o *TaskStatus) GetDeviceStatuses() []DeviceStatus

func (*TaskStatus) GetEstimatedStop

func (o *TaskStatus) GetEstimatedStop() time.Time

func (*TaskStatus) GetHashcatGuess

func (o *TaskStatus) GetHashcatGuess() HashcatGuess

func (*TaskStatus) GetOriginalLine

func (o *TaskStatus) GetOriginalLine() string

func (*TaskStatus) GetProgress

func (o *TaskStatus) GetProgress() []int64

func (*TaskStatus) GetRecoveredHashes

func (o *TaskStatus) GetRecoveredHashes() []int64

func (*TaskStatus) GetRecoveredSalts

func (o *TaskStatus) GetRecoveredSalts() []int64

func (*TaskStatus) GetRejected

func (o *TaskStatus) GetRejected() int64

func (*TaskStatus) GetRestorePoint

func (o *TaskStatus) GetRestorePoint() int64

func (*TaskStatus) GetSession

func (o *TaskStatus) GetSession() string

func (*TaskStatus) GetStatus

func (o *TaskStatus) GetStatus() int64

func (*TaskStatus) GetTarget

func (o *TaskStatus) GetTarget() string

func (*TaskStatus) GetTime

func (o *TaskStatus) GetTime() time.Time

func (*TaskStatus) GetTimeStart

func (o *TaskStatus) GetTimeStart() time.Time

func (TaskStatus) MarshalJSON

func (t TaskStatus) MarshalJSON() ([]byte, error)

func (*TaskStatus) UnmarshalJSON

func (t *TaskStatus) UnmarshalJSON(data []byte) error

type TheTypeOfTheDevice

type TheTypeOfTheDevice string
const (
	TheTypeOfTheDeviceCPU TheTypeOfTheDevice = "CPU"
	TheTypeOfTheDeviceGpu TheTypeOfTheDevice = "GPU"
)

func (TheTypeOfTheDevice) ToPointer

func (e TheTypeOfTheDevice) ToPointer() *TheTypeOfTheDevice

func (*TheTypeOfTheDevice) UnmarshalJSON

func (e *TheTypeOfTheDevice) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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