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
•
u/PowerShell-ModTeam 18m ago
DO NOT post malicious scripts. This includes anything without readable code, obfuscated targets, or anything that could be construed as something with a harmful payload. Posting malicous scripts FOR ANY REASON will result in an immediate ban.
14
u/MSgtGunny 1h ago
directly invoking shell scripts hosted on untrusted platforms without reviewing its contents is an awful security practice that should not be promoted.
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.1
u/g3n3 53m ago
Neat. With the lack of msi, I could see a windows variant being important.
2
u/g3n3 45m ago
On nix, id probably use brew anyway. Scoop for windows is handy too. The intermediary is updating the admin pwsh on windows.
2
u/g3n3 43m ago
Though brew without sudo is kind of busted. This light probe more important for full admin less installs. Scoop is superior on windows in this way. Nothing like it on nix.
2
u/g3n3 42m ago
https://mise.jdx.dev appears to be the closest to scoop on nix.