BERLIN — Germany has some of the world's strictest gun laws. But that did not stop Friday's Munich attacker — an 18-year old dual Iranian-German national — from carrying out his shooting spree.  The assailant most likely obtained his pistol illegally and did not have a license, German police officials said Saturday. That development could have worrisome implications for a country that has already exhausted most legal means to prevent such shooting sprees.  [Munich officials: Gunman was obsessed with mass killings]  "Germany has a good system of legal gun ownership, but illegal firearms pose a big problem," said Nils Duquet, a weapons expert in Belgium who works for the Flemish Peace Institute. According to Duquet, there are millions of illegal weapons in Europe, but he said it is impossible to know exactly how many.  Following two horrifying school shootings in 2002 and 2009, German lawmakers passed stricter gun legislation that made it harder to legally obtain weapons. Buyers younger than 25 must now pass a psychological exam before being able to acquire firearms in Germany. Shooting incidents significantly dropped as a consequence.  Theoretically, those measures might also have stopped the 18-year-old Munich attacker from being able to buy a gun legally. Officials believe the suspect could have been depressed, and a video — which police have said appears authentic — shows the attacker saying he had gone through "inpatient treatment."  Most mass shootings in Europe that are not associated with international terror groups have been carried out with legally obtained weapons. "The fact that he used an illicit weapon does not imply that he did not also search for ways to obtain one legally, at first," Duquet said.  Duquet also emphasized that the attacker's use of a pistol was significant. "If you want to buy an illegal gun in Europe, what's important is having the right networks. For assault rifles, you need better criminal connections," said Duquet. "But there are many hot spots in Europe where you can try, and that is what's worrying."  The possibility that the 18-year-old acquired his pistol illegally will raise new concerns over the illegal-weapons trade not only in Germany.  Among several other factors, the borderless Schengen Area within the European Union and Europe's proximity to current or former war zones have facilitated illegal-weapons transports into the continent.  An increasing number of terrorist attacks over the past two years were carried out with illegal pistols and semi-automatic rifles from Eastern Europe.  The Balkans pose a particular risk as a source of weapons, where millions of firearms that were used during the region's wars are still believed to be in circulation. Although those weapons are older, they are still being smuggled and later sold in Western Europe.  At least some of the weapons used in the January 2015 shootings in Paris were reportedly purchased legally in Slovakia, according to the Guardian and the Wall Street Journal.  Metal pins were placed in the barrel to render the guns useless, allowing for their sale. But the pins were hammered out illegally after the weapons purchase.  Reactivating a decommissioned weapon usually takes only hours, said Philip Boyce, a British firearms and forensics expert who often analyzes such cases as an expert in court. In an interview earlier this year, Boyce emphasized that continental Europe had long failed to pass stricter laws on the decommissioning of weapons, contrary to Britain.  "The British standards often make it virtually impossible to turn a decommissioned weapon back into an active one," Boyce said.  In Britain the shooting mechanism of guns is usually completely removed in the process. But gun collectors in continental Europe have pressured lawmakers and salesmen to preserve most of the original firearm by not removing the entire shooting mechanism.  Boyce and other experts say the lack of restrictions has mainly helped criminals. Several people have recently stood trial for reactivating such supposedly decommissioned weapons — including in Germany.  Munich officials: Gunman was obsessed with mass killings but had no ties to ISIS
European nations have passed numerous gun laws, but those who want usable weapons and those who are willing to sell them have found workarounds.