(b) Any person who shall knowingly violate paragraph (a) of this subdivision shall be guilty of a misdemeanor and shall be punished by imprisonment not to exceed one year, or by fine not to exceed one thousand dollars, or both such imprisonment and fine, and shall be further subject to a civil penalty in an amount not to exceed five thousand dollars for each occurrence. Such penalty may be recovered in an action brought by the attorney general in any court of competent jurisdiction.
(c) Any waiver entered into in violation of this subdivision shall not be deemed to be binding on any person in military service who executed such waiver.