Are you in a country that you can just walk in and ask for any pharmaceutical you want, with no questions asked?! Cuz, it's not like that here!!
There's really no legal pills that I'd personally take to stay awake....I mean pseudoephedrines a stimulant, guarana, energy drinks, yerba mate....