Documentation
¶
Overview ¶
Package display provides output and logging functions for the CipherSwarm agent.
Index ¶
- Constants
- func AgentMetadataUpdated(result *api.UpdateAgentResponse)
- func Authenticated()
- func BenchmarkError(stdErrLine string)
- func BenchmarkStarting()
- func DownloadFileStart(attack *api.Attack)
- func Inactive(sleepTime time.Duration)
- func JobCrackedHash(crackedHash hashcat.Result)
- func JobError(stdErrLine string)
- func JobExhausted()
- func JobFailed(err error)
- func JobStatus(update hashcat.Status)
- func NewAttack(attack *api.Attack)
- func NewTask(task *api.Task)
- func RunTaskAccepted(task *api.Task)
- func RunTaskCompleted()
- func RunTaskStarting(task *api.Task)
- func ShuttingDown()
- func Startup()
Constants ¶
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 ¶
DownloadFileStart logs the start of the file download process for the provided attack.
func Inactive ¶
Inactive logs a debug message with the provided sleepTime duration before the agent pauses its activity.
func JobCrackedHash ¶
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 ¶
JobStatus logs the current status of a hashcat operation, including progress, speed, and cracked hashes.
func NewAttack ¶
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 ¶
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 ¶
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 ¶
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.
Types ¶
This section is empty.