A man previously convicted of shooting at police fired randomly at passing cars outside Boston, wounding two people.