Clamp all the brake hoses with brake hose clamps and see if the pedal is solid, if it is remove the clamps 1 at a time testing the pedal each time if the pressure drops you know what corner the problem is on. If pedal is still shite with all hoses clamped it's the master cylinder or a load of air somewhere.