RIZER 1.0.0__py3-none-any.whl → 1.0.20__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- APIS/__init__.py +1 -0
- APIS/insta.py +140 -0
- Pb2/DEcwHisPErMsG_pb2.py +42 -0
- Pb2/Fo_pb2.py +28 -0
- Pb2/GenWhisperMsg_pb2.py +48 -0
- Pb2/MajoRLoGinrEq_pb2.py +28 -0
- Pb2/MajoRLoGinrEs_pb2.py +36 -0
- Pb2/PorTs_pb2.py +36 -0
- Pb2/Team_msg_pb2.py +48 -0
- Pb2/__init__.py +1 -0
- Pb2/sQ_pb2.py +38 -0
- rizer/APIS/__init__.py +1 -0
- rizer/APIS/__pycache__/insta.cpython-312.pyc +0 -0
- rizer/APIS/insta.py +140 -0
- rizer/Pb2/DEcwHisPErMsG_pb2.py +42 -0
- rizer/Pb2/Fo_pb2.py +28 -0
- rizer/Pb2/GenWhisperMsg_pb2.py +48 -0
- rizer/Pb2/MajoRLoGinrEq_pb2.py +28 -0
- rizer/Pb2/MajoRLoGinrEs_pb2.py +36 -0
- rizer/Pb2/PorTs_pb2.py +36 -0
- rizer/Pb2/Team_msg_pb2.py +48 -0
- rizer/Pb2/__init__.py +1 -0
- rizer/Pb2/__pycache__/DEcwHisPErMsG_pb2.cpython-312.pyc +0 -0
- rizer/Pb2/__pycache__/MajoRLoGinrEq_pb2.cpython-312.pyc +0 -0
- rizer/Pb2/__pycache__/MajoRLoGinrEs_pb2.cpython-312.pyc +0 -0
- rizer/Pb2/__pycache__/PorTs_pb2.cpython-312.pyc +0 -0
- rizer/Pb2/__pycache__/Team_msg_pb2.cpython-312.pyc +0 -0
- rizer/Pb2/__pycache__/sQ_pb2.cpython-312.pyc +0 -0
- rizer/Pb2/sQ_pb2.py +38 -0
- rizer/RIZER.egg-info/SOURCES.txt +19 -0
- rizer/RIZER.egg-info/top_level.txt +2 -0
- rizer/__init__.py +1 -0
- rizer/accounts.json +7 -0
- rizer/build/lib/APIS/__init__.py +1 -0
- rizer/build/lib/APIS/insta.py +140 -0
- rizer/build/lib/Pb2/DEcwHisPErMsG_pb2.py +42 -0
- rizer/build/lib/Pb2/Fo_pb2.py +28 -0
- rizer/build/lib/Pb2/GenWhisperMsg_pb2.py +48 -0
- rizer/build/lib/Pb2/MajoRLoGinrEq_pb2.py +28 -0
- rizer/build/lib/Pb2/MajoRLoGinrEs_pb2.py +36 -0
- rizer/build/lib/Pb2/PorTs_pb2.py +36 -0
- rizer/build/lib/Pb2/Team_msg_pb2.py +48 -0
- rizer/build/lib/Pb2/__init__.py +1 -0
- rizer/build/lib/Pb2/sQ_pb2.py +38 -0
- rizer/create_inits.py +17 -0
- rizer/dist/rizer-1.0.0-py3-none-any.whl +0 -0
- rizer/dist/rizer-1.0.0.tar.gz +0 -0
- rizer/install.sh +36 -0
- rizer/main.py +6377 -0
- rizer/package.json +13 -0
- rizer/pyproject.toml +3 -0
- rizer/requirements.txt +12 -0
- rizer/rizer_launcher.py +57 -0
- rizer/rizerrunner.py +57 -0
- rizer/runner.py +46 -0
- rizer/setup.py +13 -0
- rizer/xC4.py +499 -0
- rizer/xHeaders.py +224 -0
- rizer/xKEys.py +31 -0
- rizer-1.0.20.dist-info/METADATA +3 -0
- rizer-1.0.20.dist-info/RECORD +68 -0
- rizer-1.0.20.dist-info/entry_points.txt +2 -0
- rizer-1.0.20.dist-info/top_level.txt +3 -0
- rizer_launcher.py +59 -0
- rizer-1.0.0.dist-info/RECORD +0 -5
- /rizer-1.0.0.dist-info/METADATA → /rizer/RIZER.egg-info/PKG-INFO +0 -0
- /rizer-1.0.0.dist-info/top_level.txt → /rizer/RIZER.egg-info/dependency_links.txt +0 -0
- {rizer-1.0.0.dist-info → rizer/RIZER.egg-info}/entry_points.txt +0 -0
- {rizer-1.0.0.dist-info → rizer-1.0.20.dist-info}/WHEEL +0 -0
rizer/xC4.py
ADDED
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
# By AbdeeLkarim BesTo
|
|
2
|
+
|
|
3
|
+
import requests , json , binascii , time , urllib3 , base64 , datetime , re ,socket , threading , random , os , asyncio
|
|
4
|
+
from protobuf_decoder.protobuf_decoder import Parser
|
|
5
|
+
from Crypto.Cipher import AES
|
|
6
|
+
from Crypto.Util.Padding import pad , unpad
|
|
7
|
+
from datetime import datetime
|
|
8
|
+
from google.protobuf.timestamp_pb2 import Timestamp
|
|
9
|
+
|
|
10
|
+
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
11
|
+
|
|
12
|
+
Key , Iv = bytes([89, 103, 38, 116, 99, 37, 68, 69, 117, 104, 54, 37, 90, 99, 94, 56]) , bytes([54, 111, 121, 90, 68, 114, 50, 50, 69, 51, 121, 99, 104, 106, 77, 37])
|
|
13
|
+
|
|
14
|
+
async def EnC_AEs(HeX):
|
|
15
|
+
cipher = AES.new(Key , AES.MODE_CBC , Iv)
|
|
16
|
+
return cipher.encrypt(pad(bytes.fromhex(HeX), AES.block_size)).hex()
|
|
17
|
+
|
|
18
|
+
async def DEc_AEs(HeX):
|
|
19
|
+
cipher = AES.new(Key , AES.MODE_CBC , Iv)
|
|
20
|
+
return unpad(cipher.decrypt(bytes.fromhex(HeX)), AES.block_size).hex()
|
|
21
|
+
|
|
22
|
+
async def EnC_PacKeT(HeX , K , V):
|
|
23
|
+
return AES.new(K , AES.MODE_CBC , V).encrypt(pad(bytes.fromhex(HeX) ,16)).hex()
|
|
24
|
+
|
|
25
|
+
async def DEc_PacKeT(HeX , K , V):
|
|
26
|
+
return unpad(AES.new(K , AES.MODE_CBC , V).decrypt(bytes.fromhex(HeX)) , 16).hex()
|
|
27
|
+
|
|
28
|
+
async def EnC_Uid(H , Tp):
|
|
29
|
+
e , H = [] , int(H)
|
|
30
|
+
while H:
|
|
31
|
+
e.append((H & 0x7F) | (0x80 if H > 0x7F else 0)) ; H >>= 7
|
|
32
|
+
return bytes(e).hex() if Tp == 'Uid' else None
|
|
33
|
+
|
|
34
|
+
async def EnC_Vr(N):
|
|
35
|
+
if N < 0: ''
|
|
36
|
+
H = []
|
|
37
|
+
while True:
|
|
38
|
+
BesTo = N & 0x7F ; N >>= 7
|
|
39
|
+
if N: BesTo |= 0x80
|
|
40
|
+
H.append(BesTo)
|
|
41
|
+
if not N: break
|
|
42
|
+
return bytes(H)
|
|
43
|
+
|
|
44
|
+
def DEc_Uid(H):
|
|
45
|
+
n = s = 0
|
|
46
|
+
for b in bytes.fromhex(H):
|
|
47
|
+
n |= (b & 0x7F) << s
|
|
48
|
+
if not b & 0x80: break
|
|
49
|
+
s += 7
|
|
50
|
+
return n
|
|
51
|
+
|
|
52
|
+
async def CrEaTe_VarianT(field_number, value):
|
|
53
|
+
field_header = (field_number << 3) | 0
|
|
54
|
+
return await EnC_Vr(field_header) + await EnC_Vr(value)
|
|
55
|
+
|
|
56
|
+
async def CrEaTe_LenGTh(field_number, value):
|
|
57
|
+
field_header = (field_number << 3) | 2
|
|
58
|
+
encoded_value = value.encode() if isinstance(value, str) else value
|
|
59
|
+
return await EnC_Vr(field_header) + await EnC_Vr(len(encoded_value)) + encoded_value
|
|
60
|
+
|
|
61
|
+
async def CrEaTe_ProTo(fields):
|
|
62
|
+
packet = bytearray()
|
|
63
|
+
for field, value in fields.items():
|
|
64
|
+
if isinstance(value, dict):
|
|
65
|
+
nested_packet = await CrEaTe_ProTo(value) # لازم await
|
|
66
|
+
packet.extend(await CrEaTe_LenGTh(field, nested_packet))
|
|
67
|
+
elif isinstance(value, int):
|
|
68
|
+
packet.extend(await CrEaTe_VarianT(field, value))
|
|
69
|
+
elif isinstance(value, str) or isinstance(value, bytes):
|
|
70
|
+
packet.extend(await CrEaTe_LenGTh(field, value))
|
|
71
|
+
return packet
|
|
72
|
+
|
|
73
|
+
async def DecodE_HeX(H):
|
|
74
|
+
R = hex(H)
|
|
75
|
+
F = str(R)[2:]
|
|
76
|
+
if len(F) == 1: F = "0" + F ; return F
|
|
77
|
+
else: return F
|
|
78
|
+
|
|
79
|
+
async def Fix_PackEt(parsed_results):
|
|
80
|
+
result_dict = {}
|
|
81
|
+
for result in parsed_results:
|
|
82
|
+
field_data = {}
|
|
83
|
+
field_data['wire_type'] = result.wire_type
|
|
84
|
+
if result.wire_type == "varint":
|
|
85
|
+
field_data['data'] = result.data
|
|
86
|
+
if result.wire_type == "string":
|
|
87
|
+
field_data['data'] = result.data
|
|
88
|
+
if result.wire_type == "bytes":
|
|
89
|
+
field_data['data'] = result.data
|
|
90
|
+
elif result.wire_type == 'length_delimited':
|
|
91
|
+
field_data["data"] = await Fix_PackEt(result.data.results)
|
|
92
|
+
result_dict[result.field] = field_data
|
|
93
|
+
return result_dict
|
|
94
|
+
|
|
95
|
+
async def redzed(uid,code,K,V):
|
|
96
|
+
fields = {
|
|
97
|
+
1: 4,
|
|
98
|
+
2: {
|
|
99
|
+
1: uid,
|
|
100
|
+
3: uid,
|
|
101
|
+
8: 1,
|
|
102
|
+
9: {
|
|
103
|
+
2: 161,
|
|
104
|
+
4: "y[WW",
|
|
105
|
+
6: 11,
|
|
106
|
+
8: "1.114.18",
|
|
107
|
+
9: 3,
|
|
108
|
+
10: 1
|
|
109
|
+
},
|
|
110
|
+
10: str(code),
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , '0515' , K , V)
|
|
114
|
+
|
|
115
|
+
async def RejectMSGtaxt(squad_owner,uid, key, iv):
|
|
116
|
+
random_banner = f"""
|
|
117
|
+
[000000]
|
|
118
|
+
[000000]
|
|
119
|
+
[000000]
|
|
120
|
+
[000000]
|
|
121
|
+
[000000]
|
|
122
|
+
[000000]
|
|
123
|
+
[000000]
|
|
124
|
+
[000000]
|
|
125
|
+
[000000]
|
|
126
|
+
[000000]
|
|
127
|
+
[000000]
|
|
128
|
+
[000000]
|
|
129
|
+
[000000]
|
|
130
|
+
[000000]
|
|
131
|
+
[000000]
|
|
132
|
+
[000000]
|
|
133
|
+
[000000]
|
|
134
|
+
[000000]
|
|
135
|
+
[000000]
|
|
136
|
+
[000000]
|
|
137
|
+
[000000]
|
|
138
|
+
[000000]
|
|
139
|
+
[000000]
|
|
140
|
+
[000000]
|
|
141
|
+
[000000]
|
|
142
|
+
[000000]
|
|
143
|
+
[000000]
|
|
144
|
+
[000000]
|
|
145
|
+
[FF0000]
|
|
146
|
+
██████╗░██╗███████╗███████╗██████╗░
|
|
147
|
+
██╔══██╗██║╚════██║██╔════╝██╔══██╗
|
|
148
|
+
██████╔╝██║░░███╔═╝█████╗░░██████╔╝
|
|
149
|
+
██╔══██╗██║██╔══╝░░██╔══╝░░██╔══██╗
|
|
150
|
+
██║░░██║██║███████╗███████╗██║░░██║
|
|
151
|
+
╚═╝░░╚═╝╚═╝╚══════╝╚══════╝╚═╝░░╚═╝
|
|
152
|
+
[000000]
|
|
153
|
+
[1E90FF] D E V E L O P E R : [FF0000] R I Z E R S T Y L E
|
|
154
|
+
[000000]
|
|
155
|
+
[9400D3] M A D E B Y : [FF0000] R I Z E R S T Y L E
|
|
156
|
+
[000000]
|
|
157
|
+
[FFD700] Y O U T U B E : [FF0000] @ d a r k d e v i l 1 4 8 9 0
|
|
158
|
+
[FFD700] T E L E G R A M : [FF0000] @b e o t h e r j k
|
|
159
|
+
[FFD700] J O I N T E L E G R A M : [FF0000] @MG24_GAMER
|
|
160
|
+
[000000]
|
|
161
|
+
[FF0000]━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
162
|
+
[FF0000]━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
163
|
+
[000000]
|
|
164
|
+
[000000]
|
|
165
|
+
[000000]
|
|
166
|
+
[000000]
|
|
167
|
+
[000000]
|
|
168
|
+
[000000]
|
|
169
|
+
[000000]
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
fields = {
|
|
178
|
+
1: 5,
|
|
179
|
+
2: {
|
|
180
|
+
1: int(squad_owner),
|
|
181
|
+
2: 1,
|
|
182
|
+
3: int(uid),
|
|
183
|
+
4: random_banner
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , '0515' , key, iv)
|
|
187
|
+
|
|
188
|
+
async def DeCode_PackEt(input_text):
|
|
189
|
+
try:
|
|
190
|
+
parsed_results = Parser().parse(input_text)
|
|
191
|
+
parsed_results_objects = parsed_results
|
|
192
|
+
parsed_results_dict = await Fix_PackEt(parsed_results_objects)
|
|
193
|
+
json_data = json.dumps(parsed_results_dict)
|
|
194
|
+
return json_data
|
|
195
|
+
except Exception as e:
|
|
196
|
+
print(f"error {e}")
|
|
197
|
+
return None
|
|
198
|
+
|
|
199
|
+
def xMsGFixinG(n):
|
|
200
|
+
return '🗿'.join(str(n)[i:i + 3] for i in range(0 , len(str(n)) , 3))
|
|
201
|
+
|
|
202
|
+
async def Ua():
|
|
203
|
+
versions = [
|
|
204
|
+
'4.0.18P6', '4.0.19P7', '4.0.20P1', '4.1.0P3', '4.1.5P2', '4.2.1P8',
|
|
205
|
+
'4.2.3P1', '5.0.1B2', '5.0.2P4', '5.1.0P1', '5.2.0B1', '5.2.5P3',
|
|
206
|
+
'5.3.0B1', '5.3.2P2', '5.4.0P1', '5.4.3B2', '5.5.0P1', '5.5.2P3'
|
|
207
|
+
]
|
|
208
|
+
models = [
|
|
209
|
+
'SM-A125F', 'SM-A225F', 'SM-A325M', 'SM-A515F', 'SM-A725F', 'SM-M215F', 'SM-M325FV',
|
|
210
|
+
'Redmi 9A', 'Redmi 9C', 'POCO M3', 'POCO M4 Pro', 'RMX2185', 'RMX3085',
|
|
211
|
+
'moto g(9) play', 'CPH2239', 'V2027', 'OnePlus Nord', 'ASUS_Z01QD',
|
|
212
|
+
]
|
|
213
|
+
android_versions = ['9', '10', '11', '12', '13', '14']
|
|
214
|
+
languages = ['en-US', 'es-MX', 'pt-BR', 'id-ID', 'ru-RU', 'hi-IN']
|
|
215
|
+
countries = ['USA', 'MEX', 'BRA', 'IDN', 'RUS', 'IND']
|
|
216
|
+
version = random.choice(versions)
|
|
217
|
+
model = random.choice(models)
|
|
218
|
+
android = random.choice(android_versions)
|
|
219
|
+
lang = random.choice(languages)
|
|
220
|
+
country = random.choice(countries)
|
|
221
|
+
return f"GarenaMSDK/{version}({model};Android {android};{lang};{country};)"
|
|
222
|
+
|
|
223
|
+
async def ArA_CoLor():
|
|
224
|
+
Tp = ["32CD32" , "00BFFF" , "00FA9A" , "90EE90" , "FF4500" , "FF6347" , "FF69B4" , "FF8C00" , "FF6347" , "FFD700" , "FFDAB9" , "F0F0F0" , "F0E68C" , "D3D3D3" , "A9A9A9" , "D2691E" , "CD853F" , "BC8F8F" , "6A5ACD" , "483D8B" , "4682B4", "9370DB" , "C71585" , "FF8C00" , "FFA07A"]
|
|
225
|
+
return random.choice(Tp)
|
|
226
|
+
|
|
227
|
+
async def xBunnEr():
|
|
228
|
+
bN = [902000154 , 902047010 , 902000306 , 902000160 , 902048020 , 902048021 , 902000305 , 902000003 , 902000016 , 902000017 , 902000019 , 902031010 , 902043025 , 902043024 , 902000020 , 902000021 , 902000023 , 902000070 , 902000087 , 902000108 , 902000011 , 902049020 , 902049018 , 902049017 , 902049016 , 902049015 , 902049003 , 902033016 , 902033017 , 902033018 , 902048018 , 902000306 , 902000305 , 902000079 , 902051034]
|
|
229
|
+
return random.choice(bN)
|
|
230
|
+
|
|
231
|
+
# List mein se ek random avatar string choose karo
|
|
232
|
+
random_avatar_str = random.choice(avatar_list_str)
|
|
233
|
+
|
|
234
|
+
# Aur use integer mein badal kar return karo
|
|
235
|
+
return int(random_avatar_str)
|
|
236
|
+
|
|
237
|
+
async def send_room_chat_enhanced(Msg, room_id, key, iv, region):
|
|
238
|
+
"""Send room chat message using leaked packet structure"""
|
|
239
|
+
fields = {
|
|
240
|
+
1: 1,
|
|
241
|
+
2: {
|
|
242
|
+
1: 9280892890, # Sender UID (from leaked packet)
|
|
243
|
+
2: int(room_id),
|
|
244
|
+
3: 3, # Chat type 3 = room chat
|
|
245
|
+
4: f"[{await ArA_CoLor()}]{Msg}", # Message with color
|
|
246
|
+
5: int(datetime.now().timestamp()), # Current timestamp
|
|
247
|
+
7: 2,
|
|
248
|
+
9: {
|
|
249
|
+
1: "KALLUㅤYT!ㅤ", # Your bot name
|
|
250
|
+
2: int(await xBunnEr()), # Avatar from your system
|
|
251
|
+
4: 228, # Rank/level from leaked packet
|
|
252
|
+
7: 1, # Unknown
|
|
253
|
+
},
|
|
254
|
+
10: "en", # Changed from "ar" to "en"
|
|
255
|
+
13: {2: 1, 3: 1},
|
|
256
|
+
},
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
# Generate packet using your existing system
|
|
260
|
+
packet = (await CrEaTe_ProTo(fields)).hex()
|
|
261
|
+
|
|
262
|
+
# Use 1215 packet type for chat messages (like your existing system)
|
|
263
|
+
return await GeneRaTePk(packet, '1215', key, iv)
|
|
264
|
+
|
|
265
|
+
async def xSEndMsg(Msg , Tp , Tp2 , id , K , V):
|
|
266
|
+
feilds = {1: id , 2: Tp2 , 3: Tp, 4: Msg, 5: 1735129800, 7: 2, 9: {1: "xBesTo - C4", 2: int(await xBunnEr()), 3: 901048020, 4: 330, 5: 1001000001, 8: "xBesTo - C4", 10: 1, 11: 1, 13: {1: 2}, 14: {1: 12484827014, 2: 8, 3: "\u0010\u0015\b\n\u000b\u0013\f\u000f\u0011\u0004\u0007\u0002\u0003\r\u000e\u0012\u0001\u0005\u0006"}, 12: 0}, 10: "en", 13: {3: 1}}
|
|
267
|
+
Pk = (await CrEaTe_ProTo(feilds)).hex()
|
|
268
|
+
Pk = "080112" + await EnC_Uid(len(Pk) // 2, Tp='Uid') + Pk
|
|
269
|
+
return await GeneRaTePk(Pk, '1201', K, V)
|
|
270
|
+
|
|
271
|
+
async def xSEndMsgsQ(Msg , id , K , V):
|
|
272
|
+
fields = {1: id , 2: id , 4: Msg , 5: 1756580149, 7: 2, 8: 904990072, 9: {1: "xBe4!sTo - C4", 2: await xBunnEr(), 4: 330, 5: 1001000001, 8: "xBe4!sTo - C4", 10: 1, 11: 1, 13: {1: 2}, 14: {1: 1158053040, 2: 8, 3: "\u0010\u0015\b\n\u000b\u0015\f\u000f\u0011\u0004\u0007\u0002\u0003\r\u000e\u0012\u0001\u0005\u0006"}}, 10: "en", 13: {2: 2, 3: 1}}
|
|
273
|
+
Pk = (await CrEaTe_ProTo(fields)).hex()
|
|
274
|
+
Pk = "080112" + await EnC_Uid(len(Pk) // 2, Tp='Uid') + Pk
|
|
275
|
+
return await GeneRaTePk(Pk, '1201', K, V)
|
|
276
|
+
async def AuthClan(CLan_Uid, AuTh, K, V):
|
|
277
|
+
fields = {1: 3, 2: {1: int(CLan_Uid), 2: 1, 4: str(AuTh)}}
|
|
278
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , '1201' , K , V)
|
|
279
|
+
async def AutH_GlobAl(K, V):
|
|
280
|
+
fields = {
|
|
281
|
+
1: 3,
|
|
282
|
+
2: {
|
|
283
|
+
2: 5,
|
|
284
|
+
3: "en"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , '1215' , K , V)
|
|
288
|
+
|
|
289
|
+
async def LagSquad(K,V):
|
|
290
|
+
fields = {
|
|
291
|
+
1: 15,
|
|
292
|
+
2: {
|
|
293
|
+
1: 1124759936,
|
|
294
|
+
2: 1
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , '0515' , K , V)
|
|
298
|
+
|
|
299
|
+
async def GeT_Status(PLayer_Uid , K , V):
|
|
300
|
+
PLayer_Uid = await EnC_Uid(PLayer_Uid , Tp = 'Uid')
|
|
301
|
+
if len(PLayer_Uid) == 8: Pk = f'080112080a04{PLayer_Uid}1005'
|
|
302
|
+
elif len(PLayer_Uid) == 10: Pk = f"080112090a05{PLayer_Uid}1005"
|
|
303
|
+
return await GeneRaTePk(Pk , '0f15' , K , V)
|
|
304
|
+
|
|
305
|
+
async def SPam_Room(Uid , Rm , Nm , K , V):
|
|
306
|
+
fields = {1: 78, 2: {1: int(Rm), 2: f"[{ArA_CoLor()}]{Nm}", 3: {2: 1, 3: 1}, 4: 330, 5: 1, 6: 201, 10: xBunnEr(), 11: int(Uid), 12: 1}}
|
|
307
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , '0e15' , K , V)
|
|
308
|
+
async def GenJoinSquadsPacket(code, K , V):
|
|
309
|
+
fields = {}
|
|
310
|
+
fields[1] = 4
|
|
311
|
+
fields[2] = {}
|
|
312
|
+
fields[2][4] = bytes.fromhex("01090a0b121920")
|
|
313
|
+
fields[2][5] = str(code)
|
|
314
|
+
fields[2][6] = 6
|
|
315
|
+
fields[2][8] = 1
|
|
316
|
+
fields[2][9] = {}
|
|
317
|
+
fields[2][9][2] = 800
|
|
318
|
+
fields[2][9][6] = 11
|
|
319
|
+
fields[2][9][8] = "1.111.1"
|
|
320
|
+
fields[2][9][9] = 5
|
|
321
|
+
fields[2][9][10] = 1
|
|
322
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , '0515' , K , V)
|
|
323
|
+
async def GenJoinGlobaL(owner , code , K, V):
|
|
324
|
+
fields = {
|
|
325
|
+
1: 4,
|
|
326
|
+
2: {
|
|
327
|
+
1: owner,
|
|
328
|
+
6: 1,
|
|
329
|
+
8: 1,
|
|
330
|
+
13: "en",
|
|
331
|
+
15: code,
|
|
332
|
+
16: "OR",
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , '0515' , K , V)
|
|
336
|
+
|
|
337
|
+
async def FS(K,V):
|
|
338
|
+
fields = {
|
|
339
|
+
1: 9,
|
|
340
|
+
2: {
|
|
341
|
+
1: 13256361202
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , '0515' , K , V)
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
#EMOTES BY PARAHEX X CODEX
|
|
350
|
+
async def Emote_k(TarGeT , idT, K, V,region):
|
|
351
|
+
fields = {
|
|
352
|
+
1: 21,
|
|
353
|
+
2: {
|
|
354
|
+
1: 804266360,
|
|
355
|
+
2: 909000001,
|
|
356
|
+
5: {
|
|
357
|
+
1: TarGeT,
|
|
358
|
+
3: idT,
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
if region.lower() == "ind":
|
|
363
|
+
packet = '0514'
|
|
364
|
+
elif region.lower() == "bd":
|
|
365
|
+
packet = "0519"
|
|
366
|
+
else:
|
|
367
|
+
packet = "0515"
|
|
368
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , packet , K , V)
|
|
369
|
+
|
|
370
|
+
#EMOTES BY PARAHEX X CODEX
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
async def GeTSQDaTa(D):
|
|
374
|
+
uid = D['5']['data']['1']['data']
|
|
375
|
+
chat_code = D["5"]["data"]["14"]["data"]
|
|
376
|
+
squad_code = D["5"]["data"]["31"]["data"]
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
return uid, chat_code , squad_code
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
async def AutH_Chat(T , uid, code , K, V):
|
|
383
|
+
fields = {
|
|
384
|
+
1: T,
|
|
385
|
+
2: {
|
|
386
|
+
1: uid,
|
|
387
|
+
3: "en",
|
|
388
|
+
4: str(code)
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , '1215' , K , V)
|
|
392
|
+
async def Msg_Sq(msg, owner, bot, K, V):
|
|
393
|
+
fields = {
|
|
394
|
+
1: 1,
|
|
395
|
+
2: 2,
|
|
396
|
+
2: {
|
|
397
|
+
1: bot,
|
|
398
|
+
2: owner,
|
|
399
|
+
4: msg,
|
|
400
|
+
5: 4368569733,
|
|
401
|
+
7: 2,
|
|
402
|
+
9: {
|
|
403
|
+
1: "Fun1w5a2",
|
|
404
|
+
2: await xBunnEr(),
|
|
405
|
+
3: 909000024,
|
|
406
|
+
4: 330,
|
|
407
|
+
5: 909000024,
|
|
408
|
+
7: 2,
|
|
409
|
+
10: 1,
|
|
410
|
+
11: 1,
|
|
411
|
+
12: 0,
|
|
412
|
+
13: {1: 2},
|
|
413
|
+
14: {
|
|
414
|
+
1: bot,
|
|
415
|
+
2: 8,
|
|
416
|
+
3: "\u0010\u0015\b\n\u000b\u0013\f\u000f\u0011\u0004\u0007\u0002\u0003\r\u000e\u0012\u0001\u0005\u0006"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
10: "ar",
|
|
420
|
+
13: {3: 1},
|
|
421
|
+
14: ""
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
proto_bytes = await CrEaTe_ProTo(fields)
|
|
425
|
+
return await GeneRaTePk(proto_bytes.hex(), '1215', K, V)
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
async def ghost_pakcet(player_id , secret_code ,K , V):
|
|
429
|
+
fields = {
|
|
430
|
+
1: 61,
|
|
431
|
+
2: {
|
|
432
|
+
1: int(player_id),
|
|
433
|
+
2: {
|
|
434
|
+
1: int(player_id),
|
|
435
|
+
2: int(time.time()),
|
|
436
|
+
3: "MR3SKR",
|
|
437
|
+
5: 12,
|
|
438
|
+
6: 9999999,
|
|
439
|
+
7: 1,
|
|
440
|
+
8: {
|
|
441
|
+
2: 1,
|
|
442
|
+
3: 1,
|
|
443
|
+
},
|
|
444
|
+
9: 3,
|
|
445
|
+
},
|
|
446
|
+
3: secret_code,},}
|
|
447
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , '0515' , K , V)
|
|
448
|
+
async def GeneRaTePk(Pk , N , K , V):
|
|
449
|
+
PkEnc = await EnC_PacKeT(Pk , K , V)
|
|
450
|
+
_ = await DecodE_HeX(int(len(PkEnc) // 2))
|
|
451
|
+
if len(_) == 2: HeadEr = N + "000000"
|
|
452
|
+
elif len(_) == 3: HeadEr = N + "00000"
|
|
453
|
+
elif len(_) == 4: HeadEr = N + "0000"
|
|
454
|
+
elif len(_) == 5: HeadEr = N + "000"
|
|
455
|
+
else: print('ErroR => GeneRatinG ThE PacKeT !! ')
|
|
456
|
+
return bytes.fromhex(HeadEr + _ + PkEnc)
|
|
457
|
+
async def OpEnSq(K , V,region):
|
|
458
|
+
fields = {1: 1, 2: {2: "\u0001", 3: 1, 4: 1, 5: "en", 9: 1, 11: 1, 13: 1, 14: {2: 5756, 6: 11, 8: "1.111.5", 9: 2, 10: 4}}}
|
|
459
|
+
if region.lower() == "ind":
|
|
460
|
+
packet = '0514'
|
|
461
|
+
elif region.lower() == "bd":
|
|
462
|
+
packet = "0519"
|
|
463
|
+
else:
|
|
464
|
+
packet = "0515"
|
|
465
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , packet , K , V)
|
|
466
|
+
|
|
467
|
+
async def cHSq(Nu , Uid , K , V,region):
|
|
468
|
+
fields = {1: 17, 2: {1: int(Uid), 2: 1, 3: int(Nu - 1), 4: 62, 5: "\u001a", 8: 5, 13: 329}}
|
|
469
|
+
if region.lower() == "ind":
|
|
470
|
+
packet = '0514'
|
|
471
|
+
elif region.lower() == "bd":
|
|
472
|
+
packet = "0519"
|
|
473
|
+
else:
|
|
474
|
+
packet = "0515"
|
|
475
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , packet , K , V)
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
async def SEnd_InV(Nu , Uid , K , V,region):
|
|
481
|
+
|
|
482
|
+
fields = {1: 2 , 2: {1: int(Uid) , 2: region , 4: int(Nu)}}
|
|
483
|
+
|
|
484
|
+
if region.lower() == "ind":
|
|
485
|
+
packet = '0514'
|
|
486
|
+
elif region.lower() == "bd":
|
|
487
|
+
packet = "0519"
|
|
488
|
+
else:
|
|
489
|
+
packet = "0515"
|
|
490
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , packet , K , V)
|
|
491
|
+
|
|
492
|
+
async def ExiT(idT , K , V):
|
|
493
|
+
fields = {
|
|
494
|
+
1: 7,
|
|
495
|
+
2: {
|
|
496
|
+
1: idT,
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
return await GeneRaTePk((await CrEaTe_ProTo(fields)).hex() , '0515' , K , V)
|