attack psuedocode