December 2017
Intermediate to advanced
860 pages
16h 1m
English
Cortana controls Metasploit functions very well. We can send any command to Metasploit using Cortana. Let's see an example script to help us to understand more about controlling Metasploit functions from Cortana:
cmd_async("hosts");
cmd_async("services");
on console_hosts {
println("Hosts in the Database");
println(" $3 ");
}
on console_services {
println("Services in the Database");
println(" $3 ");
}
In the preceding script, the cmd_async command sends the hosts and services command to Metasploit and ensures that it is executed. In addition, the console_* functions are used to print the output of the command sent by cmd_async. Metasploit will execute these commands; however, for printing the output, we need to define ...
Read now
Unlock full access