Outcome measures: The primary outcome measure will be cocaine craving assessed by 100-mm visual analog scales before and after every TMS treatment and at one- and two week follow-up. Secondary outcome measures will be the 14-item Cocaine Craving Questionnaire, self-reported cocaine use, and urine drug testing at each rTMS session and follow-up visit, and changes in regional brain responses to cocaine-associated visual cues assessed by fMRI done before and after the 5 rTMS sessions.