Spam Relay (two bots required)
TCL Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Nov 12, 2009 |
| Last Updated | Nov 12, 2009 |
| Tags | ban bot deop op spam |
Introduction
An OP'd bot, a DeOP'd bot.
The OP bot monitors messages from the deop bot, should anyone spam it.
The settings are currently set for the DeOP'd bot to cycle every 5mins.
Both spamcheck and docycle are easily enabled/disabled.
Check scripts for syntax.
TCL Snippet:
Spam Relay (two bots required)
Posted on Nov 13, 2009 1:04 pm
Posted on Nov 13, 2009 1:04 pm
Nice. I like, it i don't know about any one else but i find it handy...
Al tho you could, do it so You Query, the bot, and it does the commands not in a Main, room Because then they'd know you have a Mole :O
Al tho you could, do it so You Query, the bot, and it does the commands not in a Main, room Because then they'd know you have a Mole :O
TCL Snippet:
Spam Relay (two bots required)
Posted on Nov 15, 2009 5:55 am
Posted on Nov 15, 2009 5:55 am
This was taken from another script I posted - http://www.hawkee.com/snippet/3853/
NOTE: This code is only to be used in conjunction with the above script. It requires the global variable pubtrig to set trigger for command.
In the above code I opted to use 3 lines sent from the bot. This can be problematic in large channels, even more so on ones that are affected by constant netsplits.
The logic behind this is simple. Spam drones generally send between 1-3 strings of normal
text before they actually spam.
ie: hi, hw r u (drone)
ie: I am fine, you? (user)
ie: asl? (drone)
ie: what? (user)
ie: For hard sex and lots of ........ visit ....... SPAM!!!!!!!!!!! (drone)
Atleast, I've had this happen a lot with various networks, it seems that sending 3 lines of text always triggers some form of spam result. If it doesn't, they may be clean, but it doesn't always work :(
Anyway, thanks for the comment Cracker200, I hope the above code helps.
NOTE: This code is only to be used in conjunction with the above script. It requires the global variable pubtrig to set trigger for command.
| Code: |
setudef flag ojcheck # The 'mnobf' flags below stop global users who are added to the bot from being messaged. # The 'mnof' flags below that are channel users who are added. # This means you will NOT get a message, so don't cycle the channel expecting one. Normal Users will get it. set ojglobflags mnobf set ojchanflags mnof bind JOIN - * onjoin:notice # Public Command # Syntax: !onjoin on/off bind pub - ${pubtrig}onjoin onjoin:pub proc onjoin:pub {nick uhost hand chan text} { global botnick if {[matchattr $hand o]} { if {[lindex $text 0] == "on"} { channel set $chan +ojcheck puthelp "PRIVMSG $chan :Enabled Onjoin Message Check for $chan" } if {[lindex $text 0] == "off"} { channel set $chan -ojcheck puthelp "PRIVMSG $chan :Disabled Onjoin Message Check for $chan" } } } # Private Command # Syntax: /msg botnick onjoin #channelname on/off bind msg - onjoin onjoin:msg proc onjoin:msg {nick uhost hand arg} { set chan [strlwr [lindex $arg 0]] if {[matchattr $hand o|m $chan]} { if {[lindex $arg 1] == "on"} { channel set $chan +ojcheck putquick "NOTICE $nick :Enabled Onjoin Message Check for $chan" } if {[lindex $arg 1] == "off"} { channel set $chan -ojcheck putquick "NOTICE $nick :Disabled Onjoin Message Check for $chan" } } } proc onjoin:notice {nick uhost hand chan} { global ojglobflags ojchanflags if {[lsearch -exact [channel info $chan] +ojcheck] != -1} { if {![isbotnick $nick]} { if {![matchattr $hand $ojglobflags|$ojchanflags $chan]} { putserv "PRIVMSG $nick :Hello $nick" putserv "PRIVMSG $nick :I am checking for Infected/SPAM clients/bots!" putserv "PRIVMSG $nick :Please do \002NOT\002 Reply to this Message." } } } return 0 } |
In the above code I opted to use 3 lines sent from the bot. This can be problematic in large channels, even more so on ones that are affected by constant netsplits.
The logic behind this is simple. Spam drones generally send between 1-3 strings of normal
text before they actually spam.
ie: hi, hw r u (drone)
ie: I am fine, you? (user)
ie: asl? (drone)
ie: what? (user)
ie: For hard sex and lots of ........ visit ....... SPAM!!!!!!!!!!! (drone)
Atleast, I've had this happen a lot with various networks, it seems that sending 3 lines of text always triggers some form of spam result. If it doesn't, they may be clean, but it doesn't always work :(
Anyway, thanks for the comment Cracker200, I hope the above code helps.




