When judgment shall be rendered against any corporation, all its property, real and personal, and its franchise shall be liable to be seized and sold in satisfaction thereof; and the sale shall vest the title to the franchise in the purchaser, with all privileges and immunities; and the officer making the sale shall immediately put him in possession; and the purchaser may recover any penalties imposed for injuries to the franchise, and shall also discharge all the duties imposed by the charter on the corporate body, and be liable to like penalties as the original stockholders which may accrue after his purchase of the franchise.