-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfileSnatcherXD.py
More file actions
47 lines (40 loc) · 1.7 KB
/
fileSnatcherXD.py
File metadata and controls
47 lines (40 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Thanks Gemini for the snatcher code !
import shutil
import time
import os
import stat
from pathlib import Path
# Đường dẫn arm64 bí ẩn của bạn
WATCH_DIR = Path(r"C:\Users\MeowIce\Downloads\HyperTN_V3.2_Zircon_China_OS3.0.5.0.WNOCNXM_A16_20260125\bin\lib\arm64")
SAVE_DIR = Path(r"C:\Users\MeowIce\Downloads\HyperTN_V3.2_Zircon_China_OS3.0.5.0.WNOCNXM_A16_20260125\snatched")
SAVE_DIR.mkdir(exist_ok=True)
def remove_hidden_attrib(file_path):
try:
# Gỡ bỏ các thuộc tính Read-only, Hidden, System
os.chmod(file_path, stat.S_IWRITE)
# Lệnh hệ thống để gỡ triệt để thuộc tính ẩn của Windows
os.system(f'attrib -s -h -r "{file_path}"')
except:
pass
def snatch():
print(f"[*] Snatcher v3.5 đang trực chiến tại: {WATCH_DIR}")
print(f"[*] File sẽ được lưu tại: {SAVE_DIR}")
snatched_files = set()
while True:
try:
for file_path in WATCH_DIR.rglob("*"):
if file_path.is_file() and file_path.name not in snatched_files:
# Tạo tên file kèm timestamp
timestamp = int(time.time())
target = SAVE_DIR / f"{timestamp}_{file_path.name}"
# Copy file
shutil.copy2(file_path, target)
# Ép file phải hiện hình
remove_hidden_attrib(target)
print(f"[!] Đã tóm và 'giải mã' ẩn: {target.name}")
snatched_files.add(file_path.name)
except Exception:
pass
time.sleep(0.01)
if __name__ == "__main__":
snatch()