Show checksum info in rabin2 -I, need better naming

This commit is contained in:
pancake 2016-03-12 11:28:05 +01:00
parent 5c3f5904ea
commit 0104b0b324

View File

@ -506,6 +506,14 @@ static int bin_info(RCore *r, int mode) {
pair_str ("compiled", compiled, mode, false);
pair_str ("guid", info->guid, mode, false);
pair_str ("dbg_file", info->debug_file_name, mode, true);
if (info->claimed_checksum) {
/* checksum specified in header */
pair_str ("hdr_cksum", info->claimed_checksum, mode, true);
}
if (info->actual_checksum) {
/* computed checksum */
pair_str ("cmp_cksum", info->actual_checksum, mode, true);
}
// checksums are only supported for pe atm
if (strncmp ("pe", info->rclass, 2) == 0) {