Given a binary, determine its bitness
A Python library with one simple purpose: given a binary, determine its bitness.
pip install bitnesslib
>>> import bitnesslib >>> bitnesslib.get_bitness('C:/Windows/System32/calc.exe') 64 >>> bitnesslib.get_bitness('C:/Windows/SysWOW64/calc.exe') 32
Supported file formats
- MZ & PE
- IDA databases (.idb & .i64)
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.