From startnet@NATION.ORG Sat Dec 27 00:53:19 1997
From: Derek Reynolds 
X-Sender: startnet@nation.org
To: BUGTRAQ@NETSPACE.ORG
Date: Sun, 7 Dec 1997 21:21:46 -0500

Hi, The past week many people have downloaded the long awaited mIRC 5.3 and
have done many nice things with it in the way of socket scripting..

Below is a program that will exploit mIRC's new socket feature and crash the
client and make the windows95/NT environment run very very slow (Pentium
will now be sluggish as a 286). By the way, I have ported the src to win32
binary executable which works aswell.

I would like to address the author of mIRC (Khaled) : Maybe you should add
me to your beta list.. hehe.


keep it real

myn@efnet

------- hanson.c ------------


  [ Part 2: "Attached Text" ]

/*  hanson.c - by myn with help from h2o and watcher *thanks*

    This lil program exploits mIRC's bound sockets, making the client crash

    mIRC can handle a mass influx of data but cannot handle strings of data
    that are parsed internally through mIRC. This program forces mIRC to
    parse incoming data and identify it, the result from the parse
    is larger then mIRC's buffer string size, thus making the
    client crash :).  This will create 5 connections to the bound port and
    then send the string.

    Its like sending double "int" when you only had 1 bit to work with!

    hanson.c is dedicated to all the lil 13 to 16 year old geeks (abyss)
    that are in love with those cute boys..


          myn@efnet
*/

#include stdio.h
#include string.h
#include netdb.h
#include netinet/in.h
#include sys/types.h
#include sys/socket.h
#include unistd.h

[snip...]