What should I taake for a viral infection?

Not antibiotics. Antibiotics are for treating bacteria and should not be given for viral infections. Some viral diseases can be treated by antivirals, but not all. Your doctor can help you determine the best care for you. And never take medicine that was prescribed to someone else.