- Hands-On Red Team Tactics
- Himanshu Sharma Harpreet Singh
- 226字
- 2021-08-13 15:36:44
Armitage and Cortana scripts
Cortana is a scripting language that is built into Armitage and Cobalt Strike. This is based on Sleep Scripting Language (http://sleep.dashnine.org/ ). We can find a lot of Cortana scripts built by different people on the internet. These scripts can be used to automate different tasks in Armitage. Running Cortana scripts is extremely easy. We will use the scripts hosted on GitHub by rsmudge, found here at https://github.com/rsmudge/cortana-scripts.
We then download the scripts on our computer and go to Armitage | Scripts... to run them:

In the window which opens, we choose Load and select the script we downloaded:

We will then try to run the icon script. This script identifies the services running and displays icons according to them:

Once the script is loaded, we then do the exploitation. When a new Meterpreter connection comes, this script will automatically run:

The script can sometimes take a while to run depending on the number of Meterpreter connections we have on our Armitage.
Within Armitage, the Cortana console is also provided. This allows us to interact with the scripts we run.
To view the console, we go to View | Script Console, as follows:

We can type help into the script console to see the list of all the commands:

Cortana's official manual has described the functions for all the commands:

- 應對多突發事件的信息系統應用技術
- SignalR Realtime Application Cookbook
- 響應式網頁開發基礎教程(jQuery+Bootstrap)
- 安全之美
- Axure RP8入門手冊:網站和App原型設計從入門到精通
- OPENStack云框架應用管理實踐
- 監控平臺解密:IT系統風險感知和洞察
- 計算機網絡基礎:基于案例與實訓 第2版
- Administrating Solr
- 現代網絡控制技術及應用
- 軟件定義網絡:SDN與OpenFlow解析
- Dreamweaver+ASP動態網頁設計從新手到高手
- 網站組建、管理與維護
- 兼攻之道:思科當前贏利和長遠發展的秘訣
- ASP.NET框架應用程序實戰:軟件開發工程師崗前必備