Pakistan was prepared to allow a surge in US boots on the ground and promised to find Taliban and al-Qaeda leaders in exchange for helping oust two generals amid coup fears, according to witness testimony in a case that could bring down the government.