>>9570658The parts I used were:
Technic, Axle 1L with Tow Ball
Item No: 2736
https://www.bricklink.com/v2/catalog/catalogitem.page?P=2736&name=Technic,%20Axle%20%201L%20with%20Tow%20Ball&category=%5BTechnic,%20Axle%5D#T=Pand
Plate, Modified 1 x 2 with Small Tow Ball Socket on Side
Item No: 14704
https://www.bricklink.com/v2/catalog/catalogitem.page?P=14704&name=Plate,%20Modified%201%20x%202%20with%20Small%20Tow%20Ball%20Socket%20on%20Side&category=%5BPlate,%20Modified%5D#T=PThe foot and leg unscrew really easily.
The original socket comes right out. The lego socket must be cut from the plate part, and the outer sides of the walls of the socket must be cut/sanded to fit it into the space of the foot. Then glue the new socket to one of the foot halves. I chose the outer halves, but I think it only matters that you make it symmetrical.
I may not have done the part on the shin the best way, but I cut off the remains of the original ball peg. I trimmed some of the axle off the lego ball part, and cut a cross shape into the shin while sanding down the width of the axle until I had a hole big enough and an axle small enough to fit together. I glued the lego part to the shin and can not open the leg to show the inside.