A bacteriophage typically attaches to the bacterium and then?

Bacteriophage is a virus that attacks bacteria. When bacteriophage typically attaches to the bacterium and then injects nucleic acid into it and then the ghost virus protein stays outside.