diff --git a/htpclient/hashcat_cracker.py b/htpclient/hashcat_cracker.py index e501be4..efc65f5 100644 --- a/htpclient/hashcat_cracker.py +++ b/htpclient/hashcat_cracker.py @@ -1,6 +1,7 @@ import string import logging import subprocess +import psutil from time import sleep from queue import Queue, Empty from threading import Thread, Lock @@ -313,6 +314,7 @@ def run_loop(self, proc, chunk, task): query['gpuTemp'] = status.get_temps() if status.get_all_util(): query['gpuUtil'] = status.get_all_util() + query['cpuUtil'] = [round(psutil.cpu_percent(), 1)] req = JsonRequest(query) logging.debug("Sending " + str(len(self.cracks)) + " cracks...")