June 2019
Beginner to intermediate
660 pages
14h 30m
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 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 commands to Metasploit and ensures that they are executed. Also, the console_* functions are used to print the output of the command sent by cmd_async. Metasploit will execute these commands; however, in order to print the output, we need to define ...
Read now
Unlock full access