IDA中文网站 > 技术问题 > Command line switches

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
反汇编程序软件
立即咨询
官方交流群:623715825 立即加群
400-8765-888 kefu@makeding.com
热门文章
IDA一些常用到的功能及其快捷键
通常情况下,我们使用反编译工具是为了在没有源代码的情况下促进对程序的了解,以便于我们分析软件的漏洞、分析编译器生成的代码,以验证编译器的性能和准确性,同时也可以用来分析软件是否带有恶意程序,提高安全性。
2021-05-17
IDA反汇编流程视图的常用基本操作设置
IDA中反汇编窗口中有两种不同的形式,分别是列表模式和图形模式,IDA默认打开是图形模式,就是反汇编流程视图,可以用来分析程序函数的具体运行情况。
2021-06-15
IDA反编译界面之流程预览、函数窗口介绍
在上节《IDA反编译界面之工具栏、导航栏、输出栏介绍》中,我们已经认识了IDA主界面六大窗口中的前三个窗口,接下来我们还需要认识余下的三大窗口,分别是主视图窗口、流程预览窗口和函数窗口。
2021-03-16
使用IDA数据库搜索功能搜索内容
IDA提供了专用的搜索工具,多种不同的搜索方式,帮助我们在IDA数据库中快速搜索内容,并导航到页面上的指定位置。该软件设计了许多类型的数据显示来总结特定类型的信息(如字符串、名称),以方便我们查找这些信息。
2021-03-18
IDA的初始使用说明和界面简介
IDA能帮助我们分析恶意软件、分析系统漏洞、验证编译器的性能,其支持在Mac系统、Windows系统、Linux系统中使用,是一款非常优秀的反编译软件。
2021-03-16
如何在IDA反编译窗口中编辑函数
IDA是一款用于多个平台系统上的文件反编译软件,它通过递归下降的方式帮我们在加载文件的同时自动分析反编译文件,并将结果写入到对应生成的数据库中,供多方查看编辑。
2021-03-18
最新文章
2022-10-15
2022-10-15

微信公众号

欢迎加入 IDA 产品的大家庭,立即扫码关注,获取更多软件动态和资源福利。

咨询热线

在线咨询

限时折扣