3 ms·
reminds me of people writing IRC bots doing something like: if $line =~ m/!calc (.*)$/ { return eval $1; } which is about the worst possible w
by shabble 10y ago
reminds me of people writing IRC bots doing something like:
if $line =~ m/!calc (.*)$/ {
return eval $1;
}
which is about the worst possible way you can easily write a calculator :P
In fact, irc bot/script writing is a great place to learn about security and generally distrust of the rest of humanity.
Even things like the pathological regex backtracking DoS from the other day turn up fairly regularly with popular bots.
- MaulingMonkey 10y agoIn some programming IRC channels I've seen similar done intentionally. On the plus side, they were sandboxed. On the minus side, the sandbox didn't prevent playing sounds on their locally hosted machine... needless to say, there was a lot of beeping.