- Home»
- Cod sursa: OnJoinSend.tcl
OnJoinSend.tcl
OnJoinSend.tcl
Simple *.exe, *.ini, *.vbs, *.bat virus detecter written for eggdrop 1.4.2
| Postat de | Copyright | Categorie | Review user | Vizualizari | Data |
|---|---|---|---|---|---|
| btc | Stratsi | protections | Cod netestat | 484 | 2023-12-24 22:54:34 |
# Simple *.exe, *.ini, *.vbs, *.bat virus detecter by Stratsi@DalNet
# Written for eggdrop 1.4.2
set bantime 20
set cycletime 10
set msg_user 1
timer $cycletime cycle
proc cycle {} {
global cycletime
foreach c [channels] {
putserv "PART $c"; putserv "JOIN $c"; timer $cycletime cycle
}
}
bind ctcp - DCC got_dcc
proc got_dcc {nick uhost handle dest key arg} {
global gobtnick bantime msg_user cycletime
set filename [string tolower [lindex $arg 1]]
if {[string match "*.exe" $filename] || [string match "*.bat" $filename] || [string match "*.vbs" $filename] || [string match "*.ini" $filename]} {
set host "*!*[string range $uhost [string first "@" $uhost] end]"
utimer 15 [newban $host VirusScan "Infected with $filename virus" $bantime]
foreach c [channels] {
putkick $c $nick "You're infected with $filename virus"
}
if {$msg_user} {putmsg $nick "You're infected with a virus ($filename). For more information please join #nohack or visit http://www.nohack.net"}
}
}
putlog "Virus checker by \002Stratsi\002"
IRC Snippets