Skip to content

Commit 6b27b2e

Browse files
authored
Documentation
1 parent 40544a8 commit 6b27b2e

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,54 @@
11
# PowerShell Binary Diff & Patch
2+
3+
PS-BinDiff binary compares two files and shows similar output to "fc.exe /B" command but also generates a new patch file in powershell. Provide inputs files by command line or through interactive dialogs.
4+
The new generated patch checks file hash and makes back up before apply modifications.
5+
6+
7+
8+
### Example
9+
```
10+
> .\PS-BinDiff.ps1 -OriginalFile Program.exe -PatchedFile Program_modified.exe
11+
12+
Offset Org New
13+
------------------------
14+
0000001A 20 2D
15+
0000001B 50 2A
16+
00002033 20 6F
17+
00002034 44 6E
18+
00003D9B 0D 01
19+
00003D9C C2 D7
20+
00003D9D 0A 2A
21+
00003D9E C2 1A
22+
00003D9F 94 70
23+
00003DA0 19 C3
24+
00003DA1 43 AB
25+
000043DE AF 23
26+
000043DF 9C 39
27+
000043E0 5F 25
28+
00027925 F2 BB
29+
00027926 0C 79
30+
------------------------
31+
Found 16 changes
32+
33+
Generating patch...
34+
35+
Program.exe_PATCH.ps1 ready!
36+
```
37+
38+
### Use
39+
##### Change ExecutionPolicy
40+
```
41+
> Set-ExecutionPolicy -Force -Scope CurrentUser Unrestricted
42+
or
43+
> PowerShell.exe -ExecutionPolicy UnRestricted -File PS-BinDiff.ps1
44+
```
45+
46+
##### Generate patch
47+
```
48+
> .\PS-BinDiff.ps1 -OriginalFile Program.exe -PatchedFile Program_modified.exe
49+
```
50+
51+
##### Use your new patch
52+
```
53+
> .\Program.exe_PATCH.ps1
54+
```

0 commit comments

Comments
 (0)