{"id":7906,"date":"2025-03-06T17:25:51","date_gmt":"2025-03-06T09:25:51","guid":{"rendered":"https:\/\/www.wangonc.com\/?p=7906"},"modified":"2025-12-01T16:27:02","modified_gmt":"2025-12-01T08:27:02","slug":"customizing-ida-pro-essential-configuration-tips-for-reverse-engineers","status":"publish","type":"post","link":"https:\/\/www.wangonc.com\/index.php\/2025\/03\/06\/customizing-ida-pro-essential-configuration-tips-for-reverse-engineers\/","title":{"rendered":"\u5173\u4e8eIDA Pro\u7684\u4e00\u4e9b\u914d\u7f6e"},"content":{"rendered":"<h2>\u524d\u8a00<\/h2>\n<p>\u8bb0\u5f55\u4e00\u4e9b\u6709\u7528\u7684ida\u914d\u7f6e\uff0c\u4e0b\u9762\u63d0\u5230\u7684\u914d\u7f6e\u4ee5\u5982\u4e0b\u7248\u672c\u4e3a\u4f8b\uff08\u66f4\u591a\u914d\u7f6e\u53c2\u8003.cfg\u6587\u4ef6\uff09<\/p>\n<p>\u7248\u672c\uff1aVersion 9.0.241217 Windows x64<\/p>\n<p>IDA \u5b98\u65b9\u535a\u5ba2\uff1a<a href=\"https:\/\/hex-rays.com\/blog\">https:\/\/hex-rays.com\/blog<\/a><\/p>\n<h2>\u6587\u4ef6\u4f4d\u7f6e<\/h2>\n<p>\u57fa\u672cIDA\u914d\u7f6e <code>.\\IDA Professional 9.0\\cfg\\ida.cfg<\/code><\/p>\n<p>GUI\u914d\u7f6e <code>.\\IDA Professional 9.0\\cfg\\idagui.cfg<\/code><\/p>\n<p>\u53cd\u7f16\u8bd1\u914d\u7f6e <code>.\\IDA Professional 9.0\\cfg\\hexrays.cfg<\/code><\/p>\n<h2>ida.cfg<\/h2>\n<p>\u5f53\u524d\u7684\u7528\u6237\u81ea\u5b9a\u4e49\u914d\u7f6e\u53ef\u4ee5\u5728cfg\u76ee\u5f55\u6216ida\u6839\u76ee\u5f55\u4e0b\u521b\u5efa<code>idauser.cfg<\/code>\u6587\u4ef6\u5b9e\u73b0\u8986\u76d6\uff0c\u4e0d\u5fc5\u76f4\u63a5\u4fee\u6539<code>ida.cfg<\/code>\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th><strong>\u914d\u7f6e<\/strong><\/th>\n<th><strong>\u89e3\u91ca<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>SHOW_AUTOCOMMENTS = YES<\/code><\/td>\n<td>\u81ea\u52a8\u6ce8\u91ca\uff0c\u6dfb\u52a0\u52a9\u8bb0\u7b26\u542b\u4e49<\/td>\n<\/tr>\n<tr>\n<td><code>OPCODE_BYTES = 4<\/code><\/td>\n<td>\u663e\u793a\u6307\u4ee4\/\u6570\u636e\u7684\u539f\u59cb\u5b57\u8282\uff08\u64cd\u4f5c\u7801\uff09\uff0c\u663e\u793a4\u5b57\u8282\uff0c\u8d85\u51fa\u90e8\u5206\u6362\u884c\u3002\uff08\u8d1f\u503c\u5219\u662f\u8d85\u51fa\u90e8\u5206\u622a\u65ad\uff09<\/td>\n<\/tr>\n<tr>\n<td><code>SHOW_SP = YES<\/code><\/td>\n<td>\u663e\u793a\u884c\u9996\u7684\u5806\u6808\u6307\u9488\u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td><code>MAX_ITEM_LINES \u00a0= 25000<\/code><\/td>\n<td>\u9650\u5236\u5355\u4e2a\u53cd\u6c47\u7f16\u9879\uff08\u6307\u4ee4\/\u6570\u636e\uff09\u7684\u6700\u5927\u663e\u793a\u884c\u6570\uff0c\u5de8\u578b\u6570\u636e\u5757\uff08\u5982\u6570\u7ec4\uff09\u53ef\u80fd\u5bfc\u81f4\u754c\u9762\u5361\u987f<\/td>\n<\/tr>\n<tr>\n<td><code>SHOW_XREFS = 4<\/code><\/td>\n<td>\u663e\u793a 4 \u4e2a\u4ea4\u53c9\u5f15\u7528\uff08\u5176\u4f59\u6309\u00a0<code class=\"kb-btn\">Ctrl<\/code>+<code class=\"kb-btn\">X<\/code>\u00a0\u5c55\u5f00\uff09<\/td>\n<\/tr>\n<tr>\n<td><code>GRAPH_SHOW_LINEPREFIXES = YES<\/code><\/td>\n<td>\u542f\u7528\u6d41\u7a0b\u56fe\u6a21\u5f0f\u4e0b\u7684\u884c\u524d\u7f00<\/td>\n<\/tr>\n<tr>\n<td><code>GRAPH_SHOW_XREFS = 2<\/code><\/td>\n<td>\u6d41\u7a0b\u56fe\u6a21\u5f0f\u4e0b\u663e\u793a2\u4e2a\u4ea4\u53c9\u5f15\u7528<\/td>\n<\/tr>\n<tr>\n<td><code>GRAPH_OPCODE_BYTES \u00a0= 4<\/code><\/td>\n<td>\u6d41\u7a0b\u56fe\u6a21\u5f0f\u4e0b\u663e\u793a\u6307\u4ee4\/\u6570\u636e\u7684\u539f\u59cb\u5b57\u8282\uff08\u64cd\u4f5c\u7801\uff09\uff0c\u663e\u793a4\u5b57\u8282<\/td>\n<\/tr>\n<tr>\n<td><code>STRLIT_PREFIX\u00a0= &quot;&quot;<\/code><\/td>\n<td>IDA\u751f\u6210\u65b0\u540d\u79f0\u65f6\u4f7f\u7528\u6b64\u524d\u7f00\uff0c\u8fd9\u91cc\u7f6e\u7a7a\u5373\u4e0d\u8981\u524d\u7f00<\/td>\n<\/tr>\n<tr>\n<td><code>MAX_AUTONAME_LEN = 15<\/code><\/td>\n<td>\u81ea\u52a8\u751f\u6210\u7684\u540d\u79f0\u7684\u6700\u5927\u957f\u5ea6\uff0c\u6700\u5927511\uff08\u6709\u4e9b\u6c47\u7f16\u5668\u65e0\u6cd5\u5904\u7406\u957f\u547d\u540d\uff09<\/td>\n<\/tr>\n<tr>\n<td><code>PE_LOAD_RESOURCES = YES<\/code><\/td>\n<td>\u542f\u7528PE \u6587\u4ef6\u8d44\u6e90\u6bb5\uff08<code>.rsrc<\/code>\uff09\u7684\u52a0\u8f7d<\/td>\n<\/tr>\n<tr>\n<td><code>ARM_NO_ARM_THUMB_SWITCH = NO<\/code><\/td>\n<td>\u4e0d\u7981\u7528ARM\u548cTHUMB\u7684\u81ea\u52a8\u6307\u4ee4\u96c6\u5207\u6362<\/td>\n<\/tr>\n<tr>\n<td><code>NameChars<\/code><\/td>\n<td>\u9009\u62e9\u53ef\u7528\u4e8e\u547d\u540d\u7684\u5b57\u7b26\u4e32\uff0c\u5176\u4e2d\u5c06<code>Block_CJK_Unified_Ideographs<\/code>\u7684\u6ce8\u91ca\u6253\u5f00\u53ef\u4ee5\u5f00\u542f\u4e2d\u6587\u547d\u540d<\/td>\n<\/tr>\n<tr>\n<td><code>DemangleNames   = 1<\/code><\/td>\n<td>\u663e\u793a\u547d\u540d\u4fee\u9970\u524d\u7684\u540d\u5b57<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0a\u8ff0\u914d\u7f6e\u521b\u5efa\u4e3a\u5355\u72ec\u7684<code>idauser.cfg<\/code>\u5185\u5bb9\u5982\u4e0b<\/p>\n<pre><code class=\"language-ini\">SHOW_AUTOCOMMENTS       = YES\nOPCODE_BYTES            = 4\nSHOW_SP                 = YES\nSHOW_XREFS              = 4\nMAX_ITEM_LINES          = 25000\n\nGRAPH_SHOW_LINEPREFIXES = YES\nGRAPH_SHOW_XREFS        = 2\nGRAPH_OPCODE_BYTES      = 4\n\nSTRLIT_PREFIX           = &quot;&quot;\nMAX_AUTONAME_LEN        = 15\n\n#ifdef __PC__\nPE_LOAD_RESOURCES       = YES\n#endif\n\n#ifdef __ARM__\nARM_NO_ARM_THUMB_SWITCH = NO\n#endif\n\nNameChars =\n        &quot;$?@&quot;           \/\/ asm specific character\n        &quot;_0123456789&quot;\n        &quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;\n        &quot;abcdefghijklmnopqrstuvwxyz&quot;,\n        \/\/ This would enable common Chinese characters in identifiers:\n        Block_CJK_Unified_Ideographs,\n        CURRENT_CULTURE;\nDemangleNames   = 1<\/code><\/pre>\n<h2>idagui.cfg<\/h2>\n<p>\u540c\u6837\u7684\uff0c\u8fd9\u90e8\u5206\u914d\u7f6e\u53ef\u4ee5\u901a\u8fc7\u5728cfg\u76ee\u5f55\u6216ida\u6839\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a<code>idauserg.cfg<\/code>\u6587\u4ef6\u6765\u5b9e\u73b0\u914d\u7f6e\u8986\u76d6<\/p>\n<table>\n<thead>\n<tr>\n<th><strong>\u914d\u7f6e<\/strong><\/th>\n<th><strong>\u89e3\u91ca<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>AUTOSAVE = 20<\/code><\/td>\n<td>\u5f53\u7528\u6237\u670920\u4e2a\u52a8\u4f5c\u540e\u81ea\u52a8\u4fdd\u5b58\uff08 \u9ed8\u8ba4\u4e3a100\uff0c\u6570\u636e\u5e93\u8fc7\u5927\u53ef\u80fd\u964d\u4f4e\u6027\u80fd\uff09<\/td>\n<\/tr>\n<tr>\n<td><code>ASK_EXIT_UNPACKED = NO<\/code><\/td>\n<td>\u4e0d\u8be2\u95ee\u7528\u6237\u662f\u5426\u63a8\u51fa\u4f46\u662f\u4e0d\u6253\u5305\u6570\u636e\u5e93<\/td>\n<\/tr>\n<tr>\n<td><code>ASK_EXIT = NO<\/code><\/td>\n<td>\u4e0d\u8be2\u95ee\u7528\u6237\u662f\u5426\u9000\u51fa\uff0c\u8bbe\u5b9a\u4e3aNO\u540e\u5173\u95ed\u540e\u4f1a\u76f4\u63a5\u4fdd\u5b58<\/td>\n<\/tr>\n<tr>\n<td><code>HISTORY_LENGTH = 15<\/code><\/td>\n<td><code>File &gt; Recent projects<\/code>\u00a0\u5217\u8868\u4e2d\u4fdd\u7559\u6700\u8fd1 15 \u4e2a\u6253\u5f00\u7684\u6570\u636e\u5e93\u8bb0\u5f55\uff0c\u6700\u591a100<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0a\u8ff0\u914d\u7f6e\u521b\u5efa\u4e3a\u5355\u72ec\u7684<code>idauserg.cfg<\/code>\u5185\u5bb9\u5982\u4e0b<\/p>\n<pre><code class=\"language-ini\">AUTOSAVE = 20\nASK_EXIT_UNPACKED = NO\nASK_EXIT = NO\nHISTORY_LENGTH = 50<\/code><\/pre>\n<h2>hexrays.cfg<\/h2>\n<p>\u8fd9\u90e8\u5206\u4e0d\u5b58\u5728\u7528\u6237\u914d\u7f6e\uff0c\u4f46\u662f\u53ef\u4ee5\u5728cfg\u6587\u4ef6\u7684\u6700\u540e\u4e00\u884c\u6dfb\u52a0<code>#softinclude &lt;hexraysuser.cfg&gt;<\/code>,\u5373\u53ef\u5b9e\u73b0\u52a0\u8f7d<code>hexraysuser.cfg<\/code>\u7528\u6237\u914d\u7f6e\u3002<\/p>\n<p>\u5b98\u65b9\u6587\u6863\uff1a<a href=\"https:\/\/docs.hex-rays.com\/9.0sp1\/user-guide\/decompiler\/config\">https:\/\/docs.hex-rays.com\/9.0sp1\/user-guide\/decompiler\/config<\/a><\/p>\n<table>\n<thead>\n<tr>\n<th><strong>\u914d\u7f6e<\/strong><\/th>\n<th><strong>\u89e3\u91ca<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>PSEUDOCODE_SYNCED = NO<\/code><\/td>\n<td>\u65b0\u5efa\u4f2a\u4ee3\u7801\u89c6\u56fe\u4e0d\u4e0e\u53cd\u6c47\u7f16\u540c\u6b65\u3002\u5982\u679c\u5f00\u542f\u540c\u6b65\uff0c\u6709\u65f6\u5019\u8fd4\u56de\u7684\u65f6\u5019\u4f1a\u56e0\u4e3a\u548c\u6c47\u7f16\u7684\u4f4d\u7f6e\u540c\u6b65\u800c\u5bfc\u81f4\u8fd4\u56de\u7684\u4f4d\u7f6e\u4e0d\u5728\u4e0a\u4e00\u6b21\u70b9\u8fdb\u53bb\u7684\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td><code>MAX_NCOMMAS = 0<\/code><\/td>\n<td>\u5141\u8bb8\u590d\u6742\u8868\u8fbe\u5f0f\u5305\u542b\u4efb\u610f\u6570\u91cf\u7684\u9017\u53f7\uff08\u5982\u00a0<code>a = b, c = d, e = f<\/code>\uff09\uff0c\u51cf\u5c11<code>goto<\/code>\u3002\u9ed8\u8ba4\u503c\u00a0<code>8<\/code>\uff0c\u8d85\u9650\u4f1a\u62c6\u5206\u4ee3\u7801\u4e3a\u00a0<code>goto<\/code>\u00a0\u8bed\u53e5\u3002<\/td>\n<\/tr>\n<tr>\n<td><code>MAX_STRLIT_LENGTH = 8192<\/code><\/td>\n<td>\u8d85\u8fc78KB\u7684\u5b57\u7b26\u4e32\u663e\u793a\u4e3a\u5f15\u7528\uff08\u5982\u00a0<code>&amp;s_1234<\/code>\uff09\uff0c\u9ed8\u8ba4\u00a0<code>4096<\/code>\uff084KB\uff09\u3002<\/td>\n<\/tr>\n<tr>\n<td><code>MAX_FUNCSIZE = 8192<\/code><\/td>\n<td>\u53cd\u7f16\u8bd1\u51fd\u6570\u6700\u5927\u5c3a\u5bf8\u9650\u5236\uff0c\u53cd\u7f16\u8bd1\u5c0f\u4e8e8MB\u7684\u51fd\u6570\uff0c\u4f7f\u5176\u652f\u6301\u5927\u51fd\u6570\u53cd\u7f16\u8bd1\uff0c\u4f46\u662f\u4f1a\u5f88\u6162\u3002\u9ed8\u8ba4\u00a064\uff0864KB\uff09<\/td>\n<\/tr>\n<tr>\n<td><code>COLLAPSE_LVARS = YES<\/code><\/td>\n<td>\u9ed8\u8ba4\u6298\u53e0\u5c40\u90e8\u53d8\u91cf\u58f0\u660e\u5757\uff0c\u9690\u85cf\u53d8\u91cf\u5b9a\u4e49\uff0c\u7b80\u5316\u89c6\u56fe\uff0c\u6309<code class=\"kb-btn\">+<\/code>\u53ef\u4ee5\u6253\u5f00\u3002\u8bbe\u4e3a\u00a0NO\u00a0\u5219\u59cb\u7ec8\u663e\u793a\u5b8c\u6574\u58f0\u660e\u3002<\/td>\n<\/tr>\n<tr>\n<td><code>AUTO_UNHIDE = YES<\/code><\/td>\n<td>\u8df3\u8f6c\u5230\u9690\u85cf\u4ee3\u7801\u5757\uff08\u5982\u00a0<code>[+ Hidden code]<\/code>\uff09\u65f6\u81ea\u52a8\u5c55\u5f00\u5185\u5bb9<\/td>\n<\/tr>\n<tr>\n<td><code>GENERATE_EMPTY_LINES = YES<\/code><\/td>\n<td>\u5728\u4ee3\u7801\u5757\u95f4\u751f\u6210\u7a7a\u884c\uff0c \u63d0\u5347\u00a0if\/for\u00a0\u5757\u548c\u6807\u7b7e\u7684\u53ef\u8bfb\u6027\uff08\u7c7b\u4f3c\u4ee3\u7801\u683c\u5f0f\u5316\uff09\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre><code class=\"language-ini\">PSEUDOCODE_SYNCED       = NO\nMAX_NCOMMAS             = 0\nMAX_STRLIT_LENGTH       = 8192\nMAX_FUNCSIZE            = 8192\nCOLLAPSE_LVARS            = YES\nAUTO_UNHIDE = YES\nGENERATE_EMPTY_LINES = YES<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u8bb0\u5f55\u4e00\u4e9b\u6709\u7528\u7684ida\u914d\u7f6e\uff0c\u4e0b\u9762\u63d0\u5230\u7684\u914d\u7f6e\u4ee5\u5982\u4e0b\u7248\u672c\u4e3a\u4f8b\uff08\u66f4\u591a\u914d\u7f6e\u53c2\u8003.cfg\u6587\u4ef6\uff09 \u7248\u672c\uff1aVersion [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,44],"tags":[18,121],"series":[],"class_list":["post-7906","post","type-post","status-publish","format-standard","hentry","category-toss-record","category-reverse-engineering","tag-idapro","tag-121"],"_links":{"self":[{"href":"https:\/\/www.wangonc.com\/index.php\/wp-json\/wp\/v2\/posts\/7906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wangonc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wangonc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wangonc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wangonc.com\/index.php\/wp-json\/wp\/v2\/comments?post=7906"}],"version-history":[{"count":6,"href":"https:\/\/www.wangonc.com\/index.php\/wp-json\/wp\/v2\/posts\/7906\/revisions"}],"predecessor-version":[{"id":7981,"href":"https:\/\/www.wangonc.com\/index.php\/wp-json\/wp\/v2\/posts\/7906\/revisions\/7981"}],"wp:attachment":[{"href":"https:\/\/www.wangonc.com\/index.php\/wp-json\/wp\/v2\/media?parent=7906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wangonc.com\/index.php\/wp-json\/wp\/v2\/categories?post=7906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wangonc.com\/index.php\/wp-json\/wp\/v2\/tags?post=7906"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.wangonc.com\/index.php\/wp-json\/wp\/v2\/series?post=7906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}