Cortana

De Linuxmemo.

Cortana: Scripting for Armitage and Metasploit

git clone https://github.com/rsmudge/cortana-scripts cortana/

[modifier] Run a Cortana Script StandAlone

To run Cortana scripts without Armitage, you must setup an Armitage team server. The Armitage team server allows multiple clients to safely share one instance of the Metasploit Framework.

To start a team server:

cd /path/to/armitage
./teamserver [team server IP address] [shared password]

Next, we will tell Cortana how to connect to our team server. Create a file called local.prop with the following contents:

root@bt:~/cortana# cat local.prop
host=[team server IP address]
port=55553
user=msf
pass=[shared password]
nick=[choose a cool nickname for your bot]

The host value is the host of your team server. Cortana clients may connect to a local or remote team server. The nick value is the name Armitage attributes to the actions of your script(s) in the shared team event log.

To start Cortana, use:

java -jar cortana.jar local.prop yourscripthere.cna [yourotherscript.cna] [...]

[modifier] Run a Cortana Script from Armitage

Cortana is also built into Armitage. To permanently load a script, go to

Menu Armitage > Scripts > Load

and press Load. Cortana scripts run from Armitage do not require a team server. There is no limit to the number of scripts you may load through one Armitage instance. Scripts written to run in a standPalone Cortana container are usable in Armitage with no changes.

Outils personnels