pehash

Usage: pehash OPTIONS FILE
Calculate hashes of PE pieces

Example: pehash -s '.text' winzip.exe

Options:
 -f, --format <text|csv|xml|html>    change output format (default: text)
 -a, --all                                 hash file, sections and headers with md5, sha1, sha256, ssdeep and imphash
 -c, --content                             hash only the file content (default)
 -h, --header <dos|coff|optional>    hash only the header with the specified name
 -s, --section <section_name>        hash only the section with the specified name
 --section-index <section_index>     hash only the section at the specified index (1..n)
 -V, --version                             show version and exit
 --help                                    show this help and exit