The development of a medication to treat cocaine addiction specifically by lessening withdrawal symptoms has been a primary focus of research. Common cocaine withdrawal symptoms include depression, lack of energy, and poor concentration. Modafinil, a central nervous system stimulant, is a medication that can speed up physical and mental processes in the brain. It is currently used to treat narcolepsy, a condition that causes excessive sleepiness. Modafinil enhances mood, increases energy, and improves concentration in people with narcolepsy. Modafinil may also cause the same effects in individuals addicted to cocaine, thereby countering the symptoms of cocaine withdrawal. The purpose of this study is to compare the effectiveness of modafinil plus CBT versus placebo plus CBT for treating cocaine dependence.