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 

AllProtection.tcl (Stable: v4.8 / Beta: v4.9b4)
Goto page Previous  1, 2, 3 ... 72, 73, 74 ... 88, 89, 90  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Nov 15, 2009 11:21 am    Post subject: Reply with quote

Make sure the password is correct (and without <>). Also, you can try something like
Code:
putdcc $idx "privmsg nickserv@services.dal.net :identify $antispam(cnick) password"

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sun Nov 15, 2009 2:10 pm    Post subject: Reply with quote

Sir_Fz wrote:
willyw wrote:
Excellent!
Which settings, and I will copy them here.
See.... I thought I had them all set off. ....I must be missing something.


Thanks

Everything under
Code:
###########################
#   PRIVATE PROTECTIONS   #
###########################

is related to private floods.


That's what I thought... and I thought I had them all off, like this:

Code:

###########################
#   PRIVATE PROTECTIONS   #
###########################

# Set here if you want the bot to set a restriction mode on itself when flooded.
# example: +R is used on DALnet so only registered users can send to the bot.
# set this to "" if you don't wish to change your bot's modes during a flood.
# NOTE: Maximum 1 mode, less or more means it's disabled.
###set apfp(rmode) R
set apfp(rmode) ""

# Set here the time you want to keep the restriction mode in seconds.
###set apfp(rtime) 30
set apfp(rtime) 5

# How many seconds do you want to stop answering data from server?
##set apfp(itime) 45
set apfp(itime) 5

#
## 1 ## Private text floods.
#

# Private text (lines) flood <lines>:<seconds>. (0:0 to disable)
###set ptextl(punish) 12:6
set ptextl(punish) 0:0


# Private text (chars) flood <chars>:<seconds>. (0:0 to disable)
###set ptextc(punish) 750:6
set ptextc(punish) 0:0


#
## 2 ## Private notice floods.
#

###set pnotil(punish) 6:3
set pnotil(punish) 0:0



###set pnotic(punish) 600:4
set pnotic(punish) 0:0


#
## 3 ## Private CTCP/CTCR flood.
#

###set pctcpf(punish) 4:20
set pctcpf(punish) 0:0




# Configurations end here. #


Yet it was still doing it.

What do you think?

Thanks




also, from previous post:
Quote:

Quote:


Just make sure you set a password to that user.



What is the significance of setting a pw?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Nov 15, 2009 6:53 pm    Post subject: Reply with quote

