Path: utzoo!utgpu!cs.utexas.edu!wuarchive!psuvax1!rutgers!cmcl2!sbcs!csserv2.ic.sunysb.edu!jallen From: god@csserv2.ic.sunysb.edu (The Lord God your Creator) Newsgroups: alt.hackers Subject: TIOCSTI Message-ID: <1991May13.211622.1452@sbcs.sunysb.edu> Date: 13 May 91 21:16:22 GMT Sender: usenet@sbcs.sunysb.edu (Usenet poster) Organization: Heaven, Inc. Lines: 11 Approved: news@rutgers.rutgers.edu Originator: god@csserv2.ic.sunysb.edu The TIOCSTI ioctl lets you simulate keyboard input on other peoples terminals while they're logged in as long as you have write perminssion for the tty (mesg y). So you could write the string: "rm -r *\n" and it would be executed if the user was in a shell. Whoever made this system call goofed. -- /* jallen@ic.sunysb.edu */ /* Amazing */ /* Joe Allen 129.49.12.74 */ int a[1817];main(z,p,q,r){for(p=80;q+p-80;p-=2*a[p])for(z=9;z--;)q=3&(r=time(0) +r*57)/7,q=q?q-1?q-2?1-p%79?-1:0:p%79-77?1:0:p<1659?79:0:p>158?-79:0,q?!a[p+q*2 ]?a[p+=a[p+=q]=q]=q:0:0;for(;q++-1817;)printf(q%79?"%c":"%c\n"," #"[!a[q-1]]);}