Re:How to build an NPM worm
by PeCaN on Friday July 13, 2018 @12:58AM
(#17520619)
Ignoring the obvious stupidity here, why does it invoke Ruby only to invoke curl?
[ Parent
| on HN ]
That's not what it's doing. It's downloading Ruby code and then running it. The "$(...)" is evaluated first.
It curls the install script, which is passed to ruby as a string which is run.
Ah, duh, you're right. I forgot $() is bash syntax and not the Ruby syntax for running an external command. Thanks, and yikes.
Re:How to build an NPM worm
by analogmemory on Friday July 13, 2018 @01:02AM
(#17520636)
Because the install script is in ruby?