IDA Pro > IDA Pro教程 > 技术问题 > IDA Pro命令 行 开关(Command line switches)

IDA Pro命令 行 开关(Command line switches)

发布时间:2022-10-14 17: 08: 53

IDA can be launched with one of the following command lines:

       ida input-file        (Start graphical interface)
       idat input-file       (Start text interface)

Add the '64' postfix to the command name in order to start the 64-bit version of IDA. For example:

       ida64 input-file

will start 64-bit graphical interface.

The following command line switches are recognized:

-a     disable auto analysis. (-a- enables it)
-A     autonomous mode. IDA will not display dialog boxes.
       Designed to be used together with -S switch.
-b#### loading address, a hexadecimal number, in paragraphs
       (a paragraph is 16 bytes)
-B     batch mode. IDA will generate .IDB and .ASM files automatically
-c     disassemble a new file (delete the old database)
-C#### set compiler in format name:abi
-ddirective
       A configuration directive which must be processed at the first
       pass. Example: -dVPAGESIZE=8192
-Ddirective
       A configuration directive which must be processed at the second
       pass.
-f     disable FPP instructions (IBM PC only)
-h     help screen
-i#### program entry point (hex)
-I#    set IDA as just-in-time debugger (0 to disable and 1 to enable)
-L#### name of the log file
-M     disable mouse (text only)
-O#### options to pass to plugins.
       This switch is not available in the IDA Home edition.
-o#### specify the output database (implies -c)
-p#### processor type
-P+    compress database (create zipped idb)
-P     pack database (create unzipped idb)
-P-    do not pack database (not recommended, see Abort command)
-r###  immediately run the built-in debugger
       format of this switch is explained here
-R     load MS Windows exe file resources
-S###  Execute a script file when the database is opened.
       The script file extension is used to determine which extlang
       will run the script.
       It is possible to pass command line arguments after the script name.
       For example: -S"myscript.idc argument1 \"argument 2\" argument3"

       The passed parameters are stored in the "ARGV" global IDC variable.
       Use "ARGV.count" to determine the number of arguments.
       The first argument "ARGV[0]" contains the script name.

       This switch is not available in the IDA Home edition.

-T###  interpret the input file as the specified file type
       The file type is specified as a prefix of a file type
       visible in the 'load file' dialog box
       To specify archive member put it after the colon char,
       for example: -TZIP:classes.dex
       You can specify any nested paths:
       -T[:{::}[:]]
       IDA does not display the 'load file' dialog in this case
-t     create an empty database.
-W###  specify MS Windows directory
-x     do not create segmentation
       (used in pair with Dump database command)
       this switch affects EXE and COM format files only.
-z     debug:
               00000001 drefs
               00000002 offsets
               00000004 flirt
               00000008 idp module
               00000010 ldr module
               00000020 plugin module
               00000040 ids files
               00000080 config file
               00000100 check heap
               00000200 checkarg
               00000400 demangler
               00000800 queue
               00001000 rollback
               00002000 already data or code
               00004000 type system
               00008000 show all notifications
               00010000 debugger
               00020000 dbg_appcall
               00040000 source-level debugger
               00080000 accessibility
               00100000 network
               00200000 full stack analysis (simplex method)
               00400000 handling of debug info (e.g. pdb, dwarf)
               00800000 lumina
-?     this screen (works for the text version)
?      this screen (works for the text version)
-h     this screen (works for the text version)
-H     this screen (works for the text version)
--help this screen (works for the text version)

For batch mode, IDA must be invoked with the following command line:

       ida -B input-file

which is equivalent to:

       ida -c -A -Sanalysis.idc input-file

The text interface (idat.exe/idat) is better for batch mode because it uses less system resources. However, please note that regular plugins are not automatically loaded in batch mode because the analysis.idc file quits and the kernel has no chance to load them.

For more information, please see the analysis.idc file in the IDC subdirectory. 

中文翻译:

IDA可以通过以下命令行之一启动:

ida input-file(启动图形界面)

idat input-file(启动文本界面)

在命令名称后加上“64”后缀以启动IDA的64位版本。例如:

ida64 input-file

将启动64位图形界面。

以下命令行开关被识别:

-a禁用自动分析。(-a-启用它)

-A自主模式。IDA将不显示对话框。

设计用于与-S开关一起使用。

-b####加载地址,十六进制数,以段为单位

(一段是16个字节)

