{"id":10007090,"date":"2023-01-17T23:49:24","date_gmt":"2023-01-17T15:49:24","guid":{"rendered":"https:\/\/ityet.com\/?p=10007090"},"modified":"2023-01-17T23:49:24","modified_gmt":"2023-01-17T15:49:24","slug":"til-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-hex-editor-%ef%bc%88%e4%ba%8c%e8%bf%9b%e5%88%b6%e7%bc%96%e8%be%91%e5%99%a8%ef%bc%89%e4%bf%ae%e6%94%b9%e6%b8%b8%e6%88%8f%e5%ad%98%e6%a1%a3","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10007090","title":{"rendered":"[TIL] \u5982\u4f55\u4f7f\u7528 hex editor \uff08\u4e8c\u8fdb\u5236\u7f16\u8f91\u5668\uff09\u4fee\u6539\u6e38\u620f\u5b58\u6863"},"content":{"rendered":"<p>\u4ec5\u9488\u5bf9\u6ca1\u6709\u8fdb\u884c\u8fc7\u7279\u522b\u6df7\u6dc6\/\u52a0\u5bc6\u7684\u4e8c\u8fdb\u5236\u683c\u5f0f\u5b58\u6863\u3002\u6211\u7684\u4f7f\u7528\u573a\u666f\u4e2d\u7279\u6307 unity \u6e38\u620f\u7684 bin \u5b58\u6863\u6587\u4ef6\u3002<\/p>\n<p>vscode \u6709\u4e2a extension \u53eb hex editor\uff0c\u6216\u8005\u7528\u5176\u4ed6\u7684\u7f16\u8f91\u5668\u4e5f\u4e00\u6837\u80fd\u505a\u5230\u3002<\/p>\n<p>\u5728\u6e38\u620f\u6ca1\u6709\u8fdb\u884c\u7279\u522b\u6df7\u6dc6\u7684\u7684\u60c5\u51b5\u4e0b\u8fd9\u79cd\u65b9\u5f0f\u80fd\u5f88\u8f7b\u677e\u4fee\u6539\u5b58\u6863\uff0c\u5bf9\u4ed8\u4e00\u4e9b\u6ca1\u6709\u73b0\u6210\u4fee\u6539\u5668\u5c0f\u4f17\u6e38\u620f\u5f88\u65b9\u4fbf\u3002\u5f53\u7136\u5982\u679c\u80fd\u7528 CE \u4e4b\u7c7b\u7684\u5185\u5b58\u4fee\u6539\u5668\u4e5f\u5f88\u597d\uff0c\u4f46\u6211\u662f\u5728 linux \u4e2d\u7528 wine \u8dd1\u7684\u6e38\u620f\uff0c\u4f30\u8ba1\u60f3\u7528 CE \u8fd8\u8981\u597d\u4e00\u756a\u6298\u817e\uff0c\u52a0\u4e0a vscode \u662f\u73b0\u6210\u7684\u4e0d\u7528\u88c5\u4efb\u4f55\u4e1c\u897f\uff0c\u4e8e\u662f\u5c31\u5148\u8fd9\u4e48\u641e\u4e86\u3002<\/p>\n<p>\u4ee5\u4fee\u6539\u91d1\u5e01\u4e3a\u4f8b\uff0c\u65b9\u6cd5\u548c CE \u5f88\u50cf\uff1a<\/p>\n<ol>\n<li>\u627e\u5230\u5b58\u6863\u6587\u4ef6\uff0c\u5907\u4efd\u4e00\u4efd<\/li>\n<li>\u8fdb\u6e38\u620f\u6d88\u8d39\uff0c\u7528\u5c3d\u53ef\u80fd\u5c11\u7684\u64cd\u4f5c\u8ba9\u91d1\u5e01\u6570\u53d8\u5316\uff0c\u5b58\u6863<\/li>\n<li>\u627e\u5230\u65b0\u5b58\u6863\u548c\u5907\u4efd\u7684\u5b58\u6863\u5dee\u5f02\u70b9<\/li>\n<li>\u4fee\u6539\u5dee\u5f02\u70b9\uff0c\u8fdb\u6e38\u620f\u786e\u8ba4\u5b58\u6863\u91d1\u5e01\u6570\u662f\u5426\u6709\u53d8\u5316\uff0c\u6ca1\u53d8\u5c31\u6362\u4e0b\u4e00\u4e2a\u5dee\u5f02\u70b9\u4fee\u6539<\/li>\n<\/ol>\n<p>\u56e0\u4e3a\u64cd\u4f5c\u5f88\u5c0f\uff0c\u5b58\u6863\u6587\u4ef6\u53d8\u5316\u4e0d\u5927\uff0c\u6211\u4eec\u901a\u5e38\u4e0d\u9700\u8981\u50cf\u5185\u5b58\u4fee\u6539\u4e00\u6837\u591a\u6b21\u6539\u53d8\u91d1\u5e01\u6570\u7f29\u5c0f\u8303\u56f4\uff0c\u6539\u4e00\u6b21\u5c31\u591f\u4e86\u3002<\/p>\n<p>\u7b2c3\u70b9\u4e2d\uff0c\u5982\u4f55\u5bf9\u6bd4\u4e8c\u8fdb\u5236\u6709\u5f88\u591a\u5de5\u5177\u53ef\u4ee5\u7528\u3002\u4f46\u6700\u65b9\u4fbf\u7684\u8fd8\u662f\u81ea\u5e26\u7684 diff \u914d\u5408 xxd\uff08\u6211\u662f ubuntu 22.10\uff09\uff1a<\/p>\n<pre><code class=\"bash\">diff -y &lt;(xxd save1.bin) &lt;(xxd save2.bin)<\/code><\/pre>\n<p>\u4e3a\u4e86\u770b\u7684\u8212\u670d\u4e00\u70b9\uff0c\u53ef\u4ee5\u88c5\u4e2a colordiff\uff0c\u7528\u6cd5\u662f\u4e00\u6837\u7684\uff1a<\/p>\n<pre><code class=\"bash\">colordiff -y &lt;(xxd save1.bin) &lt;(xxd save2.bin)<\/code><\/pre>\n<p>\u627e\u5230\u53d8\u5316\u4e86\u7684\u5730\u5740\u540e\uff0c\u53bb vscode \u7528 hex editor \u6539\u5c31\u884c\u4e86\u3002<\/p>\n<p>\u7b2c4\u70b9\u4e2d\uff0c\u5982\u679c\u6709\u54ea\u4e2a\u5dee\u5f02\u70b9\u7684\u5730\u5740\u7684\u67d0\u79cd\u8868\u8fbe\u5f62\u5f0f\uff0c\u76f4\u63a5\u5c31\u662f\u4f60\u7684\u91d1\u5e01\u6570\u91cf\uff0c\u90a3\u5c31\u7b97\u8fd0\u6c14\u6bd4\u8f83\u597d\u3002\u4e0d\u7136\u5c31\u6162\u6162\u8bd5\uff0c\u5c31\u6211\u7684\u4f53\u9a8c\u6765\u8bf4\u4e5f\u5f88\u5feb\u3002<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000043342469\">https:\/\/segmentfault.com\/a\/1190000043342469<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec5\u9488\u5bf9\u6ca1\u6709\u8fdb\u884c\u8fc7\u7279\u522b\u6df7\u6dc6\/\u52a0\u5bc6\u7684\u4e8c\u8fdb\u5236\u683c\u5f0f\u5b58\u6863\u3002\u6211\u7684\u4f7f\u7528\u573a\u666f\u4e2d\u7279\u6307 unity \u6e38\u620f\u7684 bin \u5b58\u6863\u6587\u4ef6\u3002 v [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10007090","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10007090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10007090"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10007090\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10007090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10007090"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10007090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}