hashcattypes

package
v0.0.0-...-27ca0bd Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttackModeDictionary = 0
	AttackModeCombinator = 1
	AttackModeMask       = 3
	AttackModeHybridDM   = 6
	AttackModeHybridMD   = 7
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HashType

type HashType struct {
	ID                int      `json:"id"`
	Name              string   `json:"name"`
	Category          string   `json:"category"`
	SlowHash          bool     `json:"slow_hash"`
	PasswordLenMin    int      `json:"password_len_min"`
	PasswordLenMax    int      `json:"password_len_max"`
	IsSalted          bool     `json:"is_salted"`
	KernelType        []string `json:"kernel_types"`
	ExampleHashFormat string   `json:"example_hash_format"`
	ExampleHash       string   `json:"example_hash"`
	ExamplePass       string   `json:"example_pass"`
	BenchmarkMask     string   `json:"benchmark_mask"`
	BenchmarkCharset1 string   `json:"benchmark_charset1"`
	AutodetectEnabled bool     `json:"autodetect_enabled"`
	SelfTestEnabled   bool     `json:"self_test_enabled"`
	PotfileEnabled    bool     `json:"potfile_enabled"`
	CustomPlugin      bool     `json:"custom_plugin"`
	PlaintextEncoding []string `json:"plaintext_encoding"`
}

type HashTypeMap

type HashTypeMap map[int]*HashType

type HashcatParams

type HashcatParams struct {
	AttackMode uint8 `json:"attack_mode"`
	HashType   uint  `json:"hash_type"`

	Mask               string   `json:"mask"`
	MaskIncrement      bool     `json:"mask_increment"`
	MaskIncrementMin   uint     `json:"mask_increment_min"`
	MaskIncrementMax   uint     `json:"mask_increment_max"`
	MaskShardedCharset string   `json:"mask_sharded_charset"` // Internal use: for sharding charsets
	MaskCustomCharsets []string `json:"mask_custom_charsets"`

	WordlistFilenames []string `json:"wordlist_filenames"`
	RulesFilenames    []string `json:"rules_filenames"`
	AdditionalArgs    []string `json:"additional_args"`
	OptimizedKernels  bool     `json:"optimized_kernels"`
	SlowCandidates    bool     `json:"slow_candidates"`

	Skip  int64 `json:"skip"`
	Limit int64 `json:"limit"`
}

type HashcatResult

type HashcatResult struct {
	Timestamp    time.Time `json:"timestamp"`
	Hash         string    `json:"hash"`
	PlaintextHex string    `json:"plaintext_hex"`
}

type HashcatStatus

type HashcatStatus struct {
	OriginalLine string    `json:"original_line"`
	Time         time.Time `json:"time"`

	Session         string                `json:"session"`
	Guess           HashcatStatusGuess    `json:"guess"`
	Status          int                   `json:"status"`
	Target          string                `json:"target"`
	Progress        []int                 `json:"progress"`
	RestorePoint    int                   `json:"restore_point"`
	RecoveredHashes []int                 `json:"recovered_hashes"`
	RecoveredSalts  []int                 `json:"recovered_salts"`
	Rejected        int                   `json:"rejected"`
	Devices         []HashcatStatusDevice `json:"devices"`

	TimeStart     int64 `json:"time_start"`
	EstimatedStop int64 `json:"estimated_stop"`
}

type HashcatStatusDevice

type HashcatStatusDevice struct {
	DeviceID   int    `json:"device_id"`
	DeviceName string `json:"device_name"`
	DeviceType string `json:"device_type"`
	Speed      int    `json:"speed"`
	Util       int    `json:"util"`
	Temp       int    `json:"temp"`
}

type HashcatStatusGuess

type HashcatStatusGuess struct {
	GuessBase        string  `json:"guess_base"`
	GuessBaseCount   uint64  `json:"guess_base_count"`
	GuessBaseOffset  uint64  `json:"guess_base_offset"`
	GuessBasePercent float32 `json:"guess_base_percent"`

	GuessMod        string  `json:"guess_mod"`
	GuessModCount   uint64  `json:"guess_mod_count"`
	GuessModOffset  uint64  `json:"guess_mod_offset"`
	GuessModPercent float32 `json:"guess_mod_percent"`

	GuessMode int `json:"guess_mode"`
}

Jump to

Keyboard shortcuts

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