The first is through editing the database file that contains the voting totals.
Another hacking technique was demonstrated through hacking the actual computer code used in the Diebold Accu-Vote memory cards.