display

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package display provides output and logging functions for the CipherSwarm agent.

Index

Constants

View Source
const MinStatusFields = 2

MinStatusFields is the minimum number of elements required in hashcat status Progress and RecoveredHashes slices (current value and total).

Variables

This section is empty.

Functions

func AgentMetadataUpdated

func AgentMetadataUpdated(result *api.UpdateAgentResponse)

AgentMetadataUpdated logs that the agent metadata has been updated using the CipherSwarm API. Logs relevant metadata and agent ID for debugging.

func Authenticated

func Authenticated()

Authenticated logs an informational message indicating successful authentication with the CipherSwarm API.

func BenchmarkError

func BenchmarkError(stdErrLine string)

BenchmarkError logs a debug-level message detailing a line of standard error output from a benchmark process.

func BenchmarkStarting

func BenchmarkStarting()

BenchmarkStarting logs a message indicating that benchmark processes are starting.

func DownloadFileStart

func DownloadFileStart(attack *api.Attack)

DownloadFileStart logs the start of the file download process for the provided attack.

func Inactive

func Inactive(sleepTime time.Duration)

Inactive logs a debug message with the provided sleepTime duration before the agent pauses its activity.

func JobCrackedHash

func JobCrackedHash(crackedHash hashcat.Result)

JobCrackedHash logs the cracked hash result using the shared logger.

func JobError

func JobError(stdErrLine string)

JobError logs a single line of standard error for a job after removing non-printable characters from the line.

func JobExhausted

func JobExhausted()

JobExhausted logs a "Job session exhausted" message at the Info level with a status of "exhausted".

func JobFailed

func JobFailed(err error)

JobFailed logs an error message indicating that a job session has failed using the shared logger.

func JobStatus

func JobStatus(update hashcat.Status)

JobStatus logs the current status of a hashcat operation, including progress, speed, and cracked hashes.

func NewAttack

func NewAttack(attack *api.Attack)

NewAttack logs debug and info level messages for a new attack. It logs attack parameters and information about the new attack initiation using agentstate.Logger.

func NewTask

func NewTask(task *api.Task)

NewTask logs a new task as available using the agentstate.Logger instance. It outputs debug and info level logs with the complete task details and its ID, respectively.

func RunTaskAccepted

func RunTaskAccepted(task *api.Task)

RunTaskAccepted logs an informational message indicating that a task has been accepted, specifying the task ID.

func RunTaskCompleted

func RunTaskCompleted()

RunTaskCompleted logs a message indicating that a task has been completed successfully.

func RunTaskStarting

func RunTaskStarting(task *api.Task)

RunTaskStarting logs a message indicating that a task is starting with the specified task ID.

func ShuttingDown

func ShuttingDown()

ShuttingDown logs an informational message indicating the shutdown of the CipherSwarm Agent.

func Startup

func Startup()

Startup logs an informational message indicating the start of the CipherSwarm Agent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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