Make sure you .rehashed after changing these settings (since they're not dynamic).

About the password advice, just an extra security measure to prevent accessing the partyline (although afaik it's not possible to access the partyline without a password).
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sun Nov 15, 2009 7:31 pm    Post subject: Reply with quote

Sir_Fz wrote:
Make sure you .rehashed after changing these settings (since they're not dynamic).


Bot has been restarted and rehashed plenty of times, since these changes were made... that's why I was surprised to see it do what I reported.

What do you make of it?



Quote:

About the password advice, just an extra security measure to prevent accessing the partyline (although afaik it's not possible to access the partyline without a password).


Ok. Didn't know if there might be something new to me there.
Thanks.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Nov 15, 2009 7:54 pm    Post subject: Reply with quote

willyw wrote:
Sir_Fz wrote:
Make sure you .rehashed after changing these settings (since they're not dynamic).


Bot has been restarted and rehashed plenty of times, since these changes were made... that's why I was surprised to see it do what I reported.

What do you make of it?

I checked the code, I'm pretty sure that when the settings are set to 0:0 the script definitely won't react to private floods. Did this happen again after the restart?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sun Nov 15, 2009 9:39 pm    Post subject: Reply with quote

Sir_Fz wrote:
willyw wrote:
Sir_Fz wrote:
Make sure you .rehashed after changing these settings (since they're not dynamic).


Bot has been restarted and rehashed plenty of times, since these changes were made... that's why I was surprised to see it do what I reported.

What do you make of it?

I checked the code, I'm pretty sure that when the settings are set to 0:0 the script definitely won't react to private floods. Did this happen again after the restart?


??

Yes
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Nov 16, 2009 6:56 pm    Post subject: Reply with quote

Would you mind pasting the content of procedure [pnotc]?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Jade
Voice


Joined: 28 Oct 2009
Posts: 8

PostPosted: Tue Nov 17, 2009 1:23 am    Post subject: Reply with quote

Sir_Fiz

Thanks alot finally the i can identify to my antispam bot nick Smile. This time it worked, i appreciate your quick response over this.

Regards
Jade
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Tue Nov 17, 2009 11:03 am    Post subject: Reply with quote

Sir_Fz wrote:
Would you mind pasting the content of procedure [pnotc]?


Sure thing.

Code:


proc pnotc {nick uhost hand arg dest} {
 variable pnotil; variable pnotic
 foreach {pntll pntls} [split $pnotil(punish) :] {break}
 foreach {pntcl pntcs} [split $pnotic(punish) :] {break}
 if {[isbotnick [lindex [split $dest @] 0]] && ![matchattr $hand fmo]} {

if {($pntll > 0 && [follow $pntls pnotl $pntll] != -1) || ($pntcl > 0 && [follow $pntcs pnotc $pntcl [string length $arg]] != -1)} {

   privl NOTICE
  }
 }
}

Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Nov 17, 2009 5:53 pm    Post subject: Reply with quote

Well there you have it, based on the logic in this procedure it's impossible for the script to trigger protection against private notices if the settings are set to 0:0. If you still wish to debug this, you can try '.tcl array names ::AllProtection::following' when the protection is triggered and paste the output here.

Edit: Fixed mistake [array names] instead of [array list]
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts


Last edited by Sir_Fz on Wed Nov 18, 2009 6:22 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Tue Nov 17, 2009 7:41 pm    Post subject: Reply with quote

Sir_Fz wrote:
Well there you have it, based on the logic in this procedure it's impossible for the script to trigger protection against private notices if the settings are set to 0:0. If you still wish to debug this, you can try '.tcl array list ::AllProtection::following' when the protection is triggered and paste the output here.


[17:24] AP: Private botnet flood detected. Temporarly stopped answering recieved data.
<mynick> .tcl array list ::AllProtection::following
<botnick> Tcl error: bad option "list": must be anymore, donesearch, exists, get, names, nextelement, set, size, startsearch, statistics, or unset
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Nov 18, 2009 6:21 pm    Post subject: Reply with quote

My bad, I meant [array names] and not [array list].
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Thu Nov 19, 2009 9:56 pm    Post subject: Reply with quote

Sir_Fz wrote:
My bad, I meant [array names] and not [array list].



np... Smile



Code:

[19:41] AP: Private botnet flood detected. Temporarly stopped answering recieved data.
<mynick> .tcl array names ::AllProtection::following
<botnick> Tcl: pnotc rpt:6a6373a1a0cc54e39ec1868b58dd23c1 rpt:0b116253df5ad80969c09c62d9cf9d84
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Nov 20, 2009 7:50 pm    Post subject: Reply with quote

willyw, I just tested it on my eggdrop using AllProtection4.6b9 and definitely when pnotil(punish) is set to 0:0 (or any other private flood setting for that matter), the script won't react on any private notice. However, in v4.6b8 that's not the case. Make sure you're using the latest version, that's all I can suggest since I made sure it's working correctly.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Nov 21, 2009 2:06 pm    Post subject: Reply with quote

Sir_Fz wrote:
willyw, I just tested it on my eggdrop using AllProtection4.6b9 and definitely when pnotil(punish) is set to 0:0 (or any other private flood setting for that matter), the script won't react on any private notice. However, in v4.6b8 that's not the case. Make sure you're using the latest version, that's all I can suggest since I made sure it's working correctly.


I seemed to remember you recommended 4.6b9 to me, and that it was some time ago, at that. Found it mentioned here:
http://forum.egghelp.org/viewtopic.php?p=87383#87383


and:
in header of the script in use now, is:
Quote:

#Version : 4.6b9 (BETA 9)
# Released: November 08, 2008
# Source: http://Sir-Fz.blogspot.com


I believe I downloaded from:
http://www.4shared.com/file/77031984/a1e1ddc9/allprotection46b9.html
but it has been a while.

Whatever modifications to it, have been as per your instructions in this thread.
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
Goto page Previous  1, 2, 3 ... 72, 73, 74 ... 88, 89, 90  Next
Page 73 of 90

 
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