News for hackers. Stuff that matters.
Re:Russhian Roulette: 1/6 chance of posting your SSH private... by tryauuum on Thursday February 02, 2023 @08:39AM (#34626320)
just tested -- only reads first char, at least with echo (also any character which is not used is used as "h")

  echo apm > /proc/sysrq-trigger
Re:Russhian Roulette: 1/6 chance of posting your SSH private... by mhio on Thursday February 02, 2023 @06:00PM (#34634517)
I saw that too, but in this case `echo` exits. My note was just regarding the pipeline will continue to write forever if the first character was any of the non destructive commands.

Without trashing vms...

    ( while true; do printf 'a'; done ) > /proc/sysrq-trigger
With the `head`, the output is closed.