After 42 years of absolute power in Libya, Moammar Khadafy spent his last days hovering between defiance, anger and delusion, surviving on rice and pasta his guards scrounged from the emptied civilian houses he moved between every few days, according to a senior security official captured with him.