介绍

基于当前最新版本: 4.0.0120: 官网下载链接
Source Insight 4 - Latest Version
Version 4.0.0120 - November 11, 2020

效果

Source Insight4 最新版 4.0.0120 Patch - 图1

原理

直接Patch掉了激活界面及与服务器交互的激活线程

源码

  1. #coding: utf-8
  2. import argparse
  3. AUTHOR_TAG = "[Po->] "
  4. PATCH_OFFSET = 0x1159F0
  5. PATCH_VALUES = b'\xB8\x01\x00\x00\x00\xC3'
  6. PATCH_FILE_PATH = r'C:\Users\Po\Desktop\sourceinsight4_test.exe'
  7. def debug_info( msg, *args, **kwargs ):
  8. print( AUTHOR_TAG+msg, *args, **kwargs )
  9. def patch_si4( si4_path ):
  10. debug_info("Begin patch file...")
  11. with open(si4_path, "r+b") as f:
  12. f.seek( PATCH_OFFSET, 0 )
  13. f.write( PATCH_VALUES )
  14. f.close()
  15. debug_info("Patch success!")
  16. if __name__ == "__main__":
  17. parser = argparse.ArgumentParser()
  18. parser.add_argument( '-f', '--si4file', metavar="<si4's abs path>" )
  19. args = parser.parse_args()
  20. if args.si4file:
  21. si4_path = args.si4file
  22. else:
  23. exit("Please specify sourceinsight4.exe's absolute path!")
  24. patch_si4( si4_path )