News for hackers. Stuff that matters.
Re:Detecting the use of “curl | bash” server side by a1369209993 on Tuesday December 27, 2022 @07:37PM (#34155937)
> If the last line gets truncated between the `s` and the `p`, then `ls` gets executed.

My shell[0] dies with a error "source file did not end with a newline". This is easily solvable in general, regardless of what's in PATH, as long as the shell works correctly. Valid text files do not end with bytes other than 0x0A.

0: That I wrote, because of bugs other than this one in bash et al, such as $FILE_WITH_SPACES.

There are no comments on this comment yet.