this post was submitted on 04 Aug 2026
490 points (99.0% liked)
Programmer Humor
32610 readers
1305 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
yeah you can also just curl > cat and check the script yourself
๐ฑ.sh
Relevant
Do you mean
curl | cator do you really want to create a file called cat?Also piping to cat seems redundant but malicious hosts can detect whether the request is getting redirected, using some clever trick, so it's not.
Also, your chance of spotting something bad in a malicious script is probably quite small.
Saving it to a file is actually a decent method, since you can be sure the script you're reviewing is the same one you're running.
Personally I often will just manually run the install steps in order if the script is simple enough. Half the time it's just a bunch of OS version checks followed by a tar -xf
This is my opinion on
curl | sh/bashtype directions. If the maintainers don't provide a hash so I can confirm that is what they intended, there ain't much I can do unless someone slapped in a function named "totallyNotMalware" into the script. I've looked through scripts, seen what they do, but I'm not good enough to recognize anything funky.or just curl