To grind the paint from the underside of the toerail, I used an electric drill with various wire wheel and wire brush attachments.

No way to get any type of sander up there.

Have fun.