為IDA命令列模式增加巨集支援功能的外掛程式

2021-09-23 15:25:28 字數 1348 閱讀 5090

cli巨集是一種生產力工具,可讓您在ida的命令列介面(python,idc,windbg,bochdbg,gdb等)中定義和使用靜態或動態巨集。

安裝後,climacros始終處於活動狀態。它帶有一組預定的巨集

要建立或編輯新巨集,只需從「快速外掛程式檢視」視窗(ctrl-3)呼叫巨集編輯器。

靜態巨集在cli中按原樣替換。例如以下巨集:

執行時輸出以下內容:

可以定義動態巨集,這些巨集通過評估返回字串的python表示式而得到擴充套件。例如,該idc.here()命令非常有用,可以縮寫為較短的巨集,例如$!$。要定義動態巨集,只需用$$。長形式的巨集$用於idc.here()表達的定義如下:中國菜刀

簡短形式$!

當cli命令中存在巨集時,將呼叫該巨集:天空彩

您不必定義巨集以便在cli中進行表示式擴充套件。如果您需要在cli中進行一次性表示式擴充套件,只需定義內聯表示式:

fn =  「 test _ $  $。bin 」
要麼:

v =  「 $  $ 」
表示式應始終求值為字串,因此始終記住str()表示式,或者"%x" % expr如果它不返回字串,則將其格式化。

climacros是用c ++編寫的,帶有ida的sdk,因此它應該像常規外掛程式一樣進行部署。將外掛程式二進位制檔案複製到以下任一位置:/plugins

IDA命令列引數

可能有助於自動化分析 idaq input file all platforms start graphical inte ce idaw input file windows start text inte ce idal input file linux mac start text inte ...

支援簡單命令列

本任務最初的目的只是為了在測試過程中使用簡單的命令列執行不同的函式,類似執行 python test test.py 執行整個測試,執行 python test test.py debug 來執行測試但是不收集執行結果,請看如下的 import unittest import sys class t...

Gui Bash命令列模式

1 mkdir filename 2 cd dirpath 3 git init 4 git clone d x 本地 git clone git github.com fsliurujie test.git ssh協議 git clone git git協議 git clone https htt...