A person commits the offense of unlawful possession of firearms or weapons when he or she knowingly has in his or her possession any sawed-off shotgun, sawed-off rifle, machine gun, dangerous weapon, or silencer, and, upon conviction thereof, he or she shall be punished by imprisonment for a period of five years.