Krazy Kat has some excellent suggestions. I have only a couple of ideas to add....
1. Once Peanut attacks, stand perfectly still. Don't try to pull away the hand (or other body part) that she is biting. If you try to pull away, this will trigger the "prey" cues in her brain and she will attack even harder. So, stay still and use your free hand to pull her off (as Krazy Kat suggested).
2. Immediately after an attack, put her in a quiet room (the bathroom) for no more than five minutes. This will give her time to settle down and for attack mode to turn off.
3. Pay careful attention to her behavior. Learn what her pre-attack behaviors are. All cats do something right before attacking, like twitching their tails or their eyes dilate. Each cat has its own unique signals, so you will have to learn Peanut's signals.
4. Once you have learned her pre-attack signals, IMMEDIATELY upon seeing a signal and BEFORE the attack occurs, do one of the following:
-- toss a small toy in front of her. Toss the toy at an angle across her field of vision but at an angle so that it is going away from her...like the way a mouse would run...toward a wall away from the cat. Cat's brains don't perceive verticle movement very well, so it needs to be tossed across the floor.
-- or use another toy to distract her (never play with her with your hands or feet...always use a toy)
-- or Shout NO! and squirt her with water
-- or shout NO! and pick her up and put her in the bathroom
The main idea is to keep the attack from happening. It won't take too long before she realizes that she can no longer do this.
Good luck with your naughty girl! And let us know how it is going.