Most of the myriad militant groups that stage attacks inside Pakistan seek to overthrow the government to establish an Islamic theocracy and impose a stricter interpretation of the religion than is practised in much of the country.