I would be very cautious of using a cable that was attached to a leaking battery. Often, the cable itself will also corrode inside the jacket and the damage cannot be seen. Battery cables don't last forever, I recommend changing them. I usually buy an OEM cable from the dealer so that I get the exact length I need, and any branches are already in place.
Some vehicles are tougher than others to change; it depends on how the cable was routed. I have done my Explorer and a S-10 Blazer. Neither was too bad. A Haynes manual should give you a fairly complete step-by-step.
Here is one of mine. There are only four connections, and you can see the length is short. YMMV.
