Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git committed Nov 8, 2024
1 parent bedc9fa commit d31d524
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# shellcheck disable=SC3043 # In POSIX sh, local is undefined

SCRIPT_NAME='Bits info'
SCRIPT_VERSION='1.5.24'
SCRIPT_VERSION='1.5.25'

### CONFIGURATION ###

Expand Down Expand Up @@ -403,6 +403,13 @@ detect_bitness_of_single_file()
return 5
fi

if compare_hex_bytes "${_dbf_first_bytes}" '0' '8' 'd0cf11e0a1b11ae1'; then
# CFBF - Compound File Binary Format (.msi) - Start with: 0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1

printf '%s\n' 'Bit-independent CFBF'
return 0
fi

if compare_hex_bytes "${_dbf_first_bytes}" '0' '4' '7f454c46'; then
# ELF - Executable binaries for Linux / Android - Start with: 0x7F + ELF (0x45 0x4C 0x46) + 0x01 for 32-bit or 0x02 for 64-bit

Expand Down

0 comments on commit d31d524

Please sign in to comment.