Notorious underworld don Aftab Ansari has confessed to the police that he got training in terrorist and subversive activities in Pakistan. He also had close links with heads of some terrorist outfits.