Hack Forums
[Shell] Mirror remote powershell - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] Mirror remote powershell (/showthread.php?tid=5969840)



Mirror remote powershell - MRose - May 14, 2019

Hello

Is there a way to mirror incoming powershell scripts? Like if someone wants to shutdown your computer with a script, and then "counter" the script by sending it back to sender?

Would be nice if it was possible to do


RE: Mirror remote powershell - +mK - May 19, 2019

Powershell doesn't just send a command to a target machine and run on the machine. It's operated on the host system and resides in memory. I'd imagine the only way this would ever be possible is if you're using Invoke-Command via your target's Powershell, but that would be weird.