Skip to content

Instantly share code, notes, and snippets.

View hartwork's full-sized avatar

Sebastian Pipping hartwork

View GitHub Profile
@hartwork
hartwork / exe2version_info.py
Created November 3, 2023 15:17 — forked from spookyahell/exe2version_info.py
Using the python pefile lib to extract version information from an exe file
'''Licensed under the MIT License :)'''
import pefile
import pprint
pe = pefile.PE('example.exe')
string_version_info = {}
for fileinfo in pe.FileInfo[0]: