PEHASH(1)
π PEHASH(1) β like, the manual page but make it cute
okay bestie, welcome to pehash, straight outta the General Commands Manual section 1. this is the page for the tool, and i'm gonna walk you through it like we're texting at 2am. no gatekeeping. periodt. β¨
πΈ NAME πΈ
pehash β calculate hashes of PE pieces π§
π SYNOPSIS π
pehash [OPTIONS]... pefile
π¦ DESCRIPTION π¦
so, pehash uses libssl, libfuzzy and other black magic πͺ to calculate PE file hashes. it's part of pev, the PE file analysis toolkit. it's giving main character energy in a whole suite of tools, iykyk.
pefile is a PE32/PE32+ executable or dynamic linked library file. that's it. that's the input. π«Ά
β¨ OPTIONS β¨
-a,--allβ hash the file, the sections AND the headers withmd5,sha1,sha256,ssdeepandimphash. literally everything. the full deluxe package π₯-c,--contentβ hash only the file content. this is the default btw, so if you do nothing, this is what you get π-f,--format <text|csv|xml|html>β change the output format. default istext. pick your aesthetic β¨-h,--header <dos|coff|optional>β hash only the header with the specified name. yes, only the one you named, no extras π-s,--section <section_name>β hash only the section with the specified name. very specific of you, love that π--section-index <section_index>β hash only the section at the specified index, and the index range is1..n. numbers only bestie, no vibes-based indexing π-V,--versionβ show version π--helpβ show this help π
ngl, no option means it defaults to--contentmode. sopehash pefileandpehash -c pefileare the same vibe. π
π EXAMPLES π
check ALL the supported checksums of putty.exe, because why choose one:
$ pehash -a putty.exe
ate. no crumbs. πβ¨
π REPORTING BUGS π
bestie if something's broken, pls check the latest development code first and then report at https://github.com/mentebinaria/readpe/issues. we're not mad, we're just disappointed (jk we love you) π«Ά
π SEE ALSO π
ofs2rva(1), pedis(1), peldd(1), pepack(1), peres(1), pescan(1), pesec(1), pestr(1), readpe(1), rva2ofs(1)
the whole friend group π go say hi.
π COPYRIGHT π
Copyright (C) 2012 - 2020 pev authors. License GPLv2+: GNU GPL version 2 or later <https://www.gnu.org/licenses/gpl-2.0.txt>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
there is NO WARRANTY. to the extent permitted by law. fr fr. don't come for us π
and that's the whole page bestie β it lives in the General Commands Manual asPEHASH(1), and the footer saysPEHASH(1)too, so we've come full circle. stay hashing, stay iconic ππ¦β¨
π¦ where this page comes from
- alpine 3.24: pev-doc 0.82-r0 Β· GPL-2.0-or-later AND MIT AND BSD-2-Clause
- debian trixie: readpe 0.84-2 Β· GPL-2.0-or-later WITH OpenSSL Exception
- ubuntu noble: readpe 0.82-3.1build2 Β· GPL-2.0-or-later WITH OpenSSL Exception
- ubuntu questing: readpe 0.84-2
- ubuntu resolute: readpe 0.85.1-1 Β· GPL-2.0-or-later WITH OpenSSL Exception
- ubuntu stonking: readpe 0.85.1-1build1 Β· GPL-2.0-or-later WITH OpenSSL Exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms