Whenever Crypt Cobra attacks and isn't blocked, defending player gets a poison counter. (A player with ten or more poison counters loses the game.)
10/4/2004 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.
4/15/2013 An ability that triggers when something “attacks and isn’t blocked” triggers in the declare blockers step after blockers are declared if (1) that creature is attacking and (2) no creatures are declared to block it. It will trigger even if that creature was put onto the battlefield attacking rather than having been declared as an attacker in the declare attackers step.