static const char *title =\
"Broadcom Consumer Router Firmware Header Dump"
;
-static const float VERSION = 1.03f;
+static const float VERSION = 1.05f;
static const char *copyright = \
"Copyright 2015-2016 TJ <hacker@iam.tj>\n"
header_len = sizeof(IMAGE_TAG);
lseek(fd, offset, SEEK_SET);
- printf("Header Offset: 0x%08x\n", offset);
+ printf("Header Offset: 0x%08x (%u)\n", offset, offset);
if ( (buffer = heap_and_reap(NULL, header_len, 1)) != NULL) {
ssize_t qty;
}
if (!count) {
- printf("Image Offset: 0x%08x\n", offset);
+ printf("Image Offset: 0x%08x (%u)\n", offset, offset);
printf("%04lx Tag Version: %s\n"
"%04lx Signature 1: %s (Model: %s)\n"
"%04lx Signature 2: %s\n"
);
} else {
- printf("Image Offset: 0x%08x\n", offset);
+ printf("Image Offset: 0x%08x (%u)\n", offset, offset);
printf("%04lx Image Next: %u\n"
"%04lx Image Type: %s (%lu)\n"
"%04lx Image Signature: %u\n"