When bathing before prayer, instead of washing your feet, it is allowed to wipe leather shoes or socks that were worn in the presence of wudu and ghusl (small and large ablutions). To wipe, you need to wet your hand and wipe the surface of the shoe, from the tip of your toes to the ankles, with three fingers.
Leather shoes or socks must be sturdy and free of holes and moisture-proof. If such shoes have holes the size of three little fingers, then wiping them is considered invalid.
For a musafir (traveler), the period of rubbing shoes is three days, and for a mukim (non-traveler) - one day. The countdown begins with the time of the minor desecration.
Abdurahman ibn Abu Bakr narrated from the words of his father that the prophet (peace and blessings be upon him) said: "The time for wiping leather shoes for a traveler is three days and three nights, and for those who are not on the way - one day and one night" (Ibn Hibbana).
If the time for wiping the shoes runs out or it comes off, then it is enough to wash your feet and put them on again if you have ablution.
Do not wipe ordinary rag socks! It is allowed to wipe only leather socks or socks with leather soles. You can buy leather socks for prayer in Muslim shops.
And it is also allowed to wipe a bandage or plaster cast, even if they were not applied in a state of ablution. It is argued that the Prophet (peace and blessings be upon him) was wounded and wiped off the bandage in the battle of Uhud. This was reported by Abu Umama (Tabarani). Rubbing a turban, skullcap and other headgear is not allowed.