Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
3.8 kB
1
Indexable
Never
import webbrowser
from pytz import timezone
from datetime import datetime
from aminofix import SubClient,  Client
from time import time
from json import load
from time import sleep
def tzFilter(hour: int = 23, tz: str = None) -> int:
    zones = ['Etc/GMT' + (f'+{i}' if i > 0 else f'{i}') for i in range(-12, 12)]

    return next(int(
        datetime.now(timezone(_)).strftime("%Z").replace("GMT", "00")
    ) * 60 for _ in ([tz] if tz else zones) if (
                        tz or (int(datetime.now(timezone(_)).strftime("%H")) == hour)
                )
                )

accounts=[
  {
    "email": "ayatolevel+83@gmail.com",
    "secret": "31 cSDimLhN b354430d-8175-4e4d-b36c-c17e5b1e1fda 162.158.55.61 fa901e8c57d7776148ef53b45234e1c68de92565 1 1701075775 kOEDu03ZEuY54i4IGu4jN4Z9NrM",
    "password": "level1890@"
  },
  {
    "email": "ayatolevel+84@gmail.com",
    "secret": "31 KEvCtvZk 0b5b57a1-cafa-4db5-8d95-89f01d6fd8db 162.158.55.63 82c6afae0b56ed756502348c3a5fbd18cc8fa262 1 1701075850 _4ZV1upu4j3oohJJKQphGvtm8Es",
    "password": "level1890@"
  },
  {
    "email": "ayatolevel+85@gmail.com",
    "secret": "31 vdsttcBV 7bb8a6ac-1361-4eab-8b9c-04696c8db140 162.158.55.55 4930ad546e9ffdae40995ec8c6cad1bdfadd1f08 1 1701075866 WNhmLZloEiTQ2ymUmbexJWKiSvY",
    "password": "level1890@"
  },
  {
    "email": "ayatolevel+97@gmail.com",
    "secret": "31 ZavTNrei 2ed1716e-9fd6-426a-9a6f-ea07e139192b 162.158.55.63 3dd2e2d7483aba6272a4c410e544ddd07ff4f01f 1 1701077812 53ei72ui0de3Mrnij7VyTGO2dvA",
    "password": "level1890@"
  },
  {
    "email": "ayatolevel+98@gmail.com",
    "secret": "31 mxJkHTgJ 68392bb6-27c9-4fba-bc8a-1d50738d4917 162.158.55.63 865341c8b2936dafb501651f0340bf6f51772d7f 1 1701077828 sxCHJdBdnssWbv0ueOGV8rqr3DA",
    "password": "level1890@"
  },
  {
    "email": "ayatolevel+99@gmail.com",
    "secret": "31 VDMMEfXh edd096a0-b4ed-499c-8e1b-eb9f9273b981 162.158.55.60 0254963dbe47875b29b146a5293f3642a546277a 1 1701077845 hXHId0CnTHivAhWVL2ewA0oOGYA",
    "password": "level1890@"
  },
  {
    "email": "ayatolevel+101@gmail.com",
    "secret": "31 NTclZBQE 1ee451f7-3973-43cc-8d6d-c8f0ebb84e65 162.158.55.63 40f9fa0ec5ac3b02ebf736b896fd3ed341bafcd6 1 1701077963 r3g33NM_jZIsiKAc6ta9e5xHuOY",
    "password": "level1890@"
  },
  {
    "email": "ayatolevel+113@gmail.com",
    "secret": "31 wMOcfvaI 1a36c76c-2c70-4448-b22a-99aa1f92a697 162.158.55.62 105b65ffdae88c5ae4f68d3eb75552f6b7ac85af 1 1701078199 USkDwuuxQZqRwD2If6QqUniMAwU",
    "password": "level1890@"
  }
]
d=[]
c=Client()
com=c.get_from_code("http://aminoapps.com/p/bxvouz").comId
def timers():
     times =[
     {"start": int(time()), "end": int(time())+300}
     for times in range(30)]
     return times
accounts.reverse()
for account in accounts:
     client = Client()

     try:
         response = client.login(account["email"], account["password"])
     except Exception as e:
        if 'url' in str(e):
            url_index = str(e).find('url')
            url = str(e)[url_index + 6:].split(',')[0].strip("'}")
            webbrowser.open(url)
            hh=input("wait:.")
            
            deviceid_start = url.find('deviceid=') + len('deviceid=')
            deviceid_end = url.find('&', deviceid_start)
            deviceid = url[deviceid_start:deviceid_end]
            d.append(account['email'], deviceid)
            client = Client(deviceId=deviceid)
            client.login(account["email"], account["password"])
            
            
        else:
            print(e)

     sub_client = SubClient(comId =com,
          profile = client.profile)

     for _ in range(6):
          sleep(1)
          sub_client.send_active_obj(
               timers = timers() ,
               tz = tzFilter()
          )
          print("done ")
     sleep(10)
Leave a Comment