Warning: This is 3.0 Edition material. It is possible that there is more recent 3.5 Edition version.
Inaccurate?

Mindrape

(Book of Vile Darkness)

Enchantment [Evil, Mind-Affecting]
Level: Sorcerer 9, Wizard 9,
Components: V, S,
Casting Time: 1 action
Range: Medium (100 ft. + 10 ft./level)
Target: One creature
Duration: Instantaneous
Saving Throw: Will negates
Spell Resistance: Yes

The caster enters the mind of a creature, learning everything that creature knows.
The caster can erase or add memories as she sees fit and alter emotions, opinions, and even alignment.
When the caster is done, she can leave the creature insane (as described in the insanity spell) or seemingly unaffected, without any memory of the intrusion.
Severe changes to personality and changes to alignment can be corrected by a break enchantment spell (although an atonement spell might be needed as well, depending on circumstances).
Alterations to memories and subtler thoughts can be restored only through use of a miracle or wish.