A German court has sentenced a 31-year-old Pakistani to four years and three months in prison for spying for Iran by seeking out possible Jewish and Israeli-related targets for attacks in Germany and France.

The German news agency dpa reported Tuesday that Haider Syed Mustafa was convicted by a Berlin court for collecting extensive material on the former head of the German-Israeli Association and on a French-Israeli professor from an economic university in Paris, for the elite Quds Force unit of Iran's Revolutionary Guard. No attacks were carried out.

Mustafa, who came to Germany in 2012 to study for an engineering degree at the University of Bremen, received more than 2,000 euros (2,170 dollars) for his spying activities which included shooting hundreds of photos and creating presentations on the potential targets. He refused to testify during the trial.