(self, hash_num, hashes)
Run hashcat against a list of hashes
Run hashcat against a list of hashes
Run hashcat against a list of hashes
def call_hashcat(self, hash_num, hashes):
        """Run hashcat against a list of hashes"""

        hashcat, ruleset, wordlist = args.hashcat, args.ruleset, args.wordlist

        # self.accept_eula(hashcat)

        temp = self.get_junkfile()
        for curr_hash in hashes:
            temp.write(curr_hash + '\n')
        temp.close()

        outfile = self.get_outfile(suffix='ntlm')

        # Spawn hashcat
        command = [hashcat, '-m', hash_num, '-r', ruleset, '-o', outfile.name, temp.name, wordlist]
        verbose(' '.join([str(x) for x in command]))
        verbose("Hashcat command: {}".format([str(x) for x in command]))
        res = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
def call_hashcat ( self , hash_num , hashes ) : hashcat , ruleset , wordlist = args . hashcat , args . ruleset , args . wordlist # self.accept_eula(hashcat) temp = self . get_junkfile ( ) for curr_hash in hashes : temp . write ( curr_hash + '\n' ) temp . close ( ) outfile = self . get_outfile ( suffix = 'ntlm' ) # Spawn hashcat command = [ hashcat , '-m' , hash_num , '-r' , ruleset , '-o' , outfile . name , temp . name , wordlist ] verbose ( ' ' . join ( [ str ( x ) for x in command ] ) ) verbose ( "Hashcat command: {}" . format ( [ str ( x ) for x in command ] ) ) res = subprocess . Popen ( command , stdout = subprocess . PIPE , stderr = subprocess . PIPE )