r/PowerShell • u/sashag90 • 2h ago
Script Sharing [ Removed by moderator ]
[removed] — view removed post
0
Upvotes
r/PowerShell • u/sashag90 • 2h ago
[removed] — view removed post
View all comments
1
u/MonkeyNin 1h ago
Safety tip: Remember don't run code like
https://getshell.pw/sh | bashor https://getshell.pw/sh | iex` unless you trust the author.for
docker.ps1you don't needInvoke-ExpressionorJoin-Stringto run docker hereBuild an array where spaces create a new element:
instead of:
You can make it safer by ignoring functions named
docker. Otherwise you could end up calling that instead.