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配置文件修改后为什么没有生效 IDA配置文件的读取顺序怎么检查
调整IDA的分析参数或界面设置时,有时文件已经保存,重新打开软件却看不到变化。同一台电脑装有多个版本,或者以前设置过用户配置目录,这类情况会更难判断。配置没有变化,可能与文件位置、重复设置、启动环境有关,也可能是观察效果的方式不对。排查时把修改位置和实际读取记录对应起来,比反复修改同一个数值更有用。
2026-11-09
IDA Pro apk反编译怎么分析程序 IDA Pro apk反编译结果异常怎么办
APK中既有程序代码,也有资源、配置和本地库。打开安装包后,看到字节码、找不到某个类,或只找到接口声明,并不一定是分析出错。IDA的版本和加载方式也会影响结果。本文介绍“IDA Pro apk反编译怎么分析程序IDA Pro apk反编译结果异常怎么办”,说明代码查看和异常检查方法。以下采用英文菜单名称,DEX的Java反编译操作以具备相应功能的IDA 9.5环境为前提。
2026-10-10
IDA Pro so文件反编译怎么操作 IDA Pro so文件反编译无法识别怎么办
SO文件常见于Linux软件和Android应用,通常保存已经编译的本地代码。用IDA Pro打开后,可以查看汇编,也可以借助对应的反编译器生成伪代码。不过,文件能加载与函数能反编译是两回事。下面围绕“IDA Pro so文件反编译怎么操作IDA Pro so文件反编译无法识别怎么办”,介绍具体操作和几种容易混淆的问题。菜单名称以IDA的英文界面为准。
2026-10-10
IDA Pro arm反汇编如何分析程序 IDA Pro arm反汇编文件加载异常怎么办
ARM程序在手机应用、嵌入式设备和固件中都很常见。文件导入IDA Pro后,有时能看到指令,却找不到清楚的函数关系;有时满屏都是数据,连入口也没有识别出来。这些情况与文件格式、指令模式和地址设置都有关系。下面介绍“IDA Pro arm反汇编如何分析程序IDA Pro arm反汇编文件加载异常怎么办”,从文件加载到代码阅读,说明常用操作及检查方法。菜单名称采用IDA的英文界面。
2026-10-10
IDA Pro应用程序调试怎么操作 IDA Pro应用程序调试失败怎么办
程序能在IDA Pro中打开,不代表已经具备运行条件。按下F9后没有启动、程序马上退出、断点一直不命中,可能是不同环节出了问题。了解“IDA Pro应用程序调试怎么操作IDA Pro应用程序调试失败怎么办”,先把启动配置、执行过程和报错信息分开看,排查会更有方向。
2026-10-10
IDA Pro漏洞分析有哪些方法 IDA Pro漏洞分析如何查找关键位置
查看漏洞相关代码时,找到memcpy、strcpy等函数只是线索,还要确认输入从哪里来、缓冲区有多大,以及前面的检查是否有效。一个看起来危险的调用,也可能受到上层条件的限制。“IDA Pro漏洞分析有哪些方法IDA Pro漏洞分析如何查找关键位置”,需要结合调用关系、数据流向和运行结果来看,不能仅凭函数名称下结论。
2026-10-10

通过微信咨询我们

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

读者也喜欢这些内容: