Skip to content

Commit

Permalink
fix hashcat 5.x bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmcatee committed Oct 2, 2019
1 parent 857b546 commit e4a4da7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/tools/hashcat5/tasker.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,16 @@ func (t *Tasker) Run() error {
return nil
}

// We need to first parse the stuff we were given by the user for the hash file.
// We will do this via hashcat's --left output, which also will create our hash file for cracking
hashcatLeftExec := exec.Command(config.BinPath, t.showPotLeft...)
hashcatLeftExec.Dir = t.wd
log.WithField("Left Command", hashcatLeftExec.Args).Debug("Executing Left Command")
_, err := hashcatLeftExec.Output()
if err != nil {
log.WithField("execError", err).Error("Error running hashcat --left command.")
}

// Get the first line of the Left output to count our separators (:)
hashcatLeftFilename := filepath.Join(t.wd, ConstHashcatLeftFilename)
hashcatLeftFile, err := os.Open(hashcatLeftFilename)
Expand Down

0 comments on commit e4a4da7

Please sign in to comment.