For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > October 2007 > persistent process









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author persistent process
J de Boyne Pollard

2007-10-26, 8:07 am

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.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com