Forum Discussion

sengsan_lim's avatar
sengsan_lim
Icon for Bronze I rankBronze I
2 months ago

ICS Malware: Triton ModuleNotFoundError: No module named 'pefile

when running this command: 

python3 python_exe_unpack.py -i /home/iml-user/Desktop/Lab-Files/trilog.exe -o /home/iml-user/Desktop/Lab-Files


Traceback (most recent call last):
  File "python_exe_unpack.py", line 14, in <module>
    import pefile
ModuleNotFoundError: No module named 'pefile'

Tried pip3 install pefile but failed. Please advise.

3 Replies

  • Tried python2.7 python_exe_unpack.py -i /home/iml-user/Desktop/Lab-Files/trilog.exe -o /home/iml-user/Desktop/Lab-Files
    [*] On Python 2.7
    [*] This exe is packed using py2exe
    [*] Unpacking the binary now
    [-] Error in unpacking the exe. Probably due to version incompability (exe created using python 2 and run this script with python 3)