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 Pro怎么导出C代码 IDA Pro导出的C代码缺少变量声明如何处理
IDA Pro通过Hex-Rays反编译器把机器指令转换为接近C语言的伪代码,并不等于恢复原始工程。处理“IDA Pro怎么导出C代码IDA Pro导出的C代码缺少变量声明如何处理”时,应先修正函数边界、参数类型和局部变量,再执行导出;未经整理的伪代码容易出现声明折叠、变量合并和调用原型错误。
2026-08-04
IDA Pro反编译BIN怎么设置基地址 IDA Pro基地址设置错误后引用关系如何修复
BIN文件通常只保存连续的机器码和数据,不包含处理器类型、加载地址、段表及入口点。使用IDA Pro分析时,基地址一旦设置错误,函数地址、全局变量、跳转目标和交叉引用都会随之偏移。处理“IDA Pro反编译BIN怎么设置基地址IDA Pro基地址设置错误后引用关系如何修复”,应先确认固件实际映射位置,再决定重新加载还是对现有数据库整体重定位。
2026-08-04
IDA Pro反编译APK怎么选择目标架构 IDA Pro加载错误架构的SO文件如何更换
APK中的Java或Kotlin代码主要位于DEX文件,IDA Pro更适合分析其中的本地SO库。同一个安装包可能同时包含ARM、ARM64、x86和x86_64版本,同名SO的指令集、位宽和调用约定并不相同。处理“IDA Pro反编译APK怎么选择目标架构IDA Pro加载错误架构的SO文件如何更换”,应先确认应用实际使用的ABI,再核对ELF位宽和IDA处理器,不能只凭文件名判断。
2026-08-04
IDA Pro反编译SO怎么查找JNI注册函数 IDA Pro动态注册的Native方法如何定位
Android应用中的Native方法有静态注册和动态注册两种形式。静态注册通常能在SO导出表中看到以Java_开头的函数名,动态注册则会在运行时通过RegisterNatives把Java方法名、方法签名和Native函数地址建立对应关系。IDA Pro反编译SO怎么查找JNI注册函数IDA Pro动态注册的Native方法如何定位,重点是找到注册入口、识别JNINativeMethod数组,再沿函数指针进入真正的Native实现。
2026-08-04
IDA Pro反编译DLL怎么修正调用约定 IDA Pro调用约定识别错误会造成什么影响
DLL中的导出函数、内部函数和回调函数可能采用不同的参数传递方式。IDA Pro会根据处理器、编译器特征和调用现场推断函数原型,但优化编译、符号缺失、间接调用及自定义寄存器传参都会影响识别结果。“IDA Pro反编译DLL怎么修正调用约定IDA Pro调用约定识别错误会造成什么影响”涉及函数类型、栈平衡和跨函数数据流等内容。
2026-08-04
IDA Pro反编译C++怎么识别虚函数 IDA Pro虚函数调用关系显示错误如何调整
APK中的Java或Kotlin代码主要位于DEX文件,Native代码通常位于不同ABI目录下的ELF共享库。动态调试时看到大量sub_xxx、loc_xxx或无意义类名,往往不是调试器没有连接成功,而是当前数据库、运行模块与符号文件没有正确对应。处理“IDA Pro动态调试APK怎么加载符号IDA Pro调试APK时符号名称缺失如何补全”时,应先区分DEX符号和Native符号,再按照实际加载地址补充调试信息。
2026-08-04

通过微信咨询我们

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

读者也喜欢这些内容: