sms query limit testing

This commit is contained in:
JJTech0130 2023-10-08 13:47:53 -04:00
parent 0bedeba32a
commit 79f5d8ec34
No known key found for this signature in database
GPG key ID: 23C92EBCCF8F93D6
2 changed files with 42 additions and 9 deletions

View file

@ -153,6 +153,15 @@ async def main(args: argparse.Namespace):
while True: while True:
await trio.sleep(20) await trio.sleep(20)
im = imessage.iMessageUser(conn, users[0])
await im.send(imessage.iMessage.create(im, "Hello world!", ["tel:+16106632676", "mailto:testu3@icloud.com"]))
while True:
print(await im.receive())

View file

@ -100,30 +100,54 @@ def register(
): ):
body = { body = {
# TODO: Abstract this out # TODO: Abstract this out
"device-name": "pypush", "device-name": "iPhone",
"hardware-version": "iPhone13,2", "hardware-version": "iPhone9,4",
"language": "en-US", "language": "en-US",
"os-version": "iPhone13,3_16.6,20G75", "os-version": "iPhone OS,15.7.5,19H332",
"software-version": "20G75", "software-version": "19H332",
"private-device-data": { # "private-device-data": {
"u": str(device_id), # "ap": "1",
}, # "c": "#c8caca",
# "d": "717284928.014101",
# "dt": 2,
# "ec": "#dcdede",
# "gt": "0",
# "h": "1",
# "ktf": "0",
# "m": "1",
# "p": "1",
# "pb": "19H332",
# "pn": "iPhone OS",
# "pv": "15.7.5",
# "s": "1",
# "t": "1",
# "u": "68DCE294-AE02-4740-8AD8-9689A1470505",
# "v": "1",
# },
"services": [ "services": [
{ {
"capabilities": [{"flags": 1, "name": "Messenger", "version": 1}], "capabilities": [{"flags": 1, "name": "Messenger", "version": 1}],
"service": "com.apple.madrid", "service": "com.apple.madrid",
"sub-services": ["com.apple.private.alloy.sms", "sub-services": ["com.apple.private.alloy.sms",
"com.apple.private.alloy.gelato",
"com.apple.private.alloy.biz", "com.apple.private.alloy.biz",
"com.apple.private.alloy.gamecenter.imessage"], "com.apple.private.alloy.gamecenter.imessage"],
"users": user_payloads, "users": user_payloads,
} }
], ],
"validation-data": b64decode(validation_data), "validation-data": b64decode(validation_data),
# "validation-data": b64decode("""
# Au1sqv8fuZVdB2nCX4pVx3/s6FLDr5+bIzK+NUsMkjEhAAAA4AYAAAAAAAAAgA1uoKC3
# E4nBdWTD+QVCDx7Xu2Ih6ds2l02C5N1c2M2kCUHV1kMquP0ZtFe+UflhXdUJgapdkiN2
# Hn/L8GRMvfwIKZcPUUZXRFcjtE5UkwnWoTQ6pO37eDGV0ioggZJG1lv/zCEJDodB6qRB
# nqzdprSzIgQJKurqMkBqb8oCszd/AAAAAAAAAE8BbRfGn/FGhbN4rpbN/HDJu5yXCvcA
# AAA2CABPOkmSAuxjuaJK7fou9SkxZRCv+WrtU73TrSBnDLgZ60wRnlDQ7pHtRpFOQe99
# Us6D/TwC
# """.replace("\n", "").replace(" ", "")),
} }
logger.debug(f"Sending IDS registration request: {body}") logger.warning(f"Sending IDS registration request: {body}")
body = plistlib.dumps(body) body = plistlib.dumps(body)