A quarter-tonne snake that was found nestling on a building site could be the longest ever captured in Malaysia, officials said on Tuesday.