mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-29 11:28:15 +00:00
Added OpenCL device utilization to status information in machine readable output
This commit is contained in:
parent
ed0ac581cd
commit
8903adb164
@ -14,6 +14,7 @@
|
|||||||
- OpenCL kernels: Abort session if kernel self-test failed
|
- OpenCL kernels: Abort session if kernel self-test failed
|
||||||
- OpenCL kernels: Add '-pure' prefix to kernel filenames to avoid problems caused by reusing existing hashcat installation folder
|
- OpenCL kernels: Add '-pure' prefix to kernel filenames to avoid problems caused by reusing existing hashcat installation folder
|
||||||
- Added JtR-compatible support for hex notation in rules engine
|
- Added JtR-compatible support for hex notation in rules engine
|
||||||
|
- Added OpenCL device utilization to status information in machine readable output
|
||||||
|
|
||||||
##
|
##
|
||||||
## Bugs
|
## Bugs
|
||||||
|
@ -848,6 +848,21 @@ void status_display_machine_readable (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
printf ("REJECTED\t%" PRIu64 "\t", hashcat_status->progress_rejected);
|
printf ("REJECTED\t%" PRIu64 "\t", hashcat_status->progress_rejected);
|
||||||
|
|
||||||
|
printf ("UTIL\t");
|
||||||
|
|
||||||
|
for (int device_id = 0; device_id < hashcat_status->device_info_cnt; device_id++)
|
||||||
|
{
|
||||||
|
const device_info_t *device_info = hashcat_status->device_info_buf + device_id;
|
||||||
|
|
||||||
|
if (device_info->skipped_dev == true) continue;
|
||||||
|
|
||||||
|
// ok, little cheat here again...
|
||||||
|
|
||||||
|
const int util = hm_get_utilization_with_device_id (hashcat_ctx, device_id);
|
||||||
|
|
||||||
|
printf ("%d\t", util);
|
||||||
|
}
|
||||||
|
|
||||||
hc_fwrite (EOL, strlen (EOL), 1, stdout);
|
hc_fwrite (EOL, strlen (EOL), 1, stdout);
|
||||||
|
|
||||||
fflush (stdout);
|
fflush (stdout);
|
||||||
|
Loading…
Reference in New Issue
Block a user