Hi, just tore up a leaking second floor toilet (house was built in 1958). Everything rusted and floor damage noted. I understand that I have to replace area of rot. The existing toilet plumbing is some sort of material that is shapable, grey/tan in color and was obviously leaking terribly. The previous owner had attempted to repair it and made a whole flange out of plumbers putty and caulking. My problem is that it has no visible way to attach any further flange or pipes except shaping it to round and clamping some sort of pipe on. It seems to be roughly 4" in diameter.
What is this plumbing material and how best do I attach pipe/flange to it?? What is my best attack.