LIEF icon indicating copy to clipboard operation
LIEF copied to clipboard

TypeError: load_configuration.has GUARD_RF_FLAGS.INSTRUMENTED

Open Wenzel opened this issue 5 years ago • 1 comments

Describe the bug Testing whether GUARD_RF_FLAGS.INSTRUMENTED is present with the has method on a load_configuration object returns a TypeError

To Reproduce

  • load a PE with LIEF
  • run b.load_configuration.has(GUARD_RF_FLAGS.INSTRUMENTED)

Capture d’écran de 2020-10-07 00-06-05

Expected behavior The method should have returned a boolean to indicate whether this flag was present or not.

Environment (please complete the following information):

  • System and Version : Ubuntu 20.04
  • Target format PE
  • LIEF commit version: 0.10.1-bfe5414

Additional context I need this feature to check RFG support: https://github.com/Wenzel/checksec.py/issues/77

Thanks !

Wenzel avatar Oct 06 '20 22:10 Wenzel

In progress on the branch issue/473

romainthomas avatar Oct 07 '20 06:10 romainthomas