summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorawuctl2022-08-24 07:34:29 +0000
committerawuctl2022-08-24 07:34:29 +0000
commitc8c9e8e731cfcf9db49182e58ea94a5289cfd8b6 (patch)
tree0fd7da397b9dcad282eb9177862df19a715d7727
parent840fb76d797319ca0542dccc92a08feb1e9a8264 (diff)
downloadhwid-stuff-c8c9e8e731cfcf9db49182e58ea94a5289cfd8b6.zip
add guess at the encoded threshold value
-rw-r--r--hwid_dec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hwid_dec.c b/hwid_dec.c
index c426133..7654a25 100644
--- a/hwid_dec.c
+++ b/hwid_dec.c
@@ -53,12 +53,12 @@ const char *HWID_NAMES[] = {
void print_block(uint8_t *hw_block) {
uint32_t size = *(uint32_t *)hw_block;
- uint16_t unknown = *(uint16_t *)(hw_block + 4);
+ uint16_t threshold = *(uint16_t *)(hw_block + 4); // just an educated guess for now
unsigned instance_count = 0;
puts("Block Information:");
- printf("Size : [%08x]\n", size);
- printf("Unknown : [%08x]\n", unknown);
+ printf("Size : [%08x]\n", size);
+ printf("Threshold : [%08x]\n", threshold);
puts("");
struct HWID *hwid = (struct HWID *)(hw_block + 6);