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 

Modification of antiproxy.tcl

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Fri Nov 30, 2007 9:35 pm    Post subject: Modification of antiproxy.tcl Reply with quote

Hi all

I use antiproxy.tcl, done by metroid, and i m happy with it. But the proxy database it checks online arent that accurate, resulting of banning some innocent people. I request help for adding an exemption list. In this list we can have hotmasks like :

*!*@*.users.undernet.org
*!*@41.2??.*
*!*@*.ca
*!*@196.2*
etc, all kind of hostmasks

I think this is the proc to modify to check if the adress is the exemption list :
Code:
proc proxy::checkuser {nickname hostname handle channel} {
 checkstats $channel
 if {[channel get $channel antiproxy] && [botisop $channel] && ![string match *users.quakenet.org* $hostname] && ![matchattr $handle fomn|fomn $channel] && ![isbotnick $nickname]} {
  channel set $channel antijoins "[expr [channel get $channel antijoins] + 1]"
  regexp {.*\@(.*)} $hostname -> hostname
  if [regexp {[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$} $hostname] {
   [namespace current]::check $hostname $hostname 1 $nickname $hostname $channel 
  } else {
   dnslookup $hostname [namespace current]::check $nickname $hostname $channel
  }
 }
}

and the second line particulary :
Code:
![string match *users.undernet.org* $hostname]

You can find the complete script here : http://forum.egghelp.org/viewtopic.php?t=9978&start=0
It s the one with the nice ASCII art Smile


Last edited by Zircon on Fri Dec 14, 2007 6:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Dec 01, 2007 2:55 am    Post subject: Reply with quote

![matchattr $handle fomn
![string match *users.quakenet.org* $hostname]

The script exempts people in the bot's user list with the flags fomn, and exempts users logged in (using a usermask of *!*@*users.quakenet.org)

You can change that to *users.undernet.org to get the same result for people logged in by X on undernet.

So....if you want to exempt people, add them to yer bot userlist and give them the appropriate flag.
Back to top
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Sat Dec 01, 2007 4:21 am    Post subject: Reply with quote

Thanks for the reply. Yup, from the first beginnig of using this script months ago, i changed quakenet.org to undernet.org, and fomn to vgfomn to exepmt more people from being considered as proxies. But i have a big quizz channel, and the script ban many many of the players, due to the inaccuracy of the databases, and i cannot add all of them one by one to the userlist. Also, i cannot create just one user, and add it all the hosts i want to exempt, coz the quizz will then consider them as the same players, and it s gonna be a mess with the scores. So, adding an exemption list to this script, is the best way to do it in my humble opinion.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Dec 01, 2007 7:12 pm    Post subject: Reply with quote

Moved to Script Support & Releases.

Contacting the author (metroid) re improvements may also be of benefit.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Sat Dec 01, 2007 9:39 pm    Post subject: Reply with quote

Yup, i started by contacting the author, but he has no time right now, and he agreed about posting here to request for modifying his script.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Dec 01, 2007 10:03 pm    Post subject: Reply with quote

Zircon wrote:
Yup, i started by contacting the author, but he has no time right now, and he agreed about posting here to request for modifying his script.

Excellent Wink
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Sun Dec 02, 2007 3:17 am    Post subject: Reply with quote

Quote:
Excellent Wink

Yeah, and if someone can help me, it will be perfect Very Happy
Back to top
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Thu Dec 06, 2007 4:32 pm    Post subject: Reply with quote

No idea ?
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Dec 06, 2007 8:19 pm    Post subject: Reply with quote

My suggestion would be simply don't use that script & proxy database if it's that poorly maintained. There are other scripts that use RBL's and there are other RBL's that are kept updated. Collateral damage is just part of the blacklisting game, so you either deal with it on a one-by-one basis, or you accept that some innocent people will be inadvertantly banned.
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 Support & Releases 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