Attacking custom protocols