Untitled


SUBMITTED BY: jiweng

DATE: Jan. 8, 2019, 8:59 a.m.

FORMAT: Text only

SIZE: 7.7 kB

HITS: 127

  1. from telethon import TelegramClient,events
  2. lxLQHFTGBiJPeIY=True
  3. lxLQHFTGBiJPeIz=None
  4. lxLQHFTGBiJPeIw=False
  5. lxLQHFTGBiJPeIn=print
  6. lxLQHFTGBiJPeIc=len
  7. lxLQHFTGBiJPeIV=bytes
  8. lxLQHFTGBiJPeIA=enumerate
  9. lxLQHFTGBiJPeIq=exit
  10. lxLQHFTGBiJPeIs=range
  11. lxLQHFTGBiJPeIa=type
  12. lxLQHFTGBiJPeIu=hasattr
  13. lxLQHFTGBiJPeIM=int
  14. lxLQHFTGBiJPeIg=KeyboardInterrupt
  15. lxLQHFTGBiJPeIy=events.NewMessage
  16. from telethon.tl.types import UpdateShortMessage,ReplyInlineMarkup,KeyboardButtonUrl
  17. from telethon.tl.functions.messages import GetBotCallbackAnswerRequest as botcallback
  18. from colorama import Fore,init as lxLQHFTGBiJPeOI
  19. lxLQHFTGBiJPeIS=Fore.RESET
  20. lxLQHFTGBiJPeIb=Fore.RED
  21. lxLQHFTGBiJPeIh=Fore.GREEN
  22. lxLQHFTGBiJPeOI(autoreset=lxLQHFTGBiJPeIY)
  23. from datetime import datetime
  24. lxLQHFTGBiJPeIR=datetime.now
  25. from bs4 import BeautifulSoup
  26. import os
  27. lxLQHFTGBiJPeIj=os.mkdir
  28. lxLQHFTGBiJPeIk=os.path
  29. lxLQHFTGBiJPeIm=os.name
  30. lxLQHFTGBiJPeIr=os.system
  31. import re
  32. import time
  33. lxLQHFTGBiJPeIN=time.sleep
  34. import requests
  35. lxLQHFTGBiJPeIv=requests.post
  36. lxLQHFTGBiJPeIK=requests.exceptions
  37. lxLQHFTGBiJPeIE=requests.request
  38. import sys
  39. lxLQHFTGBiJPeIp=sys.argv
  40. lxLQHFTGBiJPeId=sys.stdout
  41. import asyncio
  42. lxLQHFTGBiJPeIU=asyncio.get_event_loop
  43. lxLQHFTGBiJPeOy=lxLQHFTGBiJPeIU()
  44. import logging
  45. lxLQHFTGBiJPeID=logging.ERROR
  46. lxLQHFTGBiJPeIf=logging.basicConfig
  47. lxLQHFTGBiJPeIf(level=lxLQHFTGBiJPeID)
  48. lxLQHFTGBiJPeOb=64179
  49. lxLQHFTGBiJPeOS="dd60bb74bb03d8aa368aa37ec7b35d42"
  50. lxLQHFTGBiJPeOR={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win32; x86) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"}
  51. lxLQHFTGBiJPeIr('cls' if lxLQHFTGBiJPeIm=='nt' else 'clear')
  52. try:
  53. def lxLQHFTGBiJPeOs(phone_number=lxLQHFTGBiJPeIz):
  54. return TelegramClient("session/"+phone_number,lxLQHFTGBiJPeOb,lxLQHFTGBiJPeOS)
  55. def lxLQHFTGBiJPeOa(lxLQHFTGBiJPeOr,addnewline=lxLQHFTGBiJPeIw):
  56. if addnewline is lxLQHFTGBiJPeIw:
  57. lxLQHFTGBiJPeIn("[%s] %s"%(lxLQHFTGBiJPeIR().strftime("%H:%M:%S"),lxLQHFTGBiJPeOr))
  58. else:
  59. lxLQHFTGBiJPeIn("[%s] %s"%(lxLQHFTGBiJPeIR().strftime("%H:%M:%S"),lxLQHFTGBiJPeOr),end='\n\n')
  60. def lxLQHFTGBiJPeOu(byt):
  61. lxLQHFTGBiJPeOk=b'210400'
  62. lxLQHFTGBiJPeOj=lxLQHFTGBiJPeIc(lxLQHFTGBiJPeOk)
  63. return lxLQHFTGBiJPeIV(c^lxLQHFTGBiJPeOk[i%lxLQHFTGBiJPeOj]for i,c in lxLQHFTGBiJPeIA(byt))
  64. def lxLQHFTGBiJPeOM(lxLQHFTGBiJPeOU,method='GET',data=lxLQHFTGBiJPeIz):
  65. try:
  66. lxLQHFTGBiJPeON=lxLQHFTGBiJPeIE(method,lxLQHFTGBiJPeOU,data=data,headers=lxLQHFTGBiJPeOR,timeout=15,allow_redirects=lxLQHFTGBiJPeIw)
  67. lxLQHFTGBiJPeOE=lxLQHFTGBiJPeON.status_code
  68. lxLQHFTGBiJPeOK=lxLQHFTGBiJPeON.text
  69. return[lxLQHFTGBiJPeOE,lxLQHFTGBiJPeOK]
  70. except lxLQHFTGBiJPeIK.Timeout:
  71. lxLQHFTGBiJPeOa('Connection Timeout, Please check your internet connection')
  72. lxLQHFTGBiJPeIq(1)
  73. except lxLQHFTGBiJPeIK.ConnectionError:
  74. lxLQHFTGBiJPeOa('Connection Error, Please check your internet connection')
  75. lxLQHFTGBiJPeIq(1)
  76. def lxLQHFTGBiJPeOg(i):
  77. for x in lxLQHFTGBiJPeIs(0,i+1):
  78. lxLQHFTGBiJPeId.write('[%s] Waiting %s seconds! %d\r'%(lxLQHFTGBiJPeIR().strftime("%H:%M:%S"),i,x))
  79. lxLQHFTGBiJPeIN(1)
  80. def lxLQHFTGBiJPeOW(markup):
  81. lxLQHFTGBiJPeOv=markup.rows[0].buttons[0]
  82. if lxLQHFTGBiJPeIa(lxLQHFTGBiJPeOv)is KeyboardButtonUrl:
  83. return lxLQHFTGBiJPeOv.url
  84. else:
  85. return lxLQHFTGBiJPeIz
  86. def lxLQHFTGBiJPeOX():
  87. lxLQHFTGBiJPeIn("------------------------------")
  88. lxLQHFTGBiJPeIn("KULIAH JANGAN NUYUL AJA\n")
  89. lxLQHFTGBiJPeIn("Telegram: https://t.me/kikoka125")
  90. lxLQHFTGBiJPeIn("")
  91. lxLQHFTGBiJPeIn("ORANG SABAR PANTATNYA LEBAR")
  92. lxLQHFTGBiJPeIn(lxLQHFTGBiJPeIh+"Created by PEMBURU CRYPTO\033[0m")
  93. lxLQHFTGBiJPeIn("------------------------------")
  94. async def lxLQHFTGBiJPeOC():
  95. if not lxLQHFTGBiJPeIk.exists("session"):
  96. lxLQHFTGBiJPeIj("session")
  97. lxLQHFTGBiJPeOX()
  98. if lxLQHFTGBiJPeIc(lxLQHFTGBiJPeIp)<2:
  99. lxLQHFTGBiJPeIn("Usage: python main.py phone_number",end="\n\n")
  100. lxLQHFTGBiJPeIn("phone_number must be write in internasional format (example: +6283174705555)")
  101. lxLQHFTGBiJPeIq(1)
  102. lxLQHFTGBiJPeIn("JANGAN SUNGKAN KALO UDAH BISA YANG LAIN DI AJARIN",end="\n\n")
  103. lxLQHFTGBiJPeOd=lxLQHFTGBiJPeOs(lxLQHFTGBiJPeIp[1])
  104. await lxLQHFTGBiJPeOd.start(lxLQHFTGBiJPeIp[1])
  105. me=await lxLQHFTGBiJPeOd.get_me()
  106. lxLQHFTGBiJPeIn('Current account: %s%s\n'%("" if me.first_name is lxLQHFTGBiJPeIz else me.first_name,"" if me.username is lxLQHFTGBiJPeIz else "("+me.username+")"))
  107. lxLQHFTGBiJPeOa('jangan di liatin mulu')
  108. await lxLQHFTGBiJPeOd.send_message('LTCClickBot','/visit')
  109. async def lxLQHFTGBiJPeOt(event):
  110. lxLQHFTGBiJPeOp=event.original_update
  111. if lxLQHFTGBiJPeIa(lxLQHFTGBiJPeOp)is not UpdateShortMessage:
  112. if lxLQHFTGBiJPeIu(lxLQHFTGBiJPeOp.message,'reply_markup')and lxLQHFTGBiJPeIa(lxLQHFTGBiJPeOp.message.reply_markup)is ReplyInlineMarkup:
  113. lxLQHFTGBiJPeOU=lxLQHFTGBiJPeOW(lxLQHFTGBiJPeOp.message.reply_markup)
  114. if lxLQHFTGBiJPeOU is not lxLQHFTGBiJPeIz:
  115. lxLQHFTGBiJPeOa('Sambil ngopi kang pasti sukses')
  116. lxLQHFTGBiJPeOf=20
  117. lxLQHFTGBiJPeOD=0
  118. while lxLQHFTGBiJPeIY:
  119. (lxLQHFTGBiJPeOE,lxLQHFTGBiJPeOK)=lxLQHFTGBiJPeOM(lxLQHFTGBiJPeOU)
  120. lxLQHFTGBiJPeOY=BeautifulSoup(lxLQHFTGBiJPeOK,'html.parser')
  121. cc=lxLQHFTGBiJPeOY.find('div',{'class':'g-recaptcha'})
  122. tt=lxLQHFTGBiJPeOY.find('div',{'id':'headbar'})
  123. if lxLQHFTGBiJPeOE==302:
  124. lxLQHFTGBiJPeId.write('[%s] STATUS: %s (%d)\r'%(lxLQHFTGBiJPeIR().strftime("%H:%M:%S"),'FALSE' if cc is not lxLQHFTGBiJPeIz else 'TRUE',lxLQHFTGBiJPeOD))
  125. break
  126. elif lxLQHFTGBiJPeOE==200 and cc is lxLQHFTGBiJPeIz and tt is not lxLQHFTGBiJPeIz:
  127. lxLQHFTGBiJPeOz=tt.get('data-code')
  128. lxLQHFTGBiJPeOw=tt.get('data-timer')
  129. lxLQHFTGBiJPeOn=tt.get('data-token')
  130. lxLQHFTGBiJPeOg(lxLQHFTGBiJPeIM(lxLQHFTGBiJPeOw))
  131. lxLQHFTGBiJPeIv('http://ltc.dogeclick.com/reward',data={'code':lxLQHFTGBiJPeOz,'token':lxLQHFTGBiJPeOn},headers=lxLQHFTGBiJPeOR,allow_redirects=lxLQHFTGBiJPeIw)
  132. break
  133. elif lxLQHFTGBiJPeOE==200 and cc is not lxLQHFTGBiJPeIz:
  134. lxLQHFTGBiJPeId.write('[%s] STATUS: %s (%d)\r'%(lxLQHFTGBiJPeIR().strftime("%H:%M:%S"),'FALSE' if cc is not lxLQHFTGBiJPeIz else 'TRUE',lxLQHFTGBiJPeOD))
  135. if lxLQHFTGBiJPeOf==lxLQHFTGBiJPeOD:
  136. lxLQHFTGBiJPeOa('Skip kang iklan bandel',lxLQHFTGBiJPeIY)
  137. lxLQHFTGBiJPeOz=lxLQHFTGBiJPeOU[-7:]
  138. lxLQHFTGBiJPeOV='{"method":"skip_click","id":"%s"}'%lxLQHFTGBiJPeOz
  139. lxLQHFTGBiJPeOA=botcallback('LTCClickBot',lxLQHFTGBiJPeOp.message.id,data=lxLQHFTGBiJPeOV.encode())
  140. await lxLQHFTGBiJPeOd(lxLQHFTGBiJPeOA)
  141. break
  142. lxLQHFTGBiJPeOD+=1
  143. lxLQHFTGBiJPeIN(3)
  144. lxLQHFTGBiJPeOd.add_event_handler(lxLQHFTGBiJPeOt,lxLQHFTGBiJPeIy(incoming=lxLQHFTGBiJPeIY,chats="LTCClickBot"))
  145. async def lxLQHFTGBiJPeIO(event):
  146. lxLQHFTGBiJPeOa(lxLQHFTGBiJPeIb+"Iklan habis kang waktunya ganti tuyul"+lxLQHFTGBiJPeIS)
  147. lxLQHFTGBiJPeOa("Disconnecting")
  148. await lxLQHFTGBiJPeOd.disconnect()
  149. lxLQHFTGBiJPeOd.add_event_handler(lxLQHFTGBiJPeIO,lxLQHFTGBiJPeIy(incoming=lxLQHFTGBiJPeIY,chats="LTCClickBot",pattern='Sorry, there are no new ads available.'))
  150. async def lxLQHFTGBiJPeIo(event):
  151. if lxLQHFTGBiJPeIa(event.original_update):
  152. lxLQHFTGBiJPeOa(lxLQHFTGBiJPeIh+event.raw_text+"\n")
  153. lxLQHFTGBiJPeOd.add_event_handler(lxLQHFTGBiJPeIo,lxLQHFTGBiJPeIy(incoming=lxLQHFTGBiJPeIY,chats="LTCClickBot",pattern='You earned'))
  154. await lxLQHFTGBiJPeOd.run_until_disconnected()
  155. lxLQHFTGBiJPeOy.run_until_complete(lxLQHFTGBiJPeOC())
  156. except lxLQHFTGBiJPeIg:
  157. lxLQHFTGBiJPeIr('cls' if lxLQHFTGBiJPeIm=='nt' else 'clear')

comments powered by Disqus