-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbin-diff.html
More file actions
284 lines (272 loc) · 16.3 KB
/
bin-diff.html
File metadata and controls
284 lines (272 loc) · 16.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<!DOCTYPE html>
<!-- Copyright (c) 2026 Nohuto. All rights reserved. -->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="referrer" content="no-referrer">
<meta http-equiv="Permissions-Policy" content="camera=(), microphone=(), geolocation=(), payment=(), usb=()">
<meta http-equiv="Content-Security-Policy"
content="default-src 'self'; base-uri 'self'; object-src 'none'; script-src 'self'; script-src-attr 'none'; style-src 'self'; img-src 'self' data:; font-src 'self'; media-src 'self'; connect-src 'self' https://api.github.com https://raw.githubusercontent.com; form-action 'self' https://www.paypal.com">
<title>Bin Diff</title>
<link rel="icon" href="main/images/nvlogo.png">
<script src="main/bootstrap.js"></script>
<link rel="stylesheet" href="main/styles.css">
<script src="main/normalization.js" defer></script>
<script src="main/app.js" defer></script>
</head>
<body>
<div class="stars" aria-hidden="true"></div>
<div class="overlay" aria-hidden="true"></div>
<header class="prompt-bar">
<div class="prompt-line" role="group" aria-label="Terminal prompt">
<span class="prompt-user">nohuto</span>
<span class="prompt-sep">@</span>
<span class="prompt-host">noverse</span>
<span class="prompt-path">:~/bin-diff</span>
<span class="prompt-caret">$</span>
<span class="prompt-cmd">open</span>
</div>
<nav class="nav-tabs" aria-label="Primary navigation">
<a href="index.html">terminal</a>
<a href="product.html">product</a>
<a href="projects.html">projects</a>
<a href="bin-diff.html" aria-current="page" class="active">bin-diff</a>
<a href="policies.html">policies</a>
<a href="/docs/">docs</a>
</nav>
</header>
<main id="main" class="no-center bindiff-main">
<section class="content-box panel" id="bin-diff-app" data-title="bin-diff">
<div class="panel-header">
<span class="panel-title">bin-diff</span>
<span class="panel-meta">decompiled pseudocode</span>
</div>
<div class="panel-body">
<div class="bindiff-intro">
<h1 class="projects-heading">Binary Function Diff</h1>
<div class="projects-divider"></div>
<p>Compare decompiled pseudocode functions of different builds (<a class="link" href="https://github.com/nohuto/decompiled-pseudocode" target="_blank" rel="noopener noreferrer">decompiled-pseudocode</a>).</p>
</div>
<div class="bindiff-controls">
<div class="bindiff-grid">
<div class="bindiff-field bindiff-field-compact">
<label for="bindiff-left-release">Left build</label>
<select class="select-enhanced" id="bindiff-left-release" name="left-release"></select>
</div>
<div class="bindiff-field bindiff-field-compact">
<label for="bindiff-right-release">Right build</label>
<select class="select-enhanced" id="bindiff-right-release" name="right-release"></select>
</div>
<div class="bindiff-field bindiff-field-compact">
<label for="bindiff-module">Binary</label>
<select class="select-enhanced" id="bindiff-module" name="module"></select>
</div>
<div class="bindiff-field bindiff-field-compact bindiff-field-function">
<label for="bindiff-function">Function</label>
<select class="select-enhanced" data-searchable="true" data-search-limit="300" id="bindiff-function" name="function"></select>
</div>
</div>
<div class="bindiff-output-tools">
<div class="bindiff-actions">
<button id="bindiff-run" type="button">Compare</button>
</div>
<div class="bindiff-view-tools" id="bindiff-view-tools">
<div class="bindiff-view-toggle" aria-label="View mode" id="bindiff-view-mode" role="group">
<button class="bindiff-view-button is-active" type="button" data-mode="side-by-side" aria-pressed="true">Side by side</button>
<button class="bindiff-view-button" type="button" data-mode="line-by-line" aria-pressed="false">Line by line</button>
</div>
</div>
</div>
</div>
<div class="bindiff-output-frame">
<button id="bindiff-swap" type="button" aria-label="Swap builds" title="Swap builds">
<svg class="bindiff-swap-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M16 3l4 4l-4 4"></path>
<path d="M10 7h10"></path>
<path d="M8 13l-4 4l4 4"></path>
<path d="M4 17h9"></path>
</svg>
<span class="sr-only">Swap builds</span>
</button>
<button id="bindiff-settings" type="button" aria-label="Diff settings" title="Diff settings">
<svg class="bindiff-settings-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065"></path>
<path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"></path>
</svg>
<span class="sr-only">Diff settings</span>
</button>
<button id="bindiff-maximize" type="button" aria-pressed="false" aria-label="Maximize diff" title="Maximize diff">
<svg class="bindiff-maximize-icon icon-maximize" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M16 4h4v4"></path>
<path d="M14 10l6 -6"></path>
<path d="M8 20h-4v-4"></path>
<path d="M4 20l6 -6"></path>
<path d="M16 20h4v-4"></path>
<path d="M14 14l6 6"></path>
<path d="M8 4h-4v4"></path>
<path d="M4 4l6 6"></path>
</svg>
<svg class="bindiff-maximize-icon icon-minimize" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M5 9h4v-4"></path>
<path d="M3 3l6 6"></path>
<path d="M5 15h4v4"></path>
<path d="M3 21l6 -6"></path>
<path d="M19 9h-4v-4"></path>
<path d="M15 9l6 -6"></path>
<path d="M19 15h-4v4"></path>
<path d="M15 15l6 6"></path>
</svg>
<span class="sr-only">Toggle diff maximize</span>
</button>
<div id="bin-diff-output" class="bindiff-output" aria-live="off"></div>
</div>
<div class="bindiff-settings-modal" id="bindiff-settings-modal" hidden>
<div class="bindiff-settings-dialog" id="bindiff-settings-dialog" role="dialog" aria-modal="true" aria-labelledby="bindiff-settings-title">
<div class="bindiff-settings-header" id="bindiff-settings-header">
<h2 id="bindiff-settings-title">Settings</h2>
<button id="bindiff-settings-close" type="button" aria-label="Close settings" title="Close settings">
<svg class="bindiff-close-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M18 6l-12 12"></path>
<path d="M6 6l12 12"></path>
</svg>
<span class="sr-only">Close settings</span>
</button>
</div>
<div class="bindiff-settings-body">
<label class="bindiff-setting-row" for="bindiff-setting-strip-xrefs">
<input id="bindiff-setting-strip-xrefs" type="checkbox">
<span>Hide XREF comments</span>
</label>
<label class="bindiff-setting-row" for="bindiff-setting-strip-addresses">
<input id="bindiff-setting-strip-addresses" type="checkbox">
<span>Hide build specific addresses/symbols</span>
</label>
<label class="bindiff-setting-row" for="bindiff-setting-strip-locations">
<input id="bindiff-setting-strip-locations" type="checkbox">
<span>Hide register/stack comments</span>
</label>
<label class="bindiff-setting-row" for="bindiff-setting-normalize-identifiers">
<input id="bindiff-setting-normalize-identifiers" type="checkbox">
<span>Normalize autogenerated variable/argument names</span>
</label>
<label class="bindiff-setting-row" for="bindiff-setting-normalize-numeric">
<input id="bindiff-setting-normalize-numeric" type="checkbox">
<span>Treat equivalent numbers as same (hex/dec/suffix)</span>
</label>
<label class="bindiff-setting-row" for="bindiff-setting-normalize-labels">
<input id="bindiff-setting-normalize-labels" type="checkbox">
<span>Ignore generated label number changes</span>
</label>
<label class="bindiff-setting-row" for="bindiff-setting-normalize-prototype">
<input id="bindiff-setting-normalize-prototype" type="checkbox">
<span>Ignore extra trailing default arguments</span>
</label>
<label class="bindiff-setting-row" for="bindiff-setting-show-full">
<input id="bindiff-setting-show-full" type="checkbox">
<span>Show full function</span>
</label>
<label class="bindiff-setting-row" for="bindiff-setting-trim-whitespace">
<input id="bindiff-setting-trim-whitespace" type="checkbox">
<span>Ignore whitespace only changes</span>
</label>
</div>
<div class="bindiff-settings-footer">
<button id="bindiff-settings-reset" type="button">Reset</button>
<button id="bindiff-settings-done" type="button">Close</button>
</div>
</div>
</div>
<div class="bindiff-links" id="bindiff-links">
<a id="bindiff-left-link" class="link" href="#" target="_blank" rel="noopener noreferrer">Left source</a>
<a id="bindiff-right-link" class="link" href="#" target="_blank" rel="noopener noreferrer">Right source</a>
</div>
</div>
</section>
</main>
<div class="toast" role="status" aria-live="polite" aria-atomic="true"></div>
<footer>
<div class="footer-row">
<div class="footer-copy">© 2026 Nohuto. All rights reserved.</div>
<div class="social">
<a href="https://github.com/nohuto" target="_blank" rel="noopener noreferrer">
<img decoding="async" src="main/icons/dark/github-icon.png" data-dark-src="main/icons/dark/github-icon.png"
data-light-src="main/icons/light/github-icon.png" loading="lazy" alt="GitHub">
</a>
<a href="https://www.youtube.com/@5Noverse" target="_blank" rel="noopener noreferrer">
<img decoding="async" src="main/icons/dark/youtube-icon.png" data-dark-src="main/icons/dark/youtube-icon.png"
data-light-src="main/icons/light/youtube-icon.png" loading="lazy" alt="YouTube">
</a>
<button class="icon-button" type="button" data-email="copy" data-toast="Email copied"
aria-label="Copy email to clipboard">
<img decoding="async" src="main/icons/dark/email-icon.svg" data-dark-src="main/icons/dark/email-icon.svg"
data-light-src="main/icons/light/email-icon.svg" loading="lazy" alt="Email">
</button>
<a href="https://discord.gg/E2ybG4j9jU" target="_blank" rel="noopener noreferrer">
<img decoding="async" src="main/icons/dark/discord-icon.png" data-dark-src="main/icons/dark/discord-icon.png"
data-light-src="main/icons/light/discord-icon.png" loading="lazy" alt="Discord">
</a>
</div>
<div class="footer-tools">
<div class="footer-tools-row">
<div class="footer-control">
<label class="theme-label" for="bg-select">bg</label>
<select id="bg-select" name="background">
<option value="clear">Clear</option>
<option value="diagonal-grid">Diagonal Grid</option>
<option value="dark-noise">Dark Noise</option>
<option value="dot-matrix">Dot Matrix</option>
<option value="circuit-board">Circuit Board</option>
<option value="starfield" data-animated="true">Starfield</option>
</select>
</div>
<div class="footer-control">
<label class="theme-label" for="theme-select">theme</label>
<select id="theme-select" name="theme">
<option value="ayu-dark">Ayu Dark</option>
<option value="ayu-light">Ayu Light</option>
<option value="catppuccin-frappe">Catppuccin Frappe</option>
<option value="catppuccin-latte">Catppuccin Latte</option>
<option value="catppuccin-macchiato">Catppuccin Macchiato</option>
<option value="catppuccin-mocha">Catppuccin Mocha</option>
<option value="default-dark">Default Dark</option>
<option value="default-light">Default Light</option>
<option value="everforest-dark">Everforest Dark</option>
<option value="everforest-light">Everforest Light</option>
<option value="gruvbox-dark">Gruvbox Dark</option>
<option value="gruvbox-light">Gruvbox Light</option>
<option value="horizon">Horizon</option>
<option value="kanagawa-dragon">Kanagawa Dragon</option>
<option value="kanagawa-lotus">Kanagawa Lotus</option>
<option value="kanagawa-wave">Kanagawa Wave</option>
<option value="monokai">Monokai</option>
<option value="night-owl">Night Owl</option>
<option value="nord">Nord</option>
<option value="one-dark">One Dark</option>
<option value="one-light">One Light</option>
<option value="purple-black">Purple Black</option>
<option value="rose-pine">Rose Pine</option>
<option value="rose-pine-moon">Rose Pine Moon</option>
<option value="solarized-dark">Solarized Dark</option>
<option value="solarized-light">Solarized Light</option>
</select>
</div>
<div class="footer-control footer-size">
<label class="theme-label" for="font-size">size</label>
<div class="size-stepper">
<button class="size-step" type="button" data-step="1" aria-label="Increase font size"></button>
<input id="font-size" type="number" min="10" max="22" step="1" value="13">
<button class="size-step" type="button" data-step="-1" aria-label="Decrease font size"></button>
</div>
</div>
</div>
</div>
</div>
</footer>
</body>
</html>