pefile 1.0.0-dev.0 copy "pefile: ^1.0.0-dev.0" to clipboard
pefile: ^1.0.0-dev.0 copied to clipboard

outdated

A Dart library to parse Portable Executable (PE) format

example/pefile_example.dart

import 'package:pefile/pefile.dart' as pefile;

Future<void> main() async {
  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');
  }
}
1
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Dart library to parse Portable Executable (PE) format

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

ffi

More

Packages that depend on pefile