Closed GoogleCodeExporter closed 9 years ago
Please provide an example that reproduces your issue and the exact output you'd
like to see. On second read, I suspect that you're reporting a Cortana issue. I
didn't get that at first.
Original comment by rsmu...@gmail.com
on 28 Sep 2012 at 5:47
You are correct on cortana ... my apologies for a very poor question. I am
using a metasploit module I have developed - which at this time only accepts
one IP address for the RHOST input. This said - I am trying to use the
following cortana script.
on heartbeat_5m {
println("[*] Faulting controller located at 172.16.1.30");
auxiliary("cybati/micrologix_fault", @172.16.1.30);
}
Originally I was just using the on service_add function and the same logic in
your documentation - then I switched away from that in trying to figure out
where this simple script is failing.
Original comment by m...@sph3r3.com
on 28 Sep 2012 at 6:05
Use @(172.16.1.30). That's a single element array for a single host. Auxiliary
modules by convention accept RHOSTS and not RHOST. So if your module only takes
RHOST, you may want to update it to take RHOSTS instead.
If all else fails, look at the module function to actually call the module
manually and specify all of the parameters. You can do launch("auxiliary",
"whatever/module", %(RHOST => "your option", SOMEVALUE => "something else"));
Launch won't transform what you've posted. Auxiliary makes assumptions about
the module based on Metasploit's conventions.
Original comment by rsmu...@gmail.com
on 28 Sep 2012 at 6:10
Well .. that did it. Due to my poor module implementation and not following
the RHOSTS convention the auxiliary function would not work. What I did find
odd is that I could not capture any debugging from cortana or metasploit that
represented a failure. I turned on debug=true in the metasploit module too.
So, the answer was to use the launch() function and directly call the
parameters. Thanks for your amazing late night response time and for the
awesome tools. Armitage, and now coupled with Cortana is absolutely awesome!
Original comment by m...@sph3r3.com
on 28 Sep 2012 at 2:14
Original comment by rsmu...@gmail.com
on 5 Feb 2013 at 8:52
Original issue reported on code.google.com by
m...@sph3r3.com
on 28 Sep 2012 at 4:04