Yes, it's possible. Here's a short script I made:
- On *:logon:*:{
.debug -i nul xploit
}
alias xploit {
if $regex($1,/^<- :[/b](\S+)!\S+@\S+ privmsg (\S+) :\x01dcc (?:send|resume|accept) +\S*"(?:\S* ){35}/i) {
var %nick = $regml(1), %target = $regml(2)
echo 4 -at > Possible DCC Exploit by %nick on %target
}
}
Below the /echo line you can add your kickban commands, for example: /ban -k %target %nick 2 <kick msg>
Another script was made by Olathe and can be found
here.