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.

AllProtection.tcl (Stable: v4.8 / Beta: v4.9b4)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Make sure the password is correct (and without <>). Also, you can try something like

Code: Select all

putdcc $idx "privmsg nickserv@services.dal.net :identify $antispam(cnick) password"
w
willyw
Revered One
Posts: 1200
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

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

###########################
#   PRIVATE PROTECTIONS   #
###########################
is related to private floods.
That's what I thought... and I thought I had them all off, like this:

Code: Select all

###########################
#   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:

Just make sure you set a password to that user.

What is the significance of setting a pw?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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).
w
willyw
Revered One
Posts: 1200
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

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?


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.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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?
w
willyw
Revered One
Posts: 1200
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

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
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Would you mind pasting the content of procedure [pnotc]?
J
Jade
Voice
Posts: 8
Joined: Wed Oct 28, 2009 3:58 am

Post by Jade »

Sir_Fiz

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

Regards
Jade
w
willyw
Revered One
Posts: 1200
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

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

Code: Select all


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
  }
 }
}

User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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]
Last edited by Sir_Fz on Wed Nov 18, 2009 6:22 pm, edited 1 time in total.
w
willyw
Revered One
Posts: 1200
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

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
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

My bad, I meant [array names] and not [array list].
w
willyw
Revered One
Posts: 1200
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

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

np... :)


Code: Select all

[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
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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.
w
willyw
Revered One
Posts: 1200
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

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:
#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/a1 ... n46b9.html
but it has been a while.

Whatever modifications to it, have been as per your instructions in this thread.
Post Reply