A 121st-minute Dejan Ljubicic penalty took Cologne to a 2-1 win over 10-man Hertha Berlin and a spot in the German Cup quarter-finals on Wednesday.