| J de Boyne Pollard 2007-10-26, 1:29 pm |
| f> So try that on my version of the "fork machinegun":
JdeBP> Control-Q (or whatever your terminal's stop character happens
JdeBP> to be) is your friend for that one. As, indeed, is a pipe.
f> You're thinking of Control-S.
Actually, I wasn't. Control-S is bash's forward history search, for
me. I _meant to write_ Control-S, but when I noticed that I'd written
Control-Q I decided to let it stand, to emphasize the point made in
the parentheses.
f> Okay, fine, but take out the printfs and perrors and try again.
f> I put them in for demonstration purposes but of course an
f> evil user wouldn't have them.
An _evil_ user would incorporate some sort of diabolical payload,
though. And that's in part the point. Once one has the program doing
more than solely fork()ing, more ways to stop it appear.
" su ${EVILUSER} -c "kill -STOP -1" " is your friend for your new
program, by the way.
|