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

原理
源码
#coding: utf-8import argparseAUTHOR_TAG = "[Po->] "PATCH_OFFSET = 0x1159F0PATCH_VALUES = b'\xB8\x01\x00\x00\x00\xC3'PATCH_FILE_PATH = r'C:\Users\Po\Desktop\sourceinsight4_test.exe'def debug_info( msg, *args, **kwargs ):print( AUTHOR_TAG+msg, *args, **kwargs )def patch_si4( si4_path ):debug_info("Begin patch file...")with open(si4_path, "r+b") as f:f.seek( PATCH_OFFSET, 0 )f.write( PATCH_VALUES )f.close()debug_info("Patch success!")if __name__ == "__main__":parser = argparse.ArgumentParser()parser.add_argument( '-f', '--si4file', metavar="<si4's abs path>" )args = parser.parse_args()if args.si4file:si4_path = args.si4fileelse:exit("Please specify sourceinsight4.exe's absolute path!")patch_si4( si4_path )
