Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
An0nX authored Jun 7, 2022
1 parent 280a1e9 commit 546bf3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions UPX Soft Global.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def banner():

i = 0
for drive in GetLogicalDriveStrings().split('\000')[:-1]:
if f'{os.getenv("SystemDrive")}' in drive:
continue
sleep(drv)
for root, _, _ in walk(drive):
sleep(fol)
Expand All @@ -38,8 +40,6 @@ def banner():
soft = glob.glob(targetPattern)
if soft == list():
continue
if f'{os.getenv("SystemDrive")}' in root:
continue
i += 1
ctypes.windll.kernel32.SetConsoleTitleW(f'Folders found: {i}')
for j in soft:
Expand All @@ -49,4 +49,4 @@ def banner():
ctypes.windll.kernel32.SetConsoleTitleW(f'Working with {j}')
os.system(f'upx --best "{j}"')
clean()
banner()
banner()
14 changes: 8 additions & 6 deletions UPX Soft Target.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from os import walk
from time import sleep
import ctypes
from win32api import GetLogicalDriveStrings
from colorama import Fore
from config import *

Expand All @@ -25,7 +26,7 @@ def banner():
)
banner()

print(Fore.GREEN + 'Введите путь до папки, до программы или имя диска (Пример: D:\\\): ')
print(Fore.GREEN + 'Введите путь до папки, до программы или имя диска (Пример: D:\\): ')
path = input()
i = 0
for root, _, _ in walk(path):
Expand All @@ -36,15 +37,16 @@ def banner():
soft = glob.glob(targetPattern)
if soft == list():
continue
if f'{os.getenv("SystemDrive")}\\Windows' in root:
continue
if f'{os.getenv("SystemDrive")}' in root:
print(Fore.RED + 'Использование программы на системном диске невозможно')
break
i += 1
ctypes.windll.kernel32.SetConsoleTitleW(f'title Folders found: {i}')
ctypes.windll.kernel32.SetConsoleTitleW(f'Folders found: {i}')
for j in soft:
clean()
banner()
print(Fore.GREEN + '')
ctypes.windll.kernel32.SetConsoleTitleW(f'title Working with {j}')
ctypes.windll.kernel32.SetConsoleTitleW(f'Working with {j}')
os.system(f'upx --best "{j}"')
clean()
banner()
banner()

0 comments on commit 546bf3f

Please sign in to comment.