Within five seconds of applying the magnetic field, 34 out of the 40 worms in the study stopped in place, and 27 of those worms moved backward, as though retreating from a dangerous heat source. The nematodes without magnetic nanoparticles continued to wriggle forward, completely unaffected by the magnetic field.
The ultimate goal is to apply the technology to human physiology. Ion channels are basic components of virtually all living cells. The ability to open and close such channels therapeutically might provide new avenues for cancer chemotherapy and treatment of neurological and endocrine diseases.
Link (with brief video). Publication. Image credit.
But my mind just works like that.
As to whether it's "ethical" to do this to a nematode, that's a whole different question.
And psulli, causing pain remotely is already well within the capabilities of military and civilian riot control personnel. And they don't even need to inject you with nanoparticles.