Neither Iraq nor Afghanistan ever even remotely supported any attack on any other country.
The US simply was lying.
There were no WMD in Iraq, and the Taliban were not in on secret crimes by bin Laden.
Again, we LIED!
BULLSHIT. SADDAM's Iraq invaded and attacked, unprovoked, four different countries. They invaded Iran in 1980. Invaded and annexed Kuwait in August 1990. Invaded and attacked Saudi Arabia in February 1991, attacked Israel in February 1991!
NO ONE LIED, Iraq did have WMD that had not been dismantled from the 1980s still in their possession. Over 10,000 artillery shells with various chemicals have been found in Iraq since 2003. While they may be old, and were filled with such chemicals before 1991, IRAQ WAS NOT ALLOWED TO HAVE THEM!
IRAQ was also guilty of violating 17 UN Security Council Resolutions passed under Chapter VII rules of the United Nations, were violating the sanctions and embargo regime, collecting Billion dollars in illegal black market sales of oil, which were allowing SADDAM's regime to rebuild is prior military capabilities both conventional and unconventional.
As for the TALIBAN, they are more intertwined today with Al Qaeda than they were back in the 1990s do to 20 years of continued relationships now sealed with marriages and offspring. Al Qaeda now has a presence in 15 out of 34 Afghan provinces.
When it comes to the Taliban and 9/11, even the late Mullah Omar, prior leader of the Taliban admits they supported Al Qaeda! They facilitated the training camps, and supplied weapons, food, lodging, fighters etc.
I suppose you would find no fault with a person who used their house to allow individuals to gang rape members of your family. Anyone who did that under American law would be guilty. The fact that they did not do any of the raping would not matter. They facilitated it and let it happen.