Danks, the 25-year-old younger brother of White Sox pitcher John Danks, came up with two outs in the ninth against Pat Neshek (1-1) and pounded the first pitch he saw deep into the right field stands, handing a walk-off victory to the Chisox.
The blow made a winner of Brett Myers (1-1), who had tossed a scoreless top of the ninth.
Brandon Moss launched a two-run homer for Oakland.
Boston schools pull out free condoms over wrapping complaints
Millions of Getty images now available for free via embed tool