Jump to content
Romania-

Python CCleaner V 0.2!

Recommended Posts

Posted

* Deleting all temp files

* Chrome caches & history

* More faster than ccleaner Oui

#!/usr/bin/python
# -*- coding: utf-8 -*-

import os
import threading
import platform
import shutil

#Coding by B3mB4m
#b3mb4m@gmail.com
#Tested on XP SP3

def temp():
klasor = "C:\\DOCUME~1\\"+platform.node()+"\\LOCALS~1\\Temp\\"
for i in os.listdir(klasor):
dosya = os.path.join(klasor,i)
#Temp dosyalar?n? s?f?rla
if os.path.isfile(dosya):
try:
os.remove(klasor+i)
print "[+]Removed File " + i
except:
pass
elif os.path.isdir(dosya):
try:
shutil.rmtree(klasor+i)
print '[+] Removed Folder ' + i
except:
pass
def chrome():
#Cache(önbellek) dosyalar?n? temizle
klasor = "C:\\Documents and Settings\\"+platform.node()+"\\Local Settings\\Application Data\\Google\\Chrome\\User Data\\Default\\Cache\\"
klasor2 = "C:\\Documents and Settings\\"+platform.node()+"\\Local Settings\\Application Data\\Google\\Chrome\\User Data\\Default\\Local Storage\\"
klasor3 = "C:\\Documents and Settings\\"+platform.node()+"\\Local Settings\\Application Data\\Google\\Chrome\\User Data\\Default\\Media Cache\\"
klasor4 = "C:\\Documents and Settings\\"+platform.node()+"\\Local Settings\\Application Data\\Google\\Chrome\\User Data\\Default\\"

for i in os.listdir(klasor):
dosya = os.path.join(klasor,i)
if os.path.isfile(dosya):
try:
os.remove(klasor+i)
print "[+] Chrome Cache File Deleted " + i
except:
pass

#Yerel Depolama (Local Storage) dosyalar?n? temizle
for i in os.listdir(klasor2):
dosya = os.path.join(klasor2,i)
if os.path.isfile(dosya):
try:
os.remove(klasor2+i)
print "[+] Chrome Local Strage File Deleted " + i
except:
pass
#Media Cache(önbellek) dosyalar?n? temizle
for i in os.listdir(klasor3):
dosya = os.path.join(klasor3,i)
if os.path.isfile(dosya):
try:
os.remove(klasor3+i)
print "[+] Chrome Media Cache File Deleted " + i
except:
pass
#?nternet geçmi?i temizle
for i in os.listdir(klasor4):
dosya = os.path.join(klasor4,i)
if os.path.isfile(dosya):
try:
if "Archived History" == i:
os.remove(klasor4+i)
print "[+] Chrome History File Deleted " + i
elif "Current Tabs" == i:
os.remove(klasor4+i)
print "[+] Chrome History File Deleted " + i
elif "History Provider Cache" == i:
os.remove(klasor4+i)
print "[+] Chrome History File Deleted " + i
elif "Last Tabs" == i:
os.remove(klasor4+i)
print "[+] Chrome History File Deleted " + i
elif "Network Action Predictor" == i:
os.remove(klasor4+i)
print "[+] Chrome History File Deleted " + i
elif "Top Sites" == i:
os.remove(klasor4+i)
print "[+] Chrome History File Deleted " + i
elif "Visited Links" == i:
os.remove(klasor4+i)
print "[+] Chrome History File Deleted " + i
except:
pass


temp = threading.Thread(name='temp', target=temp)
chrome = threading.Thread(name='chrome', target=chrome)

temp.run()
chrome.run()

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...