EmpireProject / Empire

Empire is a PowerShell and Python post-exploitation agent.
http://www.powershellempire.com/
BSD 3-Clause "New" or "Revised" License
7.39k stars 2.81k forks source link

Feature request: interact all #1298

Closed PabloBrusseel closed 5 years ago

PabloBrusseel commented 5 years ago

Would be nice if you could use a particular module on all agents that speak the same language.

ThePirateWhoSmellsOfSunflowers commented 5 years ago

Hi! There is a undocumented workaround to automatically run module on connect. Just try to set all as agent

(Empire) > usemodule powershell/collection/screenshot
(Empire: powershell/collection/screenshot) > 
(Empire: powershell/collection/screenshot) > set Agent all
(Empire: powershell/collection/screenshot) > 

It will automatically run the screenshot module for all the agents currently connected.

PS : Like #1299, I don't know if this workaround still works.

:sunflower:

PabloBrusseel commented 5 years ago

Perfect! Works like a charm!

ThePirateWhoSmellsOfSunflowers commented 5 years ago

Nice, let me know if it also works for autorun