:salam:
You can do masah over the infected toes or wrap the infected toes in a bandage and perform masah over the bandage. Rest of the feet should be washed.
Please see:
http://www.inter-islam.org/Actions/P...g%20to%20Wudhu
19. If removal of the ointment from a sore or wound is harmful then it will not be necessary to remove it. If pouring water over the affected part is also harmful then merely make Masah of the affected part.
20. If the wound or sore is bandaged and one will experience difficulty in opening and tying the bandage for Masah purpose, or Masah on the affected part will be harmful, then Masah should be made over the bandage.
21. If this difficulty does not exist, then it will be necessary to open the bandage, plaster, etc., and make Masah on the affected part.