arch

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract7z

func Extract7z(srcFile string, destDir string) error

Extract7z extracts the contents of a 7z archive to a specified directory. It takes the source file path of the 7z archive and the destination directory where the contents should be extracted.

Parameters:

  • srcFile: The path to the 7z archive file.
  • destDir: The directory where the contents of the archive will be extracted.

Returns:

  • error: An error object if the extraction fails, otherwise nil.

func GetAdditionalHashcatArgs

func GetAdditionalHashcatArgs() []string

GetAdditionalHashcatArgs returns a slice of additional arguments to be passed to Hashcat. Currently, it returns an empty slice, but it can be extended to include more arguments as needed.

func GetDefaultHashcatBinaryName

func GetDefaultHashcatBinaryName() string

GetDefaultHashcatBinaryName returns the default binary name for the Hashcat tool on Linux systems. This function is useful for determining the standard executable name used by Hashcat.

func GetDevices

func GetDevices() ([]string, error)

GetDevices retrieves a list of GPU devices available on a Linux system. It executes the "lspci" command to list all PCI devices and filters out the ones that are VGA compatible controllers (typically GPUs).

Returns:

[]string: A slice of strings containing the names of the GPU devices.
error: An error object if there was an issue executing the command or parsing the output.

func GetHashcatVersion

func GetHashcatVersion(hashcatPath string) (string, error)

GetHashcatVersion retrieves the version of Hashcat installed at the specified path. It runs the Hashcat executable with the "--version" and "--quiet" flags and returns the version as a string. If an error occurs during execution, it returns "0.0.0" and the error.

Parameters:

  • hashcatPath: The file path to the Hashcat executable.

Returns:

  • A string representing the Hashcat version.
  • An error if the command execution fails.

func GetPlatform

func GetPlatform() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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