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默认打开是图形模式,就是反汇编流程视图,可以用来分析程序函数的具体运行情况。
2021-06-15
IDA的初始使用说明和界面简介
IDA能帮助我们分析恶意软件、分析系统漏洞、验证编译器的性能,其支持在Mac系统、Windows系统、Linux系统中使用,是一款非常优秀的反编译软件。
2021-03-16
最新文章
ida医学上是什么意思?医学ida指什么?
医学术语往往能够准确地描述健康状况和疾病的特点,对于医疗专业人员来说是日常工作不可或缺的一部分。然而,普通公众对这些术语的理解可能会存在困难,这就需要我们通过更易懂的方式来介绍这些专业知识。其中,“IDA”是一个在医学领域频繁出现的缩写,代表了一种常见的健康问题。本文将详细阐述IDA在医学上的含义,它所指的特定疾病,以及IDA在其他领域的潜在含义,旨在帮助公众更好地理解这一术语。
2024-04-23
mybatis逆向工程是什么?mybatis逆向工程使用什么工具?
mybatis,作为一个流行的Java持久层框架,通过提供一种相对简便的方式来管理数据库操作和数据转换,已经成为众多项目开发中不可或缺的一部分。而mybatis逆向工程,则是在此基础上,通过自动化生成数据库操作代码的方式,进一步提升开发效率,简化开发过程。
2024-04-17
md5可以反编译吗?md5反编译需要用什么工具?
在数字安全和软件开发领域,md5一直是一个广为人知的话题。md5,即Message-Digest Algorithm 5,是一种广泛使用的加密哈希函数,能够产生一个128位(16字节)的哈希值,通常用一个32位的十六进制数表示。但随着计算技术的发展,人们开始探讨md5是否可以反编译,以及进行这种反编译所需的工具是什么。本文将深入探讨这一话题,包括md5的反编译可能性、所需的工具以及IDA反编译原理的详细分析。
2024-04-16
pyc反编译文件怎么做?pyc反编译有什么工具?
Python编程语言以其高效的性能和广泛的应用领域占据了软件开发的重要地位。随之而来的`.pyc`文件作为Python代码编译的产物,对于提高程序运行效率有着不可忽视的作用。但在某些场合下,我们需要将这些编译过的文件还原为源代码形式,以便于代码审查或学习交流。因此,本文将深入探讨`.pyc`文件的反编译过程、介绍有效的反编译工具,并指导如何通过IDA快速掌握反编译技巧,以资助力开发者和逆向工程师。
2024-04-09
易语言反编译是什么?易语言反编译怎么做用什么工具?
软件工程的一个挑战性任务是如何解读和分析那些没有源代码的程序。对于易语言编写的软件,这一挑战尤为突出。反编译技术,作为桥接编译代码与源代码的关键技术,能够揭开编译后程序的神秘面纱。本文将聚焦于易语言反编译的基础知识、实施方法及所需的工具,并详细探讨IDA工具在逆向工程任务中的核心作用,为广大技术从业者提供参考和指导。
2024-04-09
IDA8.4新版发布:界面大更新!反编译精度提升!附下载
逆向工程领域的佼佼者,IDA Pro,再次以其最新版本8.4引领技术潮流。本次更新不仅延续了IDA Pro一贯的专业性能,更在用户体验和功能上带来了一系列创新和改进。我们诚邀广大用户前往IDA中文网站(https://www.idapro.net.cn/)下载并体验IDA 8.4的最新功能。
2024-04-01

通过微信咨询我们

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

读者也喜欢这些内容: