mIRC Home    About    Download    Register    News    Help

Print Thread
#64552 19/12/03 01:11 PM
W
wetseal
wetseal
W
This fixes the dcc bug in mirc 6.12 i have tested it for over 2 weeks now. place this in your remots any place you have room.

ctcp *:dcc send:*: if ($len($nopath($filename)) >= 225) { echo 4 -s $nick tried to crash you with an illegal dcc send of $nopath($filename) | halt }
wetseal

#64553 19/12/03 02:49 PM
Y
Yochai
Yochai
Y
The only problam with this is $filename ...
It gives you the path as well, so it's depends on the user's setup.
It seams that a filename longer then 250 crashes mIRC, so I've taken only the filename itself (as it is in the ctcp) and checked it.
I've did some testing with this snippet, and it works fine:

ctcp *:dcc send *:*: {
if ($chr(34) isin $3-) var %file = $+(",$gettok($3-,1,34),")
else var %file = $3
if ($len(%file) >= 250) {
linesep
Echo -ts $+(,$colour(info)) $nick $+(,$colour(highlight)) tried to send you an exploit file to crash your mIRC !
Echo -ts Stoping send connection!
linesep
halt
}
}

#64554 19/12/03 03:40 PM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
I suppose you overlooked his usage of $nopath(), which removes the path and leaves only the filename. Anyway, the snippet posted by wetseal has been around for quite some time on these boards as well as on various sites, like this one.


Link Copied to Clipboard