Documentation ¶
Index ¶
- Constants
- Variables
- func HashcatHelpScanner(help string, section string) map[string][]string
- func NewTooler() common.Tooler
- func ParseHashcatOutputFile(r io.Reader, inputSplit int, hashMode string) (count int64, hashes [][]string)
- func ParseLeftHashFile(r io.Reader) (count int64, split int)
- func ParseShowPotFile(r io.Reader, leftSplit int, hashMode string) (count int64, hashes [][]string)
- func Setup(confPath string) error
- type Charset
- type Charsets
- type Config
- type Dictionaries
- type Dictionary
- type HashMode
- type HashModes
- type RuleFile
- type RuleFiles
- type Status
- type Tasker
Constants ¶
View Source
const ( USER_HASHES_FILENAME = "user-input-hashes.txt" HASHCAT_POT_SHOW_FILENAME = "hashcat-pot-show.txt" HASHCAT_LEFT_FILENAME = "hashcat-left.txt" HASH_OUTPUT_FILENAME = "output-hashes.txt" )
Variables ¶
View Source
var CharSetPreDefCustom1 = "?l?d" // Lower ad number
Assumes ?1=?l?d, ?2=?u?l?d, ?3=?d?s, ?4=?l?d?s
View Source
var CharSetPreDefCustom2 = "?u?l?d" // Upper, lower, and number
View Source
var CharSetPreDefCustom3 = "?d?s" // number and symbols
View Source
var CharSetPreDefCustom4 = "?l?d?s" // lower, number, and symbol
View Source
var StatusTable = map[string]string{
"0": "Init",
"1": "Starting",
"2": "Running",
"3": "Paused",
"4": "Exhausted",
"5": "Cracked",
"6": "Aborted",
"7": "Quit",
"8": "Bypass",
"9": "StopAtCheckpoint",
"10": "Autotune",
}
StatusTable is a table to convert status numbers in hashcat to a word
Functions ¶
func HashcatHelpScanner ¶
HashcatHelpScanner is designed to return a table struct of the hashcat help output
func ParseHashcatOutputFile ¶
func ParseHashcatOutputFile(r io.Reader, inputSplit int, hashMode string) (count int64, hashes [][]string)
ParseHashcatOutputFile parses the Hashcat Output file
func ParseLeftHashFile ¶
ParseLeftHashFile takes an io.Reader and returns the number of lines (hashes) and the number of separators (:)
func ParseShowPotFile ¶
ParseShowPotFile pull the line count and the hash output from the show pot outputfile
Types ¶
type Config ¶
type Config struct { BinPath string WorkingDir string Args []string Separator string PotFilePath string HashModes HashModes Dictionaries Dictionaries RuleFiles RuleFiles Charsets Charsets }
Config is structure to hold configuration
type Dictionaries ¶
type Dictionaries []Dictionary
func (Dictionaries) Len ¶
func (d Dictionaries) Len() int
func (Dictionaries) Less ¶
func (d Dictionaries) Less(i, j int) bool
func (Dictionaries) Swap ¶
func (d Dictionaries) Swap(i, j int)
type Dictionary ¶
type Status ¶
type Status struct { Status string Attempted int64 Keyspace int64 Progress float64 EstimateTime string Speed []float64 // speed in hashes per sec RecoveredHashes int64 TotalHashes int64 Temperature []int }
Status standard return status
func ParseMachineOutput ¶
ParseMachineOutput returns a Status for a given status line
type Tasker ¶
type Tasker struct {
// contains filtered or unexported fields
}
Tasker is the structure that implements the Tasker inteface
Click to show internal directories.
Click to hide internal directories.