mIRC Home    About    Download    Register    News    Help

Print Thread
#121250 25/05/05 12:41 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
i use 1 script, that has nothing of code that causes to block dcc recieve and send, and yet i cant dcc recieve and send...

i looked in adress book and there is nothing there for ignore...

for code i have this:

On *:logon:*: {
if (%dcce == On) { .enable #DCCE }
elseif (%dcce == Off) { .disable #DCCE }
}

#DCCE on
ctcp *:dcc send:*: if ($len($nopath($filename)) >= 225) { .warnecho $nick tried to crash you with an illegal dcc send of $nopath($filename) | halt }
#DCCE end

On *:notice:dcc & *:?: {
if (%dcce == On) { .ignore -xu10 $nick }
}


cause that nasty exploit, but even if i remove this code, i still cant dcc send/recive...

problem is not in ports because i did /remote off and dcc worked, so problem is in script

but yet i searched "ignore" and "dcc" thru whole script
and NOTHING except this up code has been found...

what should i try to do ?


IceCapped
#121251 26/05/05 12:21 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
On *:notice:dcc & *:?: { if (%dcce == On) { .ignore -xu10 $nick } }


This might be the problem, looks like you might have some ignores in your ignore list (or another remote ignoring them on the fly) , that only when someone does a dcc send you temp unignore them, you might ment to have $address in there i dont know.

You should just upgrade to the latest mirc to fix that problem.

#121252 26/05/05 05:13 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
okay, i unloaded script by script and it seems that in my
"ctcp protection" lies problem

this is full script:

Code:
 
;------------------------------------------------
;          CTCP Protection
;------------------------------------------------
;

alias ctcpecho { tokenize 32 $1- | .echo -se  $+ $color(CTCP text) $+ $timestamp [CTCP $3 $+ ] requested by $1 ( $+ $2 $+ ) }


CTCP *:*:? {
  if ($1 == VERSION) {
    .ctcpecho $nick $address $1
    halt
  }
  if ($1 == USERINFO) {
    if (%sctcp == On) { goto ctcpend }
    .ctcpreply $nick $1 %cu
    .ctcpecho $nick $address $1
    halt
  }
  if ($1 == PING) {
    if (%sctcp == On) { goto ctcpend }
    .ctcpreply $nick $1 %cp $+ sec
    .ctcpecho $nick $address $1
    halt
  }
  if ($1 == PAGE) {
    if (%sctcp == On) { goto ctcpend }
    .ctcpreply $nick $1 %cpp
    .ctcpecho $nick $address $1
    halt
  }
  if ($1 == TIME) {
    if (%sctcp == On) { goto ctcpend }
    .ctcpreply $nick $1 %cdy %ctm %cyr 
    .ctcpecho $nick $address $1
    halt
  }
  if ($1 == CLIENTINFO) {
    if (%sctcp == On) { goto ctcpend }
    .ctcpreply $nick $1 %ci 
    .ctcpecho $nick $address $1
    halt
  }
  if ($1 == FINGER) {
    if (%sctcp == On) { goto ctcpend }
    .ctcpreply $nick $1 %cf 
    .ctcpecho $nick $address $1
    halt
  }
  :ctcpend
  ctcpecho $nick $address $1
  halt
}

CTCP 1:*:# {
  if ($1 == VERSION) {
    .ctcpecho $nick $address $1
    halt
  }
  if ($1 == USERINFO) {
    if (%sctcp == On) { goto ctcpfin }
    .ctcpreply $nick $1 %cu
    .ctcpecho $nick $address $1
    halt
  }
  if ($1 == PING) {
    if (%sctcp == On) { goto ctcpfin }
    .ctcpreply $nick $1 %cp $+ sec
    .ctcpecho $nick $address $1
    halt
  }
  if ($1 == PAGE) {
    if (%sctcp == On) { goto ctcpfin }
    .ctcpreply $nick $1 %cpp
    .ctcpecho $nick $address $1
    halt
  }
  if ($1 == TIME) {
    if (%sctcp == On) { goto ctcpfin }
    .ctcpreply $nick $1 %cdy %ctm %cyr 
    .ctcpecho $nick $address $1
    halt
  }
  if ($1 == CLIENTINFO) {
    if (%sctcp == On) { goto ctcpfin }
    .ctcpreply $nick $1 %ci 
    .ctcpecho $nick $address $1
    halt
  }
  if ($1 == FINGER) {
    if (%sctcp == On) { goto ctcpfin }
    .ctcpreply $nick $1 %cf 
    .ctcpecho $nick $address $1
    halt
  }
  :ctcpfin
  ctcpecho $nick $address $1
  halt
}
 


things in %variables are custom reply smile

and ctcpecho command only echoes reply and request in red colour in status window

(i tell you thic so no1 has to think what it does) :tongue:

but still there is NO DCC code here confused

any help would be apreciated

Last edited by raZOR; 26/05/05 05:22 AM.

IceCapped
#121253 26/05/05 07:20 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Code:
 
CTCP *:*:? {
  if ($1 == VERSION) {
    ...
    blah blah blah
    ...
  }
  :ctcpend
  ctcpecho $nick $address $1
  [color:blue]halt[/color]
}


In BLUE is the beasty, its becuase even tho u used the NON ^ version of CTCP a /HALT in it jams up the DCC RECIEVE, so either remove the halt or add in a detect for DCC SEND and dont halt that!

#121254 26/05/05 03:32 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
heee
it works !!!!
thank you
thank you !!!!!

laugh laugh laugh

im so happy now !!!


IceCapped

Link Copied to Clipboard