egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

why this portscan makes my eggdrop laggie

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
SirDon
Voice


Joined: 10 Apr 2006
Posts: 2

PostPosted: Mon Apr 10, 2006 7:26 am    Post subject: why this portscan makes my eggdrop laggie Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Apr 10, 2006 12:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Mon Apr 10, 2006 12:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber