viper-framework / viper

Binary analysis and management framework
Other
1.54k stars 351 forks source link

TypeError in PE module compiletime function #598

Open botherder opened 7 years ago

botherder commented 7 years ago

Something changed in the PE module, as now the pe compiletime --scan option is not working properly.


  File "/usr/local/lib/python2.7/dist-packages/viper-1.3.dev0-py2.7.egg/viper/core/ui/console.py", line 318, in start
    module.run()
  File "/usr/local/lib/python2.7/dist-packages/viper-1.3.dev0-py2.7.egg/viper/modules/pe.py", line 1010, in run
    self.compiletime()
  File "/usr/local/lib/python2.7/dist-packages/viper-1.3.dev0-py2.7.egg/viper/modules/pe.py", line 293, in compiletime
    delta = (compile_time - cur_compile_time)
TypeError: unsupported operand type(s) for -: 'str' and 'str'```
frennkie commented 7 years ago

Just tried to reproduce this but pe compiletime --scan works for me on both Python2&3.

Which version of pefile do you have? I have pefile==2017.5.26