The source code for this is on Github: https://github.com/substack/virus-copter
I don't know whats running on the actual drones, but it wouldn't surprise me at all to find there's well known exploits against something like QNX or VxWorks (or, and I shudder at this thought, Windows CE) that the drones are vulnerable to whilst in-flight…
[1]http://arstechnica.com/tech-policy/2009/12/predator-drones-u... [2] http://nakedsecurity.sophos.com/2011/10/10/malware-compromis...
The symptoms of infection should be obvious:
var actions = [
function () { up(Math.random() * 2 - 1) },
function () { left(Math.random() * 2 - 1) },
function () { turn(Math.random() * 2 - 1) },
];
actions[Math.floor(Math.random() * actions.length)]();