🐍Python🐍

  1. import pefile
  2. pathFile = ".\\PE"
  3. def File2Read():
  4. filePE = open(pathFile, "rb")
  5. if(filePE):
  6. print("成功读取文件")
  7. else:
  8. print("无文件 / 文件无数据")
  9. exit(0)
  10. dataPE = filePE.read()
  11. global hexPE
  12. hexPE = binascii.b2a_hex(dataPE).decode('utf-8').upper()