I think there's a big difference between being arrested and being considered to be acting rude. There's also a big difference between pointing out a security flaw and continuing to actively exploit it. That's why I said I think it's fine as a code example, and I think it's fine to raise awareness. Just be careful about keeping this around in your main browser while you're chatting with many people; you might be risking trust if they find out.