Skip to content

Instantly share code, notes, and snippets.

@Inndy
Created December 12, 2014 06:49
Show Gist options
  • Select an option

  • Save Inndy/842d76d39b5141b571e2 to your computer and use it in GitHub Desktop.

Select an option

Save Inndy/842d76d39b5141b571e2 to your computer and use it in GitHub Desktop.
Feel cold? Make your mac warm!
import os, signal
child = []
def child_burning():
i = 123.456
while True:
i = i * 12.34 + 56.78
i %= 345.678
for i in range(8):
pid = os.fork()
if pid:
child.append(pid)
print("[+] child pid: %d" % pid)
else:
child_burning()
try:
while True:
pass
except KeyboardInterrupt:
for pid in child:
os.kill(pid, signal.SIGKILL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment