Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extract7z ¶
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 ¶
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 ¶
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.