Both countries , they pointed out , have political forces seeking to undermine their respective United States-allied heads of state : the Taliban against President Hamid Karzai in Afghanistan , the religious right against the self-described moderate , General Musharraf , in Pakistan .