If you have enough slack on the cables you can try bending them and can sometimes feel a crunchy feeling that might show how far into the cable the corrosion goes.
But I agree, cut off the ends and then keep cutting to get to no corrosion then crimp new ends. You might end up with new cables though. If the cables are long and you have room you could cut back the bad pieces and use something like this to connect the new ends to: https://www.amazon.com/Fastronix-Stainless-Single-Ground-Junction/dp/B01LLZF7DW/ref=sr_1_5?keywords=battery+cable+wiring+stud&qid=1558965480&s=gateway&sr=8-5