Attack is a fairly advanced topic. For advanced players, there are books like Alexander Kotov and Paul Keres' Art of the Middlegame, Attack with Mikhail Tal and Larry Christiansen's Rocking the Ramparts, all of which are quite insightful.
If you just want a book on checkmate patterns, there are Murray Chandler's How to Beat Your Dad at Chess, George Renaud and Victor Kahn's The Art of the Checkmate and John Nunn's 1001 Deadly Checkmates.
By the way, if I remember correctly, 1 e4 e5 2 Nf3 Nc6 3 Bc4 Nd4 4 Nxe5 Qg5 5 Nxf7 Qxg2 6 Rf1 Qxe4+ 7 Be2 Nf6# is a famous trap. Tempting as it might be, it is probably not a good idea to go for such things.