Section 3. If an officer in the execution of a search warrant finds property or articles therein described, he shall seize and safely keep them, under the direction of the court or justice, so long as necessary to permit them to be produced or used as evidence in any trial. As soon as may be, thereafter, all property seized under clause First of section one shall be restored to the owners thereof; and all other property seized in execution of a search warrant shall be disposed of as the court or justice orders and may be forfeited and either sold or destroyed, as the public interest requires, in the discretion of the court or justice, except:
(a) Diseased animals or carcasses thereof, or any tainted, diseased, corrupt, decayed or unwholesome meat, fish, vegetables, produce, fruit or provisions of any kind, or the meat of any calf killed when less than two weeks old, or any product thereof kept or concealed with intent to kill, sell or offer the same for sale for food, shall be destroyed or disposed of in accordance with section one hundred and forty-six of chapter ninety-four by the board of health or by an officer designated by the court or justice; and diseased animals found to have been kept or concealed in a particular building, place or enclosure shall be destroyed or disposed of by the division of animal health and department of food and agriculture without compensation to the owners thereof.
(b) Rifles, shotguns, pistols, knives or other dangerous weapons which have been found to have been kept, concealed or used unlawfully or for an unlawful purpose shall be forfeited to the commonwealth and delivered forthwith to the colonel of the state police for destruction or preservation in the discretion of the colonel of the state police.
(c) Money seized under clause Third of section one shall be forfeited and paid over to the state treasurer.
(d) Any property, including money seized under section one, the forfeiture and disposition of which is specified in any general or special law shall be disposed of in accordance therewith.