-B批处理模式。IDA将自动生成.IDB和.ASM文件

-c反汇编一个新文件(删除旧数据库)

-C####设置编译器格式名称:abi

-ddirective

一个必须在第一次通过时处理的配置指令。例如:-dVPAGESIZE=8192

-Ddirective

必须在第二次通过时处理的配置指令。

-f禁用FPP指令(仅适用于IBM PC)

-h帮助屏幕

-i####程序入口点(十六进制)

-I#将IDA设置为即时调试器(0为禁用,1为启用)

-L####日志文件名

-M禁用鼠标(仅限文本)

-O####传递给插件的选项。

此开关在IDA Home版中不可用。

-o####指定输出数据库(意味着-c选项)

-p####处理器类型

-P+压缩数据库(创建压缩的idb文件)

-P打包数据库(创建未压缩的idb文件)

-P-不要打包数据库(不建议,详见Abort命令)

-r###立即运行内置调试器

该选项的格式在此处说明

-R加载MS Windows exe文件资源

-S###打开数据库时执行脚本文件。

脚本文件的扩展名用于确定哪个扩展语言

将运行脚本。

可以在脚本名称之后传递命令行参数。

例如:-S"myscript.idc argument1"argument 2"argument3"

传递的参数存储在“ARGV”全局IDC变量中。

使用“ARGV.count”确定参数数量。

第一个参数“ARGV[0]”包含脚本名称。

此选项在IDA Home版本中不可用。

-T###将输入文件解释为指定的文件类型

文件类型指定为文件类型前缀,

可在“加载文件”对话框中查看

要指定归档成员,请将其放置在冒号字符后面,

例如:-TZIP:classes.dex

可以指定任何嵌套路径:

-T[:{::}[:]]

在这种情况下,IDA不会显示“加载文件”对话框

-t创建空数据库。

-W###指定MS Windows目录

-x不要创建分段

(与Dump database命令一起使用)

此选项仅影响EXE和COM格式文件。

-z调试:

00000001数据引用

00000002偏移量

00000004 FLIRT

00000008 IDP模块

00000010 LDR模块

00000020插件模块

00000040 IDS文件

00000080配置文件

00000100检查堆

00000200检查参数

00000400名称反编译

00000800队列

00001000回滚

00002000已经是数据或代码

00004000类型系统

00008000显示所有通知

00010000调试器

00020000 dbg_appcall

00040000源码级调试器

00080000辅助功能

00100000网络

00200000完整栈分析(单纯法)

00400000调试信息处理(如pdb、dwarf)

00800000 lumina

-?显示本屏幕(适用于文本版本)

?显示本屏幕(适用于文本版本)

-h显示本屏幕(适用于文本版本)

-H显示本屏幕(适用于文本版本)

--help显示本屏幕(适用于文本版本)

批处理模式下,必须使用以下命令行调用IDA:

ida-B input-file

它等效于:

ida-c-A-Sanalysis.idc input-file

文本界面(idat.exe/idat)在批处理模式下使用更少的系统资源,但请注意,常规插件在批处理模式下不会自动加载,因为分析.idc文件退出后,内核没有机会加载它们。

有关更多信息,请参阅IDC子目录中的analysis.idc文件。

展开阅读全文

标签:

读者也访问过这里:
邀请您进入交流群 点击扫码
400-8765-888 kefu@makeding.com

专业销售为您服务

