Untitled
unknown
plain_text
2 years ago
2.6 kB
7
Indexable
import aminofix
import time
import threading
import hmac
import json
import os
import time
from base64 import b64encode, urlsafe_b64decode
from hashlib import sha1
import requests
api="https://e223.7yggfjd0.workers.dev/proxy?proxyUrl=https://service.aminoapps.com/api/v1"
def generate_device_id() -> str:
identifier = os.urandom(20)
key = bytes.fromhex("AE49550458D8E7C51D566916B04888BFB8B3CA7D")
mac = hmac.new(key, bytes.fromhex("52") + identifier, sha1)
return f"52{identifier.hex()}{mac.hexdigest()}".upper()
def headers(sid):
headers = {
"Accept-Language": "en-US",
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": 'Dalvik/2.1.0 (Linux; U; Android 10; Redmi Note 9 Pro Build/QQ3A.200805.001; com.narvii.amino.master/3.4.33585)',
# "Host": "service.aminoapps.com",
"Accept-Encoding": "gzip",
"Connection": "Keep-Alive",
"NDCDEVICEID":generate_device_id(),
"NDCAUTH":f"sid={sid}"
}
return headers
def get_vc_reputation_info(sid,comId,chatId):
response = requests.get(f"{api}/x{comId}/s/chat/thread/{chatId}/avchat-reputation", headers=headers(sid))
if response.status_code != 200:
return response.text
else: return response.json()["availableReputation"]
def claim_vc_reputation(sid,comId,chatId):
response = requests.post(f"{api}/x{comId}/s/chat/thread/{chatId}/avchat-reputation", headers=headers(sid))
if response.status_code != 200:
return json.loads(response.text)
else: return json.loads(response.text)
client=aminofix.Client(socket_enabled=False)
client.login("ssamant768+17@gmail.com","level17890@")
id=client.get_from_code("http://aminoapps.com/p/3gabfa")
import sock
def aud():
while True:
time.sleep(3)
ws=sock.SocketHandler()
ws.run_socket()
time.sleep(3)
ws.jcc(id.comId,id.objectId)
def run_vc(ws):
while True:
time.sleep(60)
ws.run_vc(id.comId,id.objectId,1)
def claim(comId,chatId):
while True:
print(get_vc_reputation_info(client.sid,comId,chatId))
time.sleep(5)
print(claim_vc_reputation(client.sid,comId,chatId))
ws=sock.SocketHandler()
ws.run_socket(client.sid)
time.sleep(3)
ws.screening(id.comId,id.objectId)
threading.Thread(target=run_vc,args=[ws]).start()
time.sleep(3)
threading.Thread(target=aud).start()
time.sleep(3)
threading.Thread(target=claim,args=[id.comId,id.objectId]).start()Editor is loading...