Summarizing the effects of the demons, Rava said: The crowding at the kalla, the gatherings for Torah study during Elul and Adar, is from the demons; those knees that are fatigued even though one did not exert himself is from the demons; those clothes of the Sages that wear out, despite the fact that they do not engage in physical labor, is from friction with the demons; those feet that are in pain is from the demons.
Because fear of demons in bathrooms was common, the Gemara relates: Abaye’s mother raised a lamb to accompany him to the bathroom. The Gemara objects: She should have raised a goat for him. The Gemara responds: A goat could be interchanged with a goat-demon. Since both the demon and the goat are called sa’ir, they were afraid to bring a goat to a place frequented by demons.
This is what our sages (Chagigah 16) meant when they said that we have been told of six features possessed by these demons to help us identify them. In three respects they are like human beings, whereas in another three respects they are like angels, i.e. disembodied creatures. These demons have wings, can fly, and have foreknowledge of future events just like the angels.
There is also a story in the Zohar that Solomon dispatched one of the demons to king Chirom while the latter was in bed. This demon took king Chirom well into the depths of purgatory until he expressed his willingness to submit to the rule of king Solomon. This is what is meant in Kings I 5,26: "The Lord had given Solomon wisdom as He had promised him. There was peace between Chirom and Solomon and the two of them made a treaty." When the two women Lilith and Machalat heard this, they also submitted to Solomon and even prostrated themselves before him. This is the meaning of Kings I 3,16 that "then two prostitutes came and stood before the king". The verse emphasises the arrival of these two women by stating אז תבאנה, "then they came," as if to state that until then they were not prepared to come and to submit to Solomon.
One who encounters witches should say this incantation: Hot feces in torn date baskets in your mouth, witches; may your hairs fall out; your crumbs scatter; your spices should scatter; the wind should carry away the fresh saffron that you witches hold.