Smartphones infected with Pegasus were essentially turned into pocket spying devices.