| View previous topic :: View next topic |
| Author |
Message |
SirDon Voice
Joined: 10 Apr 2006 Posts: 2
|
Posted: Mon Apr 10, 2006 7:26 am Post subject: why this portscan makes my eggdrop laggie |
|
|
Hello
i have tried this script on allmost 13 boxies and this scripts make my eggdrop laggie.here is the code please can somebody help me with this?
| Code: |
putlog "loaded portcheck - Gh0st@Dalnet"
set banports {
1080
3128
8080
6588
7212
32167
}
set checkchans {
#Chan
}
# set bantext "Proxys are not allowed."
# set onjoin "Scanning for open proxies, please discard any warnings on your firewall"
bind join - * prox_join
proc prox_join {nick uhost hand chan} {
global banports checkchans
set bchan [string tolower $chan]
if {[lsearch -exact $checkchans $chan] == -1} {return 1}
set host [lindex [split $uhost @] 1]
foreach a $banports {
catch {socket $host $a} p
if {([string range $p 0 3] == "sock") && ([lindex $p 1] == "")} {
utimer 2 [list prox:t $nick $host $chan $a]
close $p
break
}
}
}
proc prox:t {nick host chan a} {
if {[botisop $chan] && [onchan $nick $chan] && ![isbotnick $nick] && ![isop $nick $chan]} {
putlog "### Kicking $nick on channel $chan for an open port $a"
putserv "NOTICE $nick :You have been kicked due to port $a being open."
pushmode $chan +b *!*@$host
putserv "kick $chan $nick :Open Proxies are not allowed in the channel !"
}
}
|
Regards _________________ SirDon (DALnet) |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Mon Apr 10, 2006 12:03 pm Post subject: |
|
|
because the script is lame
don't use it _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Mon Apr 10, 2006 12:54 pm Post subject: |
|
|
user had posted a long time ago a script that would check for open ports (or something like this, anyway, it could be *updated* to do whatever you wish) without making it block. Check the Search function. _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
|