This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

why this portscan makes my eggdrop laggie

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
S
SirDon
Voice
Posts: 2
Joined: Mon Apr 10, 2006 7:14 am

why this portscan makes my eggdrop laggie

Post by SirDon »

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: Select all

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)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

because the script is lame

don't use it
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
Post Reply