mIRC Home    About    Download    Register    News    Help

Print Thread
#97815 16/09/04 11:43 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
OP Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Hi there smile

I've googled it and found about the same information in every site. I'm talking about the DCC exploit. I want to make a script to ban those lamers that use it, but no success until now smirk
All the sites I've visited talked about the following code:
Code:
ctcp *:dcc send:*: if ($len($nopath($filename)) >= 225) { commands }
But I've tried that, and it doesn't work. I've tried it on v6.14, 6.15 and 6.16 with no results... Should I assume that that code only works if the mIRC version was the one vulnerable?
I've also tried with ON GetFail, on DccServer and Raw Privmsg, but nothing :|

What is the correct event? Or do the fixed versions of mIRC block the Send even before a script triggers?

Thanks,
Zyzzyx smile


"All we are saying is give peace a chance" -- John Lennon
#97816 18/09/04 12:12 AM
Joined: Mar 2003
Posts: 160
Vogon poet
Offline
Vogon poet
Joined: Mar 2003
Posts: 160
what about
Code:
ctcp ^1:*:*: { if ($1 ==[color:red)] blah)[/color] { command here }

#97817 18/09/04 04:16 PM
Joined: Dec 2002
Posts: 145
G
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
Here is what I use. My mIRC version is 6.16.

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

Here are the regular message and the one given by the script.

[12:08:51] -nick- DCC Send a a ... a a a a a .txt (ip.123.123.123)
 
*** nick tried to crash you with an illegal dcc send of a__a__ ... a__a__. txt

$len( filename ) = 244

Therefore, the error must be in your command rather than in the event structure.

#97818 18/09/04 06:49 PM
Joined: Dec 2003
Posts: 261
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 261
Online posted this some time ago, I didn't test it:
http://members.lycos.co.uk/onln/files/dcc-exploit-detector.txt


velicha dusha moja Gospoda
#97819 21/09/04 04:58 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
OP Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Online's script works fine, thanks for the link! wink I just didn't get the use of the /debug command there smirk

gemeau50: that script does the same as the one I posted. I tried to use it with echos, kicks, msg and so on, but no luck. BTW, you are missing an *: in the event.

(from the help file)
ctcp <level>:<matchtext>:<*|#|?>:<commands>

Zyzzyx smile


"All we are saying is give peace a chance" -- John Lennon

Link Copied to Clipboard