欢迎添加好友,了解更多IDA优惠信息,领逆向工程学习资料礼包1份!
热门文章
exe反编译工具哪个好?反编译能力强的工具盘点
随着软件技术的发展,exe(可执行文件)已经成为了电脑、手机等多个平台上的主要软件运行格式,而对于exe文件的反编译也成为了逆向工程中不可缺少的一个步骤。本文将介绍一些常用的exe反编译工具,并评价其优缺点,帮助读者选择合适的工具。
2023-04-12
idapro怎么改为中文
IDA Pro是一款功能强大的反汇编和反编译工具,广泛应用于逆向工程和软件开发领域。在使用IDA Pro时,如果我们不习惯英文界面,可以将其改为中文界面。本文将介绍IDA Pro怎么改为中文界面。IDA Pro界面改成中文主要有两种方法,下面是详细介绍。
2023-04-19
c++反编译工具有哪些
反编译C++代码的工具一般是针对可执行文件和库文件的反汇编和逆向分析工具。本文将给大家介绍c++反编译工具有哪些的内容。市面说的c++反编译工具有很多,下面介绍几款使用认识较多的软件。
2023-04-23
ida怎么查找字符串 ida字符串窗口快捷键
在数字化时代,逆向工程作为解密软件和分析程序的关键技术,正日益受到广泛关注。在逆向分析的过程中,IDA(Interactive DisAssembler)是一款备受推崇的工具,它为逆向工程师们提供了强大的功能和灵活的操作。本文将带您深入探讨如何在IDA中查找字符串,优化字符串窗口的使用,并探讨IDA如何将变量转换成字符串,帮助您更加熟练地驾驭这一工具,为逆向分析的世界增添一抹精彩。
2023-09-27
ida如何转伪代码 ida伪代码怎么看
IDA Pro是一款常用的反汇编和反编译工具,可以帮助我们分析二进制文件的实现细节和执行过程,以便更好地理解程序的执行过程和逻辑。在进行逆向工程的过程中,我们经常需要将反汇编结果转换为伪代码,以便更好地进行分析和修改。本文将介绍如何使用IDA Pro转换为伪代码,并简单讲解ida伪代码怎么看。
2023-04-14
最新文章
IDA Mac反编译怎么安装配置 IDA Mac反编译附加进程失败怎么排查
在Mac上用IDA,常见卡点通常不是打开文件,而是两步,一步是反编译能力没有真正装好或授权没识别到,另一步是本地附加进程时被macOS权限机制拦住。Hex-Rays官方安装文档、反编译说明和macOS调试教程其实把这两件事都讲得很清楚,按官方路径走,排障会快很多。
2026-03-16
IDA反编译易语言怎么处理资源段 IDA反编译易语言字符串乱码怎么修复
很多易语言样本进IDA后,最先卡住的往往不是代码段,而是资源段看不全、中文字符串一片乱码,结果连入口线索都不好找。更稳的做法是先把资源和字符串这两类“静态线索”处理干净,再去补函数和调用链,这样后面的分析效率会高很多。IDA本身支持按需加载更多PE段、按文件偏移跳转、以及对单个字符串或全局字符串单独指定编码,这几项正好对应这类问题。
2026-03-16
IDA恶意软件分析怎么快速定位行为 IDA恶意软件分析API调用链怎么看
用IDA看恶意样本,最怕一上来就陷进反汇编细节里,结果半天找不到真正的行为入口。更稳的做法是先用字符串、导入表、函数表和交叉引用把高价值区域圈出来,再从可疑API往上回溯调用链,这样能更快把样本按下载、持久化、进程注入、网络通信这类行为拆开看。IDA官方当前也把Imports、Functions、Names、Graph、Xref Graph这些视图作为标准分析入口。
2026-03-16
IDA代码反编译怎么提高可读性 IDA代码反编译结果混乱怎么整理命名
用IDA看伪代码时,真正影响阅读效率的,通常不是F5能不能出结果,而是名字、类型和表达式有没有被持续整理。Hex-Rays官方文档把这套路径写得很明确,伪代码窗口本身就支持Rename、Set type、Hide/unhide、Split/unsplit expression这些交互动作,说明反编译结果不是只能被动接受,而是可以一边看一边改。
2026-03-16
IDA反汇编软件怎么选 IDA反汇编软件常见使用误区怎么避开
选反汇编工具时,最怕先被宣传点带偏,装完才发现目标格式不支持,或分析链路不顺导致效率很低。更稳的做法是先按你的样本类型和交付目标选工具,再用一套固定试用流程验证是否真能提速,最后把常见误区提前规避掉。
2026-03-16
IDA脱壳工具怎么配合使用 IDA脱壳工具脱壳后导入仍报段错误怎么处理
这类问题通常出现在两种场景,一种是你在做自有软件的兼容性排障或安全自查,手里拿到的文件经过了加固或封装处理,导致分析链路不顺;另一种是你在分析异常样本或崩溃现场文件,文件结构不完整或内存映射不一致,导入后就报段错误。下面我会避开任何可能用于绕过软件保护的具体操作细节,给你一套更安全也更工程化的替代流程,重点解决如何让分析可复现,以及导入报段错误时如何定位根因并恢复到可分析状态。
2026-03-16

通过微信咨询我们

欢迎添加好友,了解更多IDA优惠信息,领取逆向工程学习资料礼包1份!

读者也喜欢这些内容: