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 Pro是一款常用的反汇编和反编译工具,可以帮助我们分析二进制文件的实现细节和执行过程,以便更好地理解程序的执行过程和逻辑。在进行逆向工程的过程中,我们经常需要将反汇编结果转换为伪代码,以便更好地进行分析和修改。本文将介绍如何使用IDA Pro转换为伪代码,并简单讲解ida伪代码怎么看。
2023-04-14
ida怎么查找字符串 ida字符串窗口快捷键
在数字化时代,逆向工程作为解密软件和分析程序的关键技术,正日益受到广泛关注。在逆向分析的过程中,IDA(Interactive DisAssembler)是一款备受推崇的工具,它为逆向工程师们提供了强大的功能和灵活的操作。本文将带您深入探讨如何在IDA中查找字符串,优化字符串窗口的使用,并探讨IDA如何将变量转换成字符串,帮助您更加熟练地驾驭这一工具,为逆向分析的世界增添一抹精彩。
2023-09-27
最新文章
ida伪代码是什么语言 如何看懂ida伪c代码
在软件逆向工程里,IDA 这款工具特别有名。它可以帮我们把机器码变成更容易理解的代码。很多人觉得直接看汇编代码太难,于是 IDA 提供了伪代码功能,能把这些机器码“翻译”成像 C 语言那样的代码,方便我们理解。所以,今天我们就来聊聊“ida伪代码是什么语言 如何看懂ida伪c代码”这个问题,希望能让你对IDA伪代码有更清晰的认识。
2024-10-18
ida怎么查看伪代码 ida伪代码能直接修改吗
IDA被广泛应用于反汇编和分析程序代码。不仅支持多种文件格式的分析,还可以生成伪代码。对于许多使用IDA的用户而言,了解“ida怎么查看伪代码 ida伪代码能直接修改吗”是一个重要内容。本文将着重介绍,帮助您掌握IDA在伪代码查看和修改方面的功能。
2024-09-30
怎么用IDA反编译研究软件的逻辑漏洞 如何用IDA反编译研究软件的加壳技术
IDA是一款被广泛使用的反汇编工具。它不仅帮助深入理解编译后的程序,还有安全研究强大的手段,本文将为您介绍“怎么用IDA反编译研究软件的逻辑漏洞 如何用IDA反编译研究软件的加壳技术”,并探讨如何在IDA中查找和分析字符串数据。
2024-09-20
ida如何修改指令返回立即数 ida具备哪些指令修复功能
IDA是一款功能强大的反汇编工具,通过IDA,可以深入理解程序的底层指令进行各种操作,本文将为您介绍“ida如何修改指令返回立即数 ida具备哪些指令修复功能”的相关话题,帮助用户更好地掌握IDA的功能。
2024-09-20
idapro怎么添加常量 idapro常量的属性窗口怎么打开
IDA Pro(Interactive DisAssembler Professional)是一个功能强大的工具,广泛应用于各种逆向工程任务。要高效使用 IDA Pro 进行逆向分析,我们应该了解如何在 IDA Pro 中添加常量,以及如何管理这些常量的属性。本文将为您介绍“idapro怎么添加常量 idapro常量的属性窗口怎么打开”,并提供常量的一些实用指南。
2024-09-11
idapro怎么输出伪代码 idapro怎么导出所有的伪代码
在信息安全和逆向工程领域,IDA Pro作为一种强悍的反汇编和调试工具,广泛用于二进制程序的分析和破解。IDA Pro的核心功能之一是导出伪代码,这对认知分析程序思路至关重要。本文将探讨“idapro怎么输出伪代码 idapro怎么导出所有的伪代码“
2024-09-04

通过微信咨询我们

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

读者也喜欢这些内容: