Attack moves are used to get past a defender when they are on a close out and are scrambling toward the offensive player with the ball. Their momentum is carrying them away from the basket, making them vulnerable to an aggressive move toward the basket.
The shot fake is best used when a defender is closing out but is squared up, often after an inside-out-pass from the post or a drive and kick. The goal is to get the defender to lift up or leave their feet so that you can get past them with one dribble.
The keys to a great shot fake are keeping your eye on the rim, lifting the ball to eye level while dropping your hips. Basically, you need to simulate the actual shooting motion you would use. However, a shot fake will only work if the defender respects your shot. If you can’t shoot well, and the defender knows it, the shot fake will be ineffective.