simulating an attack