SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 573 | Next

Shon Harris, Allen Harper, Chris Eagle, and Jonathan Ness

"Gray Hat Hacking, Second Edition"


Scripting with IDC
IDA??™s scripting language is named IDC. IDC is a very C-like language that is interpreted
rather than compiled. Like many scripting languages, IDC is dynamically typed, and can
be run in something close to an interactive mode, or as complete stand-alone scripts
contained in .idc files. IDA does provide some documentation on IDC in the form of
help files that describe the basic syntax of the language and the built-in API functions
available to the IDC programmer. Like other IDA documentation, that available for IDC
follows a rather minimalist approach consisting primarily of comments from various
IDC header files. Learning the IDC API generally requires browsing the IDC documentation
until you discover a function that looks like it might do what you want, then playing
around with that function until you understand how it works. The following points
offer a quick rundown of the IDC language:
??? IDC understands C++ style single- or multiline comments.
??? No explicit data types are in IDC.
??? No global variables are allowed in IDC script files.
??? If you require variables in your IDC scripts, they must be declared as the first
lines of your script or the first lines within any function.


Pages:
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585