From the looks of it, that is pretty advanced scale rot. There is nothing you can do at home, the snake needs to get to a vet for treatment. If you can't afford to take it in, please find someone who can.
In the mean time, as other people have stated, keep the cage dry and clean. Preferably keep it on paper towel or something easily switched out.
Best of luck.