Sulfates are chemicals that combine the oil and water aspect of your shampoo. It's an emulsifier, a foaming agent, and pretty much the 'detergent' that cleans your hair. Trust us when we say detergents. That's how harsh these chemicals are when applied to your hair.
Ketoconazole is an antifungal agent which came into medical use in 1981. It is an imidazole compound and like other antifungals of this group, has a wide spectrum of use. It not only comes in the form of oral medicine but is also available in creams, gels and shampoo formulations.