Permethrin works by disrupting the sodium channel current in the nerve cells of insects, leading to paralysis and death. When applied to the skin or hair, it targets the nervous system of parasites like scabies mites and lice, effectively eradicating them. It is considered effective and relatively safe for pediatric use when applied according to guidelines.