Say you go for the 500+ shells on an internal test or your phishing exersice goes way better than you thought. Well you need to get your bearings quickly and going into each shell and doing a ps, then looking through the list for all the users logged in is a bit of a pain and defintely not ideal.
I wrote a quick script that you can throw in the meterpreter scripts folder to aide you a bit with this:
↧