mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2003
Posts: 9
E
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
E
Joined: May 2003
Posts: 9
Hi,
Can anyone tell me the correct way to capture the text that is displayed in the status window after someone tries the dcc exploit on you? The text I'm referring to goes like this:

DCC Send from some_nick rejected (invalid parameters)

I would like to capture that text so I can write a little snippet to "punish" people for doing it. As far as I can tell it's not a SNOTICE, NOTICE, GETFAIL, or TEXT event.

Thanks

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Somone trying to use the new exploit on you or DCC sends you a bogus command/filename..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Oct 2003
Posts: 6
C
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
C
Joined: Oct 2003
Posts: 6
Its an echo. echo's cant be captured, you have to go the step above it, to the send that triggers it, and take it from there.


- For I Shall Prevail
Joined: Apr 2003
Posts: 35
R
Ameglian cow
Offline
Ameglian cow
R
Joined: Apr 2003
Posts: 35
maybe you can use a timer that every second or so checks the last line of the status window. You can retrieve the last line of the status with $line(Status Window,$line(Status Window,0))


Who will trade his karma for my kingdom?
Joined: Oct 2003
Posts: 4
S
Self-satisified door
Offline
Self-satisified door
S
Joined: Oct 2003
Posts: 4
Hello
I used your Hint to make a script to ban those anoying kiddies
here is it:

; mirc 6.x DCC exploit BANNED! by [email]Steeve@Efnet[/email]
on 1:start:/timerdccbug -o 1 120 findthedamnkid
on 1:quit:{
set %quitmsg $1-
if (%quitmsg == $null) halt
elseif (error isin %quitmsg) findthedamnkid
else halt
}

alias findthedamnkid {
set %dcc.line $fline(Status Window,*rejected*,1,0)
set %dcc.[censored] $line(Status Window,%dcc.line)
set %dcc.filter $deltok(%dcc.[censored],1-4,32)
set %DCCbugger $deltok(%dcc.filter,2-4,32)
echo -a %dccbugger is trying to exploit
unset %dcc.*
ban #channel %dccbugger 2
Clear Status Window
unset %dccbugger
}


NOTE Change #channel for the Channel you are OP on!
or you may use $chan as well but i didn't try.
and ..nobody will be detected if no one got crashed first.
It's up to you to customise this script for your need but it's my work :P

Steve


Qui c ka volé mes vidange ?
Joined: Oct 2003
Posts: 4
S
Self-satisified door
Offline
Self-satisified door
S
Joined: Oct 2003
Posts: 4
I found some little errors with that script so i had to recheck all

this is better:

; mirc 6.x DCC exploit BANNED! by [email]Steeve@Efnet[/email]
on 1:start:/timerdccbug -o 1 120 findthedamnkid
on 1:quit:{
set %quitmsg $1-
if (%quitmsg == $null) halt
if (%dccbugger == $null) halt
elseif (error isin %quitmsg) findthedamnkid
else halt
}

alias findthedamnkid {
set %dcc.line $fline(Status Window,*rejected*,1,0)
if (%dcc.line == $null) halt
set %dcc.blah $line(Status Window,%dcc.line)
set %dcc.filter $deltok(%dcc.blah,1-4,32)
set %DCCbugger $deltok(%dcc.filter,2-4,32)
unset %dcc.*
ban #channel %dccbugger 2
Clear Status Window
unset %dccbugger
}

steve_bathurst@hotmail.com


Qui c ka volé mes vidange ?
Joined: Oct 2003
Posts: 4
S
Self-satisified door
Offline
Self-satisified door
S
Joined: Oct 2003
Posts: 4
You need to have global timestamp ON for that script to work

/timestamp on



Qui c ka volé mes vidange ?

Link Copied to Clipboard