Text (MI+errata): 3/3. ; Whenever ~this~ attacks and isn't blocked, defending player gets a poison counter. [Oracle 1999/09/03]
The player gets a poison counter as a triggered ability on not blocking the Cobra. Killing the Cobra after declaring blockers or preventing its damage will not prevent the poison counter. [D'Angelo 1999/07/01]