Code:
#!/usr/bin/env python
import platform
import os
import shutil
import sys
class SYS:
def deleteing(self):
self.sis = platform.system()
#self.nod = platform.node()
if ‘Windows’ in self.sis:
go = os.path.expanduser(‘~’)+”\\AppData\\Local\\Temp\\”
for g in os.listdir(go):
maxx = os.path.join(go, g)
if os.path.isfile(maxx):
try:
delefile = os.remove(go+g)
print “Deteled File: %s” % g
print “”
except Exception,e:
pass
elif os.path.isdir(go):
try:
deledir = shutil.rmtree(go+g)
print “Deleted Folders: %s” % g
print “”
except Exception, e:
pass
def chrome(self):
c1 = os.path.expanduser(“~”)+”\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Cache\\”
c2 = os.path.expanduser(“~”)+”\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Local Storage\\”
c3 = os.path.expanduser(“~”)+”\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Media Cache\\”
for chrom1 in os.listdir(c1):
say = os.path.join(c1, chrom1)
if os.path.isfile(say):
try:
chdel = os.remove(c1 + chrom1)
print “Deleted Files: %s” % chrom1
print “”
except Exception, e:
pass
for chrom2 in os.listdir(c2):
say2 = os.path.join(c2, chrom2)
if os.path.isfile(say2):
try:
chde2 = os.remove(c2+chrom2)
print “Deleted Files: %s” %chrom2
print “”
except:
pass
for chrom3 in os.listdir(c3):
say3 = os.path.join(c3, chrom3)
if os.path.isfile(say3):
try:
chde3 = os.remove(c3+chrom3)
print “Deleted File: %s” % chrom3
print “”
except:
pass
def clean():
if os.name == “nt”:
os.system(‘cls’)
else:
os.system(“clear”)
banner = “”” Ne0-h4ck3r
___ ___ _ __ __ __ ___
/ __/ __| |___ __ _ _ _ ___ _ _ \ \ / / / \ |_ )
| (_| (__| / -_) _` | ‘ \/ -_) ‘_| \ V / | () | / /
\___\___|_\___\__,_|_||_\___|_| \_/ \__(_)___|
www.blackcoder.info
“””
print banner
exit = platform.system()
if ‘Linux’ in exit:
print “”
print “This Script will work Windows Only ”
print “Have A Good Day ”
print “”
sys.exit(1)
if __name__ == “__main__”:
clean()
SYS().deleteing()
SYS().chrome()