mirror of
https://github.com/keylase/nvidia-patch.git
synced 2024-11-22 21:47:19 +00:00
1.5 KiB
1.5 KiB
1337-diff
This tool accepts two input files and produces patch (diff) in .1337
-file format. This format is compatible with patches produced by x64dbg and applied by Win_1337_Apply_Patch tool.
This tool is intended for internal usage to automate routine tasks related to windows patches. Implementation is really slow and prefers code transparency and correctness over speed.
Requirements
- Python 3
Synopsys
$ ./1337-diff.py -h
usage: 1337-diff.py [-h] [-f FILENAME] [-l LIMIT]
ORIG_FILE PATCHED_FILE [OUTPUT_FILE]
Make .1337 patch file from original and patched files
positional arguments:
ORIG_FILE original file
PATCHED_FILE patched file
OUTPUT_FILE filename for patch output. Default: basename of
original filename with .1337 extension
optional arguments:
-h, --help show this help message and exit
-f FILENAME, --header-filename FILENAME
filename specified in resulting patch header. Default:
basename of original filename.
-l LIMIT, --limit LIMIT
stop after number of differences
Example
$ ./1337-diff.py ~/w418.81/orig/nvcuvid.dll ~/w418.81/patched/nvcuvid.dll
$ cat nvcuvid.1337
>nvcuvid.dll
00000000000DE736:74->90
00000000000DE737:08->90$
Note no newline at the end of file and CRLF line breaks.