Skip to content

Midi12/pefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pefile

A Dart library to parse Portable Executable (PE) format

Usage

A simple usage example:

var pe = pefile.parse('C:\\Windows\\System32\\notepad.exe');
print('Is 64bit ? ${pe.is64bit}');

var dos_hdr = pe.dos_header;
print('DOS magic ${dos_hdr.e_magic}');
print('Entry point ${pe.header_data.entry_point_rva.toRadixString(16)}h');

for(var section in pe.sections) {
  print('Section ${section.name}\taddress ${section.virtual_address.toRadixString(16)}h\tsize ${section.virtual_size.toRadixString(16)}h');
}

Todos:

  • Add export directory parsing
  • Add import directory parsing

Packages

No packages published

Languages