Is public wi-fi safe? We ‘compromised’ a network to test it