In a shocking incident, a lawyer was hacked outside the court premises in Hosur in Tamil Nadu on Wednesday.