Though you are not entirely wrong. I think the biggest beneficiary has been Pakistan. Aid, military hardware, transit costs a seat at the high table of war against terror (biggest irony) & what not.
It could've been even bigger had your military not dabbled with both (Good Taliban, Bad Taliban, Haqqani, Osama etc etc) & coalition forces.
Using the Jihadi's as strategic assets has cost your country a lot. Innocent lives, good & updated hardware, a firm backer like US. You've literally driven away US from your fold. You could've milked the situation even more.
Now quite as a expected you are cozying up to China. The next presumable super power. But, China won't give you stuff like Uncle Sam did.
I have a distinct feeling your relationship will end up similarly.