3720
Python yazılım grubu. Burada amaç birbirimize destek olmak ve kendimizi geliştirmektir. Hepiniz davetlisiniz. Kurallar ve diğer gruplar: @programlama Python Kaynak Kanalı: t.me/joinchat/RUhg4mlnThDP_3yZ
Patlayınca söylersin hocam Mehmet hocam içinden geçti 😅
Читать полностью…
Merhaba bu işte. Yeniyim yani bildiğim baştan başlayacağım varsa tavsiyeleriniz bana yardımcı olabilir misiniz?
Читать полностью…
buyrun içerdeuyiz buda demektirki bu botları kullanmayın !
Читать полностью…
PyObejct gibi bir şeyi anlayacak kadar gelişmiş değildir
Читать полностью…
gerek bile yok kodu b64 ile zip içine sıkıştırsam yine yer serveri
Читать полностью…
Yani test.py ile main.py main testi çağıracak
Читать полностью…
onu shared object binarye çevirip b64 ile koda gömüp zip ile bellekte çalıştirabilirsiniz örnek kod var
#become whateverЧитать полностью…
import os, shutil, base64, zipfile, subprocess, hmac, hashlib, secrets, time; exec('p_k = secrets.token_bytes(32)\ndef paketle():\n f = input("Dosya: ").strip()\n if not os.path.isfile(f): exit("yok")\n n = os.path.splitext(os.path.basename(f))[0]\n b = ".tmp_" + secrets.token_hex(2)\n os.makedirs(b, exist_ok=True)\n with open(f, "r", encoding="utf-8") as s: src = s.read().replace("selfay.console.print", "self.ui.console.print")\n with open(os.path.join(b, n + ".py"), "w", encoding="utf-8") as s: s.write(src)\n with open(os.path.join(b, "setup.py"), "w") as s: s.write(f"from setuptools import setup\\nfrom Cython.Build import cythonize\\nsetup(ext_modules=cythonize(\'{n}.py\', language_level=3))")\n old = os.getcwd(); os.chdir(b)\n try: subprocess.run(["python3", "setup.py", "build_ext", "--inplace"], check=True, capture_output=True)\n except: exit("fail")\n os.chdir(old); so = next((i for i in os.listdir(b) if i.startswith(n) and i.endswith(".so")), None)\n if not so: exit("so_yok")\n z = "z.zip"\n with zipfile.ZipFile(z, "w") as zf: zf.write(os.path.join(b, so), arcname=so)\n with open(z, "rb") as d: raw = d.read()\n sig = hmac.new(p_k, raw, hashlib.sha3_512).hexdigest(); x_k = secrets.token_bytes(16); xor_r = bytes([raw[i] ^ x_k[i % len(x_k)] for i in range(len(raw))]); enc = base64.a85encode(xor_r).decode(); k_h = "".join([f"\\\\x{x:02x}" for x in p_k]); x_h = "".join([f"\\\\x{x:02x}" for x in x_k])\n with open(f"{n}_locked.py", "w") as out: out.write(f\'import base64, zipfile, tempfile, os, sys, importlib.util, shutil, random, string, hmac, hashlib, time, secrets\\nKahinX = r"""{enc}"""\\n_i = "{sig}"\\n_k = b"{k_h}"\\n_x = b"{x_h}"\\ndef _savunma():\\n if sys.gettrace() is not None: sys.exit(1)\\n if hasattr(sys, \\\'settrace\\\') and type(sys.settrace).__name__ != \\\'builtin_function_or_method\\\': sys.exit(1)\\n try:\\n with open(\\\'/proc/self/status\\\') as f:\\n for l in f:\\n if l.startswith(\\\'TracerPid:\\\') and int(l.split(\\\':\\\')[1].strip()) != 0: sys.exit(1)\\n except: pass\\n if any(x in os.environ for x in [\\\'PYTHONDEBUG\\\',\\\'PYTHONINSPECT\\\',\\\'PYTHONBREAKPOINT\\\',\\\'PYCHARM_HOSTED\\\',\\\'VSCODE_PID\\\',\\\'DEBUGPY_RUNNING\\\']): sys.exit(1)\\n t = time.perf_counter(); sum(i*i for i in range(10000))\\n if time.perf_counter() - t > 0.1: sys.exit(1)\\ndef _temizle(p):\\n try:\\n if os.path.isfile(p):\\n s = os.path.getsize(p)\\n with open(p, \\\'r+b\\\') as f:\\n for _ in range(2): f.seek(0); f.write(secrets.token_bytes(s)); f.flush(); os.fsync(f.fileno())\\n os.remove(p)\\n except: pass\\ndef _baslat():\\n _savunma()\\n try:\\n d_xor = base64.a85decode(KahinX); d = bytes([d_xor[i] ^ _x[i % len(_x)] for i in range(len(d_xor))])\\n if hmac.new(_k, d, hashlib.sha3_512).hexdigest() != _i: sys.exit("kurcalama_pic")\\n tmp_dir = os.path.join(tempfile.gettempdir(), \\\'\\\'.join(random.choices(string.ascii_lowercase, k=8)))\\n os.makedirs(tmp_dir, exist_ok=True); p = os.path.join(tmp_dir, "blob")\\n with open(p, "wb") as f: f.write(d)\\n with zipfile.ZipFile(p) as zf: zf.extractall(tmp_dir)\\n s_file = next(i for i in os.listdir(tmp_dir) if i.endswith(".so"))\\n m_n = s_file.split(".cpython")[0]; sys.path.insert(0, tmp_dir)\\n spec = importlib.util.spec_from_file_location(m_n, os.path.join(tmp_dir, s_file))\\n m = importlib.util.module_from_spec(spec); spec.loader.exec_module(m)\\n getattr(m, "main", getattr(m, "run", lambda: None))(); _temizle(p); shutil.rmtree(tmp_dir, ignore_errors=True)\\n except: sys.exit(1)\\nif __name__ == "__main__": _baslat()\')\n shutil.rmtree(b); os.remove(z); print(f"{n}_locked.py")\npaketle()')
Merhaba, Python'a yeni başlıyorsan bizim tavsiyemiz Python-İstihza belgelerini (Türkçe) okuman ve oradaki örnekleri direkt olarak uygulaman.
Bunun haricinde resmi dokümanları da (İngilizce) okuyabilirsin.
Sadece okumak ve video izlemek asla yeterli olmayacak. Öğrenmek için uygulamak ve pratik yapmak gereklidir.
Başarılar!
Bunun benle peki bir sorunu var mı yani ana sunucu ben değilim ki 7 bottan bağlantıliyim
Читать полностью…
total 724K
drwxr-xr-x 3 root root 4.0K Jan 13 07:21 .
drwxr-xr-x 17 root root 4.0K Jan 16 19:44 ..
-rw-r--r-- 1 root root 40 Jan 12 18:27 NGYT777GG.log
-rw-r--r-- 1 root root 3.7K Jan 12 18:25 NGYT777GG.py
-rw-r--r-- 1 root root 5.7K Jan 13 07:21 bot (1).py
drwxr-xr-x 2 root root 4.0K Jan 12 17:38 downloads
-rw-r--r-- 1 root root 1.2K Jan 12 17:37 main.py
-rw-r--r-- 1 root root 943 Jan 12 17:38 music bot.log
-rw-r--r-- 1 root root 21K Jan 12 17:37 music bot.py
-rw-r--r-- 1 root root 54K Jan 13 02:07 music.py
-rw-r--r-- 1 root root 150 Jan 12 18:26 repo.log
-rw-r--r-- 1 root root 3.9K Jan 12 18:25 repo.py
-rw-r--r-- 1 root root 28K Jan 12 18:27 session_name.session
-rw-r--r-- 1 root root 540K Jan 13 03:06 tkmusicbot.log
-rw-r--r-- 1 root root 21K Jan 12 17:37 tkmusicbot.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 321 100 321 0 0 1155 0 --:--:-- --:--:-- --:--:-- 1206
{
"ip": "3.*******76.129",
"hostname": "ec2-3*****129.ap-south-1.compute.amazonaws.com",
"city": "Mumbai",
"region": "Maharashtra",
"country": "IN",
"loc": "19.0728,72.8826",
"org": "AS16509 Amazon.com, Inc.",
"postal": "400017",
"timezone": "Asia/Kolkata",
"readme": "https://ipinfo.io/missingauth"
}
değiştiriyorum banlama ama beni birkaç deneme sürebilir doğru kod
Читать полностью…
Sunucusu kapatı hosting firiması gerekçe kurallarımıza uymuyor
Читать полностью…