项目作者: jjxtra

项目描述 :
Search and replace using hex. Find and replace binary data with simple C# code.
高级语言: C#
项目地址: git://github.com/jjxtra/HexAndReplace.git
创建时间: 2019-11-17T01:49:37Z
项目社区:https://github.com/jjxtra/HexAndReplace

开源协议:MIT License

下载


Hex and Replace

HexAndReplace allows finding a hex sequence in any file and replacing with another. The replacement hex must be identical in length to the find hex. Great if you don’t want to install a hex-editor for concerns of malware.

The file will be replaced as is, so make a backup first if you are not sure.

As of 2.0.0 release, files of unlimited length are supported.

Usage:

  1. HexAndReplace <file> <find hex> <replace hex>
  2. General Example:
  3. HexAndReplace mybinaryfile.bin 0xFFEEDDCC 0xAAEEDDCC
  4. // Unity 2019.3 dark mode
  5. HexAndReplace "C:\Program Files\Unity\Hub\Editor\2019.3.6f1\Editor\Unity.exe" "75 15 33 C0 EB 13 90" "74 15 33 C0 EB 13 90"
  6. // Unity 2018.4 dark mode
  7. HexAndReplace "C:\Program Files\Unity\Hub\Editor\2018.4.6f1\Editor\Unity.exe" "74 04 33 C0 EB 02 8B 03 48 8B 4C" "75 04 33 C0 EB 02 8B 03 48 8B 4C"
  8. // Unity 2017.4 dark mode
  9. HexAndReplace "C:\Program Files\Unity\Hub\Editor\2017.4.38f1\Editor\Unity.exe" "75 08 33 C0 48 83 C4 20 5B C3 8B 03 48 83 C4 20 5B C3" "74 08 33 C0 48 83 C4 20 5B C3 8B 03 48 83 C4 20 5B C3"

Enjoy!

— Jeff