mirror of
https://git.ugnet.gay/CrossTalk/azul.git
synced 2026-11-25 08:40:05 +00:00
0.6 final
This commit is contained in:
1 parent
7c0581eb97
commit
b89e1932bb
160 files changed
+20534
-4664
No files matched your search
+6
-2
@@ -10,8 +10,8 @@ from .msnp import MSNPCtrl
|
||||
|
||||
def register(loop: asyncio.AbstractEventLoop, backend: Backend, http_app: web.Application) -> None:
|
||||
from util.misc import ProtocolRunner
|
||||
from . import msnp_dp, msnp_ns, msnp_sb
|
||||
from .http import appdirectory, abservice, gateway, other
|
||||
from . import msnp_dp, msnp_ns, msnp_sb#, spotlife, turn
|
||||
from .http import appdirectory, abservice, gateway, other, schematizedstore, sharingservice
|
||||
|
||||
backend.add_runner(ProtocolRunner('0.0.0.0', 1863, ListenerMSNP, args = ['MSNP Dispatch', backend, msnp_dp.MSNPCtrlDP], service = 'MSNP Dispatch'))
|
||||
backend.add_runner(ProtocolRunner('0.0.0.0', 1864, ListenerMSNP, args = ['MSNP Notification', backend, msnp_ns.MSNPCtrlNS], service = 'MSNP Notification'))
|
||||
@@ -19,7 +19,11 @@ def register(loop: asyncio.AbstractEventLoop, backend: Backend, http_app: web.Ap
|
||||
appdirectory.register(http_app)
|
||||
other.register(http_app)
|
||||
abservice.register(http_app)
|
||||
sharingservice.register(http_app)
|
||||
schematizedstore.register(http_app)
|
||||
gateway.register(loop, http_app)
|
||||
#spotlife.register(loop, backend, http_app)
|
||||
#turn.register(loop, backend)
|
||||
|
||||
class ListenerMSNP(asyncio.Protocol):
|
||||
logger: Logger
|
||||
|
||||
+268
-368
File diff suppressed because it is too large.
Load diff
@@ -5,8 +5,8 @@
|
||||
"category_id": 102,
|
||||
"name": "Nine Men's Morris",
|
||||
"description": "A 9 pieces Tic-Tac-Toe spin-off. Originally developed by Doron for games.mess.be",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/morris/index.en-us.html",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/morris/imgs/icon.png",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/morris/index.en-us.html",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/morris/imgs/icon.png",
|
||||
"type": "dir",
|
||||
"height": 500,
|
||||
"width": 500,
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"category_id": 102,
|
||||
"name": "Nine Men's Morris",
|
||||
"description": "A 9 pieces Tic-Tac-Toe spin-off (Hebrew). Originally developed by Doron for games.mess.be",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/morris/index.he-il.html",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/morris/imgs/icon.png",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/morris/index.he-il.html",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/morris/imgs/icon.png",
|
||||
"type": "dir",
|
||||
"height": 500,
|
||||
"width": 500,
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"category_id": 102,
|
||||
"name": "Backgammon",
|
||||
"description": "The game of luck and skill. Originally developed by Koen for games.mess.be",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/backgammon/backgammon.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/backgammon/images/icon.png",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/backgammon/backgammon.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/backgammon/images/icon.png",
|
||||
"type": "dir",
|
||||
"height": 500,
|
||||
"width": 500,
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"category_id": 102,
|
||||
"name": "Battleships",
|
||||
"description": "Sink your opponent's fleet. Originally developed by Koen for games.mess.be",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/battleships/battleships.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/battleships/images/icon.png",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/battleships/battleships.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/battleships/images/icon.png",
|
||||
"type": "dir",
|
||||
"height": 500,
|
||||
"width": 500,
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"category_id": 102,
|
||||
"name": "Chess",
|
||||
"description": "The king's game. Originally developed by Koen for games.mess.be",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/chess/chess.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/chess/images/icon.png",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/chess/chess.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/chess/images/icon.png",
|
||||
"type": "dir",
|
||||
"height": 500,
|
||||
"width": 500,
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"category_id": 102,
|
||||
"name": "Connect 4",
|
||||
"description": "Four in a row. Originally developed by Koen for games.mess.be",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/connect4/connect4.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/connect4/images/icon.png",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/connect4/connect4.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/connect4/images/icon.png",
|
||||
"type": "dir",
|
||||
"height": 500,
|
||||
"width": 500,
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"category_id": 102,
|
||||
"name": "Memory",
|
||||
"description": "Find the matching pairs. Originally developed by Koen for games.mess.be",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/memory/memory.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/memory/images/icon.png",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/memory/memory.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/memory/images/icon.png",
|
||||
"type": "dir",
|
||||
"height": 500,
|
||||
"width": 500,
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"category_id": 102,
|
||||
"name": "Reversi",
|
||||
"description": "Also known as Othello. Originally developed by Koen for games.mess.be",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/reversi/reversi.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/reversi/images/icon.png",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/reversi/reversi.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/reversi/images/icon.png",
|
||||
"type": "dir",
|
||||
"height": 500,
|
||||
"width": 500,
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"category_id": 102,
|
||||
"name": "Tetris",
|
||||
"description": "The simple, highly addictive, real-time puzzle game. Originally developed by Koen for games.mess.be",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/tetris/tetris.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/tetris/images/icon.png",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/tetris/tetris.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/tetris/images/icon.png",
|
||||
"type": "dir",
|
||||
"height": 500,
|
||||
"width": 500,
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"category_id": 102,
|
||||
"name": "Yahtzee",
|
||||
"description": "The famous dice game. Originally developed by Koen of games.mess.be",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/yahtzee/yahtzee.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/messbe/yahtzee/images/icon.png",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/yahtzee/yahtzee.htm",
|
||||
"icon_url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/messbe/yahtzee/images/icon.png",
|
||||
"type": "dir",
|
||||
"height": 500,
|
||||
"width": 500,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"category_id": 101,
|
||||
"name": "Tic Tac Toe",
|
||||
"description": "Play against your friends in a game of Tic Tac Toe. Originally developed by Microsoft.",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.gay/static/app-data/tic-tac-toe/tictactoe.htm",
|
||||
"url": "http://mactivities.msgrsvcs.ctsrv.xyz/static/app-data/tic-tac-toe/tictactoe.htm",
|
||||
"icon_url": null,
|
||||
"type": "dir",
|
||||
"height": 500,
|
||||
|
||||
+314
-313
@@ -1,4 +1,4 @@
|
||||
from typing import Optional, Any, Tuple
|
||||
from typing import Optional, Any, Tuple, Literal, List, Dict
|
||||
from datetime import datetime, timedelta
|
||||
from io import BytesIO
|
||||
from email.parser import Parser
|
||||
@@ -6,21 +6,23 @@ from email.header import decode_header
|
||||
from email.utils import parsedate_to_datetime
|
||||
from urllib.parse import unquote, parse_qsl
|
||||
from pathlib import Path
|
||||
import re, secrets, base64, random, json, mimetypes, uuid, PyRSS2Gen, settings, util.misc
|
||||
import asyncio, re, secrets, base64, random, json, mimetypes, uuid, PyRSS2Gen, settings, util.misc
|
||||
from markupsafe import Markup
|
||||
from aiohttp import web
|
||||
|
||||
|
||||
from core import models
|
||||
from core.user import beacon_enabled
|
||||
from core.backend import Backend, BackendSession
|
||||
from util.avatar import get_img_type, find_avatar_file
|
||||
from ..misc import gen_mail_data, format_oim, cid_format, puid_format
|
||||
from util.avatar import get_img_type, store_photo_file, get_photo_data
|
||||
from ..misc import gen_mail_data, format_oim, cid_format, puid_format, encode_xml_ne
|
||||
from .util import find_element, get_tag_localname, render, preprocess_soap, unknown_soap, bool_to_str
|
||||
|
||||
LOGIN_PATH = '/login.srf'
|
||||
|
||||
LOGIN_PATH = '/login2.srf'
|
||||
TMPL_DIR = 'front/msn/http/tmpl'
|
||||
ETC_DIR = 'front/msn/etc'
|
||||
PP = 'Passport1.4'
|
||||
|
||||
PHOTO_MAX_SIZE = 10 * 1024 * 1024
|
||||
|
||||
def register(app: web.Application) -> None:
|
||||
util.misc.add_to_jinja_env(app, 'msn', TMPL_DIR, globals = {
|
||||
'date_format': util.misc.date_format,
|
||||
@@ -29,6 +31,7 @@ def register(app: web.Application) -> None:
|
||||
'bool_to_str': bool_to_str,
|
||||
'contact_is_favorite': _contact_is_favorite,
|
||||
'datetime': datetime,
|
||||
'settings': settings
|
||||
})
|
||||
|
||||
# MSN >= 5
|
||||
@@ -57,242 +60,73 @@ def register(app: web.Application) -> None:
|
||||
app.router.add_post('/RST2.srf', lambda req: handle_rst(req, rst2 = True))
|
||||
|
||||
# MSN >= 8
|
||||
app.router.add_post('/storageservice/SchematizedStore.asmx', handle_storageservice)
|
||||
app.router.add_post('/ppsecure/sha1auth.srf', handle_sha1auth)
|
||||
app.router.add_post('/rsi/rsi.asmx', handle_rsi)
|
||||
app.router.add_post('/OimWS/oim.asmx', handle_oim)
|
||||
app.router.add_get('/svcs/msn-video-feeds/', handle_videofeed)
|
||||
app.router.add_get('/svcs/feed', lambda req: handle_videofeed(req, get_videos = True))
|
||||
|
||||
|
||||
# MSN >= 14
|
||||
app.router.add_post('/whatsnew/whatsnewservice.asmx', handle_whatsnew)
|
||||
app.router.add_get('/svcs/tab={id}', handle_tabs_newer)
|
||||
|
||||
|
||||
# MSN >= 15
|
||||
app.router.add_post('/sqm/messenger/sqmserver.dll', handle_blankok)
|
||||
app.router.add_post('/sqm/WindowsLive/sqmserver.dll', handle_blankok)
|
||||
app.router.add_post('/uploaddata.aspx', handle_blankok)
|
||||
app.router.add_get('/ppcrlcheck.srf', handle_ppcrlcheck)
|
||||
app.router.add_post('/profile/profile.asmx', handle_blankok) # TODO: do the thing
|
||||
app.router.add_post('/profile/profile.asmx', handle_profile)
|
||||
app.router.add_get(r'/~Live.ConfigServer/{junk:.*}/~op-GetClientConfig/{tail:.*}', handle_msgrconfig16)
|
||||
app.router.add_get(r'/~Live.ConfigServer.SuiteUpdate/{tail:.*}', handle_suiteupdate)
|
||||
app.router.add_get(r'/~Live.ConfigServer.PSA/{tail:.*}', handle_socialint)
|
||||
app.router.add_get('/svcs/GameBrowser', handle_gamebrowser)
|
||||
|
||||
app.router.add_post('/Users({cid})/Status', handle_user_status)
|
||||
app.router.add_post('/Users({cid})/files/{folder}', handle_user_files)
|
||||
app.router.add_get('/photos/{uuid}/{name}', handle_photo)
|
||||
|
||||
# Misc
|
||||
app.router.add_get('/{i}meen_{locale}/{id}', handle_msn_redirect)
|
||||
|
||||
|
||||
async def handle_blankok(req: web.Request) -> web.Response:
|
||||
return web.Response(status = 200)
|
||||
|
||||
async def handle_storageservice(req: web.Request) -> web.Response:
|
||||
|
||||
async def handle_profile(req: web.Request) -> web.Response:
|
||||
backend = req.app['backend']
|
||||
header, action, bs, token = await preprocess_soap(req)
|
||||
assert bs is not None
|
||||
soapaction = (req.headers.get('SOAPAction') or '')
|
||||
if soapaction.startswith('"') and soapaction.endswith('"'):
|
||||
soapaction = soapaction[1:-1]
|
||||
storage_ns = ('w10' if soapaction.startswith('http://www.msn.com/webservices/storage/w10/') else '2008')
|
||||
header, action, bs, token = await preprocess_soap(req) # was missing entirely
|
||||
user = _get_user_from_token(backend, bs, token)
|
||||
if user is None:
|
||||
raise web.HTTPInternalServerError()
|
||||
|
||||
action_str = get_tag_localname(action)
|
||||
now_str = util.misc.date_format(datetime.utcnow())
|
||||
user = bs.user
|
||||
cachekey = secrets.token_urlsafe(172)
|
||||
|
||||
cid = cid_format(user.uuid)
|
||||
|
||||
if action_str == 'GetProfile':
|
||||
roaming_info = backend.user_service.get_roaming_info(user)
|
||||
assert roaming_info is not None
|
||||
|
||||
# Resolve the active avatar using the md5 stored in users.avatar.
|
||||
# find_avatar_file returns None if no avatar has been uploaded yet.
|
||||
avatar_md5 = user.avatar
|
||||
mime = None
|
||||
image_size = 0
|
||||
image_thumb_size = 0
|
||||
if action_str in ('Get', 'GetMany'):
|
||||
heads = { cid_format(head.uuid, decimal = True): head for head in [user] + [ctc.head for ctc in backend._load_detail(user).contacts.values()] }
|
||||
if action_str == 'Get':
|
||||
requested = [(heads.get(str(find_element(action, 'V1'))) or user, str(find_element(action, 'V2')))]
|
||||
else:
|
||||
requested = [(heads[str(v1)], None) for v1 in action.findall('.//{*}ProfileId/{*}V1') if str(v1) in heads]
|
||||
|
||||
if avatar_md5:
|
||||
full_file = find_avatar_file(user.uuid, avatar_md5, small=False)
|
||||
thumb_file = find_avatar_file(user.uuid, avatar_md5, small=True)
|
||||
profiles = [] # type: List[Dict[str, Any]]
|
||||
for head, puid in requested:
|
||||
roaming_info = backend.user_service.get_roaming_info(head)
|
||||
if roaming_info is None: continue
|
||||
profiles.append({ 'user': head, 'cid': cid_format(head.uuid), 'puid': puid, 'roaming_info': roaming_info })
|
||||
if not profiles and action_str == 'Get':
|
||||
raise web.HTTPInternalServerError()
|
||||
|
||||
if full_file and full_file.is_file():
|
||||
ext = full_file.suffix.lstrip('.').lower()
|
||||
mime = ext
|
||||
image_size = full_file.stat().st_size
|
||||
|
||||
if thumb_file and thumb_file.is_file():
|
||||
image_thumb_size = thumb_file.stat().st_size
|
||||
|
||||
return render(req, 'msn:storageservice/GetProfileResponse.xml', {
|
||||
'storage_ns': storage_ns,
|
||||
return render(req, 'msn:profile/ProfileResponse.xml', {
|
||||
'action': action_str,
|
||||
'profiles': profiles,
|
||||
'cachekey': cachekey,
|
||||
'cid': cid,
|
||||
'pptoken1': token,
|
||||
'user': user,
|
||||
'now': now_str,
|
||||
'mime': mime,
|
||||
'size_static': image_size,
|
||||
'size_small': image_thumb_size,
|
||||
'roaming_info': roaming_info,
|
||||
'host': settings.USERSTORAGE_HOST,
|
||||
})
|
||||
if action_str == 'FindDocuments':
|
||||
# TODO: FindDocuments
|
||||
return render(req, 'msn:storageservice/FindDocumentsResponse.xml', {
|
||||
'storage_ns': storage_ns,
|
||||
'cachekey': cachekey,
|
||||
'cid': cid,
|
||||
'pptoken1': token,
|
||||
'user': user,
|
||||
})
|
||||
if action_str == 'UpdateProfile':
|
||||
delete_psm = False
|
||||
delete_name = False
|
||||
delete_avatar = False
|
||||
|
||||
# TODO: More properties?
|
||||
|
||||
# Update to roaming name/message
|
||||
# ```
|
||||
# <UpdateProfile xmlns="http://www.msn.com/webservices/storage/w10">
|
||||
# <profile>
|
||||
# <ResourceID>862d987eb60b7a63!106</ResourceID>
|
||||
# <ExpressionProfile>
|
||||
# <FreeText>Update</FreeText>
|
||||
# <DisplayName>Society is betrayal</DisplayName>
|
||||
# <PersonalStatus>Prosperity is the best medicine. :)</PersonalStatus>
|
||||
# </ExpressionProfile>
|
||||
# </profile>
|
||||
# </UpdateProfile>
|
||||
# ```
|
||||
|
||||
# Remove roaming message
|
||||
# ```
|
||||
# <UpdateProfile xmlns="http://www.msn.com/webservices/storage/w10">
|
||||
# <profile>
|
||||
# <ResourceID>bb4542ce2eacdbde!106</ResourceID>
|
||||
# <ExpressionProfile>
|
||||
# <FreeText>Update</FreeText>
|
||||
# <DisplayName>%walkingphas3r%</DisplayName>
|
||||
# <Flags>0</Flags>
|
||||
# </ExpressionProfile>
|
||||
# </profile>
|
||||
# <profileAttributesToDelete>
|
||||
# <ExpressionProfileAttributes>
|
||||
# <PersonalStatus>true</PersonalStatus>
|
||||
# </ExpressionProfileAttributes>
|
||||
# </profileAttributesToDelete>
|
||||
# </UpdateProfile>
|
||||
# ```
|
||||
|
||||
expression_profile = find_element(action, 'ExpressionProfile')
|
||||
name = find_element(expression_profile, 'DisplayName')
|
||||
message = find_element(expression_profile, 'PersonalStatus')
|
||||
|
||||
attributes_to_delete = find_element(action, 'profileAttributesToDelete/ExpressionProfileAttributes')
|
||||
if attributes_to_delete is not None:
|
||||
# `PersonalStatus` and `DisplayName` is the only known attribute that has the ability to be deleted
|
||||
delete_psm = find_element(attributes_to_delete, 'PersonalStatus') or False
|
||||
assert isinstance(delete_psm, bool)
|
||||
delete_name = find_element(attributes_to_delete, 'DisplayName') or False
|
||||
assert isinstance(delete_name, bool)
|
||||
|
||||
name = find_element(action, 'DisplayName')
|
||||
message = find_element(action, 'PersonalStatus')
|
||||
|
||||
if name:
|
||||
backend.user_service.save_single_roaming(user, { 'name': name })
|
||||
if message and not delete_psm:
|
||||
backend.user_service.save_single_roaming(user, { 'message': message })
|
||||
|
||||
if delete_psm:
|
||||
backend.user_service.save_single_roaming(user, { 'message': '' })
|
||||
if delete_name:
|
||||
backend.user_service.save_single_roaming(user, { 'name': '' })
|
||||
|
||||
return render(req, 'msn:storageservice/UpdateProfileResponse.xml', {
|
||||
'storage_ns': storage_ns,
|
||||
'cachekey': cachekey,
|
||||
'cid': cid,
|
||||
'pptoken1': token,
|
||||
'user': user
|
||||
})
|
||||
if action_str == 'DeleteRelationships':
|
||||
# TODO: DeleteRelationships
|
||||
return render(req, 'msn:storageservice/DeleteRelationshipsResponse.xml', {
|
||||
'storage_ns': storage_ns,
|
||||
'cachekey': cachekey,
|
||||
'cid': cid,
|
||||
'pptoken1': token,
|
||||
'user': user,
|
||||
})
|
||||
if action_str in ('CreateDocument', 'UpdateDocument'):
|
||||
op = 'Update' if action_str == 'UpdateDocument' else 'Create'
|
||||
return handle_document(req, action, op, storage_ns, user, cid, token, backend)
|
||||
if action_str == 'CreateRelationships':
|
||||
# TODO: CreateRelationships
|
||||
return render(req, 'msn:storageservice/CreateRelationshipsResponse.xml', {
|
||||
'storage_ns': storage_ns,
|
||||
'cachekey': cachekey,
|
||||
'cid': cid,
|
||||
'pptoken1': token,
|
||||
'user': user,
|
||||
})
|
||||
if action_str in { 'ShareItem' }:
|
||||
# TODO: ShareItem
|
||||
return unknown_soap(req, header, action, expected = True)
|
||||
|
||||
return unknown_soap(req, header, action)
|
||||
|
||||
|
||||
def handle_document(
|
||||
req: web.Request,
|
||||
action: Any,
|
||||
op_type: str, # 'Create' or 'Update'
|
||||
storage_ns: str,
|
||||
user: models.User,
|
||||
cid: str,
|
||||
token: str,
|
||||
backend: Backend,
|
||||
) -> web.Response:
|
||||
streamtype = find_element(action, 'DocumentStreamType')
|
||||
|
||||
if streamtype == 'UserTileStatic':
|
||||
raw_b64 = find_element(action, 'Data')
|
||||
if raw_b64:
|
||||
try:
|
||||
data = base64.b64decode(raw_b64)
|
||||
except Exception:
|
||||
return web.HTTPInternalServerError(text='')
|
||||
|
||||
err = _store_avatar_from_bytes(backend, user, data)
|
||||
if err is not None:
|
||||
return err
|
||||
|
||||
return render(req, 'msn:storageservice/{}DocumentResponse.xml'.format(op_type), {
|
||||
'storage_ns': storage_ns,
|
||||
'cid': cid,
|
||||
'pptoken1': token,
|
||||
'user': user,
|
||||
})
|
||||
|
||||
|
||||
def _store_avatar_from_bytes(
|
||||
backend: Backend,
|
||||
user: models.User,
|
||||
data: bytes,
|
||||
) -> Optional[web.Response]:
|
||||
ext = get_img_type(data)
|
||||
if ext is None:
|
||||
return web.HTTPInternalServerError(text='AZUL: Unsupported image format')
|
||||
|
||||
try:
|
||||
backend.user_service.save_avatar(user, data, ext)
|
||||
except Exception:
|
||||
return web.HTTPInternalServerError(text='')
|
||||
|
||||
return None
|
||||
|
||||
|
||||
|
||||
async def handle_sha1auth(req: web.Request) -> web.Response:
|
||||
post = await req.post()
|
||||
|
||||
@@ -305,11 +139,11 @@ async def handle_sha1auth(req: web.Request) -> web.Response:
|
||||
return web.HTTPInternalServerError()
|
||||
|
||||
return web.HTTPFound(token_fields['ru'])
|
||||
|
||||
|
||||
async def handle_ppcrlcheck(req: web.Request) -> web.Response:
|
||||
response = '<config>\r\n\t<deviceid minversion="16.000.26889.00"/>\r\n\t<mobilecfg minversion="16.000.26208.0"/>\r\n</config>'
|
||||
return web.HTTPOk(body=response)
|
||||
|
||||
|
||||
async def handle_rsi(req: web.Request) -> web.Response:
|
||||
_, action, bs, token = await preprocess_soap_rsi(req)
|
||||
|
||||
@@ -345,7 +179,7 @@ async def handle_rsi(req: web.Request) -> web.Response:
|
||||
return render(req, 'msn:oim/DeleteMessagesResponse.xml')
|
||||
|
||||
return render(req, 'msn:Fault.doesnotexist.xml', { 'action': action_str })
|
||||
|
||||
|
||||
async def handle_oim(req: web.Request) -> web.Response:
|
||||
header, _, body_content, bs, _ = await preprocess_soap_oimws(req)
|
||||
soapaction = (req.headers.get('SOAPAction') or '')
|
||||
@@ -472,6 +306,20 @@ async def handle_oim(req: web.Request) -> web.Response:
|
||||
}, status = 500)
|
||||
oim_body_normal = oim_body.strip()
|
||||
oim_body_normal = base64.b64decode(oim_body_normal).decode('utf-8')
|
||||
if len(oim_body_normal.encode('utf-8')) > OIM_MAX_SIZE:
|
||||
return render(req, 'msn:oim/Fault.messagetoolarge.xml', {
|
||||
'owsns': owsns,
|
||||
}, status = 500)
|
||||
|
||||
# An offline message is a message like any other: over the sender's rate (or at the maximum warning level) it's
|
||||
# refused, and its recipient may warn (vote) its sender for it
|
||||
if not backend.util_message_allowed(user, models.MessageData(sender = user, type = models.MessageType.Chat, text = oim_body_normal)):
|
||||
return render(req, 'msn:oim/Fault.throttle.xml', {
|
||||
'owsns': owsns,
|
||||
}, status = 500)
|
||||
recipient_user = backend._load_user_record(recipient_uuid)
|
||||
if recipient_user is not None:
|
||||
backend.abuse.track_message(user, recipient_user)
|
||||
|
||||
backend.user_service.save_oim(
|
||||
bs, recipient_uuid, oim_run_id, host, oim_body_normal, True, from_friendly = friendlyname_str,
|
||||
@@ -486,6 +334,8 @@ async def handle_oim(req: web.Request) -> web.Response:
|
||||
'seq': oim_msg_seq,
|
||||
'owsns': owsns,
|
||||
})
|
||||
|
||||
OIM_MAX_SIZE = 64 * 1024
|
||||
|
||||
def _is_on_al(uuid: str, backend: Backend, user: models.User, detail: models.UserDetail) -> bool:
|
||||
contact = detail.contacts.get(uuid)
|
||||
@@ -504,7 +354,7 @@ def _is_on_al(uuid: str, backend: Backend, user: models.User, detail: models.Use
|
||||
if ctc_me is not None and not ctc_me.lists & models.ContactList.BL:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
async def preprocess_soap_rsi(req: web.Request) -> Tuple[Any, Any, Optional[BackendSession], str]:
|
||||
from lxml.objectify import fromstring as parse_xml
|
||||
|
||||
@@ -526,7 +376,7 @@ async def preprocess_soap_rsi(req: web.Request) -> Tuple[Any, Any, Optional[Back
|
||||
#if settings.DEBUG: print('Action: {}'.format(get_tag_localname(action)))
|
||||
|
||||
return header, action, bs, token
|
||||
|
||||
|
||||
async def preprocess_soap_oimws(req: web.Request) -> Tuple[Any, str, str, Optional[BackendSession], str]:
|
||||
from lxml.objectify import fromstring as parse_xml
|
||||
|
||||
@@ -545,28 +395,175 @@ async def preprocess_soap_oimws(req: web.Request) -> Tuple[Any, str, str, Option
|
||||
body_content = str(find_element(root, 'Body/Content')).replace('\r\n', '\n')
|
||||
|
||||
return header, body_msgtype, body_content, bs, token
|
||||
|
||||
# TODO: Make this actually accurate
|
||||
|
||||
async def handle_whatsnew(req: web.Request) -> web.Response:
|
||||
whatsnew = ''
|
||||
with open('config/whatsnew.json', 'rb') as f:
|
||||
whatsnew_list = json.loads(f.read())
|
||||
f.close()
|
||||
|
||||
if len(whatsnew_list) > 0:
|
||||
whatsnew_dict = whatsnew_list[0]
|
||||
with open(TMPL_DIR + '/whatsnew/WhatsNewResponse.xml') as fh:
|
||||
whatsnew = fh.read()
|
||||
whatsnew = whatsnew.format(
|
||||
date=whatsnew_dict['date'],
|
||||
url=whatsnew_dict['url'],
|
||||
title=whatsnew_dict['title'],
|
||||
appName=whatsnew_dict['appName'],
|
||||
content=whatsnew_dict['content']
|
||||
)
|
||||
|
||||
return web.HTTPOk(content_type = 'text/xml', text = whatsnew)
|
||||
backend: Backend = req.app['backend']
|
||||
header, action, bs, token = await preprocess_soap(req)
|
||||
user = _get_user_from_token(backend, bs, token)
|
||||
if user is None:
|
||||
raise web.HTTPInternalServerError()
|
||||
|
||||
action_str = get_tag_localname(action)
|
||||
if action_str not in ('GetContactsRecentActivity', 'GetBatchRecentActivity'):
|
||||
return unknown_soap(req, header, action)
|
||||
|
||||
detail = backend._load_detail(user)
|
||||
if action_str == 'GetContactsRecentActivity':
|
||||
# The user's own activities, their contacts' and service announcements
|
||||
publishers = [user] + [
|
||||
ctc.head for ctc in detail.contacts.values() if ctc.lists & models.ContactList.FL and not ctc.lists & models.ContactList.BL
|
||||
]
|
||||
if not beacon_enabled(user):
|
||||
publishers = []
|
||||
else:
|
||||
# Activities of specific people (contact card, own profile)
|
||||
cids = { cid.text for cid in action.findall('.//{*}Cid') }
|
||||
publishers = [head for head in [user] + [ctc.head for ctc in detail.contacts.values()] if cid_format(head.uuid, decimal = True) in cids]
|
||||
|
||||
activities = backend.user_service.get_activities(
|
||||
[head.uuid for head in publishers], int(str(find_element(action, 'count') or 10)),
|
||||
announcements = (action_str == 'GetContactsRecentActivity'),
|
||||
)
|
||||
|
||||
return render(req, 'msn:whatsnew/WhatsNewResponse.xml', {
|
||||
'action': action_str,
|
||||
'owner_cid': cid_format(user.uuid, decimal = True),
|
||||
'locale': str(find_element(action, 'locales/string') or 'en-us'),
|
||||
'activities': activities,
|
||||
'types': { int(activity.type) for activity in activities },
|
||||
'detail': detail,
|
||||
'now': datetime.utcnow(),
|
||||
})
|
||||
|
||||
async def handle_user_status(req: web.Request) -> web.Response:
|
||||
# WLM 2011 shares status messages to "What's New" through the Live Atom API
|
||||
from lxml.etree import fromstring as parse_xml
|
||||
|
||||
backend: Backend = req.app['backend']
|
||||
user, bs = _get_live_api_user(req)
|
||||
cid = req.match_info['cid']
|
||||
|
||||
try:
|
||||
message = parse_xml(await req.read()).findtext('{http://www.w3.org/2005/Atom}title') or ''
|
||||
except Exception:
|
||||
raise web.HTTPBadRequest()
|
||||
|
||||
_set_status_message(backend, user, bs, message)
|
||||
|
||||
message_xml = encode_xml_ne(message)
|
||||
return web.HTTPOk(content_type = 'application/atom+xml', text = (
|
||||
'<?xml version="1.0" encoding="utf-8"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:live="http://api.live.com/schemas">'
|
||||
f'<id>{req.url}</id><updated>{util.misc.date_format(datetime.utcnow())}</updated>'
|
||||
f'<live:legacyPsm>{message_xml}</live:legacyPsm><title>{message_xml}</title>'
|
||||
f'<author><name>{encode_xml_ne(user.status.name)}</name><live:cid>{cid}</live:cid></author></entry>'
|
||||
))
|
||||
|
||||
def _get_live_api_user(req: web.Request) -> Tuple[models.User, Optional[BackendSession]]:
|
||||
backend: Backend = req.app['backend']
|
||||
auth = req.headers.get('Authorization') or ''
|
||||
token = (auth.split('t=', 1)[1][:20] if 't=' in auth else '')
|
||||
bs = backend.util_get_sess_by_token(token)
|
||||
user = _get_user_from_token(backend, bs, token)
|
||||
if user is None or cid_format(user.uuid, decimal = True) != req.match_info['cid']:
|
||||
raise web.HTTPUnauthorized()
|
||||
return user, bs
|
||||
|
||||
def _set_status_message(backend: Backend, user: models.User, bs: Optional[BackendSession], message: str) -> None:
|
||||
activity_added = backend.user_service.save_single_roaming(user, { 'message': message })
|
||||
sessions = backend.util_get_sessions_by_user(user)
|
||||
if bs is None or bs not in sessions:
|
||||
bs = (sessions[0] if sessions else None)
|
||||
if bs is not None and message != bs.user.status.message:
|
||||
bs.me_update({ 'message': message, 'notify_self': True })
|
||||
if activity_added:
|
||||
backend.notify_whats_new(user)
|
||||
|
||||
async def handle_user_files(req: web.Request) -> web.Response:
|
||||
from lxml.etree import fromstring as parse_xml, XMLSyntaxError
|
||||
|
||||
backend: Backend = req.app['backend']
|
||||
user, _ = _get_live_api_user(req)
|
||||
cid = req.match_info['cid']
|
||||
|
||||
if not req.content_type.startswith('multipart/'):
|
||||
raise web.HTTPUnsupportedMediaType()
|
||||
entry = None # type: Optional[Any]
|
||||
data = None # type: Optional[bytes]
|
||||
try:
|
||||
reader = await req.multipart()
|
||||
while True:
|
||||
part = await reader.next()
|
||||
if part is None: break
|
||||
body = await _read_part(part, PHOTO_MAX_SIZE)
|
||||
if entry is None and 'atom+xml' in (part.headers.get('Content-Type') or ''):
|
||||
entry = parse_xml(body)
|
||||
elif data is None:
|
||||
data = body
|
||||
except (ValueError, XMLSyntaxError):
|
||||
raise web.HTTPBadRequest()
|
||||
if entry is None or not data:
|
||||
raise web.HTTPBadRequest()
|
||||
ext = get_img_type(data)
|
||||
if ext is None:
|
||||
raise web.HTTPUnsupportedMediaType()
|
||||
|
||||
title = entry.findtext('{http://www.w3.org/2005/Atom}title') or ''
|
||||
summary = entry.findtext('{http://www.w3.org/2005/Atom}summary') or ''
|
||||
name = await asyncio.get_running_loop().run_in_executor(None, store_photo_file, user.uuid, data, ext)
|
||||
media_url = 'https://{}/photos/{}/{}'.format(settings.USERSTORAGE_HOST, user.uuid, name)
|
||||
if backend.user_service.add_activity(user, models.ActivityType.Photo, title = title, text = summary, url = media_url):
|
||||
backend.notify_whats_new(user)
|
||||
|
||||
location = '{}/{}'.format(str(req.url).rstrip('/'), name)
|
||||
entry_url = encode_xml_ne(location)
|
||||
media_url_xml = encode_xml_ne(media_url)
|
||||
mime = 'image/' + ext
|
||||
now_str = util.misc.date_format(datetime.utcnow())
|
||||
return web.Response(status = 201, content_type = 'application/atom+xml', headers = { 'Location': location }, text = (
|
||||
'<?xml version="1.0" encoding="utf-8"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:live="http://api.live.com/schemas">'
|
||||
f'<id>{entry_url}</id><title>{encode_xml_ne(title)}</title><summary>{encode_xml_ne(summary)}</summary>'
|
||||
f'<published>{now_str}</published><updated>{now_str}</updated>'
|
||||
f'<author><name>{encode_xml_ne(user.status.name or "")}</name><live:cid>{cid}</live:cid></author>'
|
||||
f'<link rel="self" type="application/atom+xml" href="{entry_url}"/><link rel="edit" type="application/atom+xml" href="{entry_url}"/>'
|
||||
f'<link rel="edit-media" type="{mime}" href="{media_url_xml}"/><link rel="alternate" type="{mime}" href="{media_url_xml}"/>'
|
||||
f'<content type="{mime}" src="{media_url_xml}"/><live:type>photo</live:type></entry>'
|
||||
))
|
||||
|
||||
async def _read_part(part: Any, limit: int) -> bytes:
|
||||
chunks = [] # type: List[bytes]
|
||||
size = 0
|
||||
while True:
|
||||
chunk = await part.read_chunk()
|
||||
if not chunk: break
|
||||
size += len(chunk)
|
||||
if size > limit:
|
||||
raise web.HTTPRequestEntityTooLarge(max_size = limit, actual_size = size)
|
||||
chunks.append(chunk)
|
||||
return b''.join(chunks)
|
||||
|
||||
async def handle_photo(req: web.Request) -> web.Response:
|
||||
# Photos shared as a status, shown in "What's New"
|
||||
user_uuid = req.match_info['uuid']
|
||||
name = req.match_info['name']
|
||||
if not (re.fullmatch(r'[0-9a-f-]{36}', user_uuid) and re.fullmatch(r'[0-9a-f]{16}\.(?:jpeg|png|gif)', name)):
|
||||
raise web.HTTPNotFound()
|
||||
result = await asyncio.get_running_loop().run_in_executor(None, get_photo_data, user_uuid, name)
|
||||
if result is None:
|
||||
raise web.HTTPNotFound()
|
||||
photo, content_type = result
|
||||
return web.Response(body = photo, content_type = content_type)
|
||||
|
||||
def _get_user_from_token(backend: Backend, bs: Optional[BackendSession], token: Optional[str]) -> Optional[models.User]:
|
||||
# Social services are also used before (or without) a notification server session
|
||||
if bs is not None:
|
||||
return bs.user
|
||||
if not token:
|
||||
return None
|
||||
tpl = backend.login_auth_service.get_token('ns/login', token)
|
||||
if tpl is None:
|
||||
return None
|
||||
return backend._load_user_record(tpl[0])
|
||||
|
||||
async def handle_today(req: web.Request) -> web.Response:
|
||||
return render(req, 'msn:svcs/MSNToday.html', {
|
||||
'title': "CrossTalk Today",
|
||||
@@ -574,21 +571,21 @@ async def handle_today(req: web.Request) -> web.Response:
|
||||
'wlm': req.query.get('wlm') or False,
|
||||
'windowslive': req.query.get('windowslive') or False
|
||||
})
|
||||
|
||||
|
||||
async def handle_gamebrowser(req: web.Request) -> web.Response:
|
||||
return render(req, 'msn:svcs/GameBrowser.html', {
|
||||
'title': "Game Browser | CrossTalk",
|
||||
})
|
||||
|
||||
|
||||
async def handle_portal(req: web.Request) -> web.Response:
|
||||
return web.HTTPFound(f'http://{settings.TODAY_HOSTs}/start/msn')
|
||||
|
||||
return web.HTTPFound(f'http://{settings.TODAY_HOST}/start/msn')
|
||||
|
||||
async def handle_textadredir(req: web.Request) -> web.Response:
|
||||
return web.HTTPFound(f'http://{settings.AD_HOST}/ads/txt')
|
||||
|
||||
|
||||
async def handle_banneradredir(req: web.Request) -> web.Response:
|
||||
return web.HTTPFound(f'http://{settings.AD_HOST}/ads/banner')
|
||||
|
||||
|
||||
async def handle_msn_redirect(req: web.Request) -> web.Response:
|
||||
i = req.match_info['i']
|
||||
id = req.match_info['id']
|
||||
@@ -600,42 +597,42 @@ async def handle_msn_redirect(req: web.Request) -> web.Response:
|
||||
return web.HTTPFound('/start')
|
||||
|
||||
return web.HTTPFound('http://g.msn.com{}'.format(req.path_qs))
|
||||
|
||||
|
||||
async def handle_msn5ads(req: web.Request) -> web.Response:
|
||||
response = '<?xml version="1.0"?><msn-data><RefreshLogin>False</RefreshLogin><RefreshInterval>10080</RefreshInterval></msn-data>'
|
||||
return web.HTTPOk(body=response)
|
||||
|
||||
|
||||
async def handle_suiteupdate(req: web.Request) -> web.Response:
|
||||
return render(req, 'msn:config/SuiteUpdate.xml')
|
||||
|
||||
|
||||
async def handle_socialint(req: web.Request) -> web.Response:
|
||||
return render(req, 'msn:config/Config.PSA.xml')
|
||||
|
||||
|
||||
async def handle_tabs(req: web.Request) -> web.Response:
|
||||
with open('config/tabs.json') as fh:
|
||||
tabs_data = json.load(fh)
|
||||
|
||||
|
||||
tmpl = req.app['jinja_env'].get_template('msn:svcs/svcs_tabs.xml')
|
||||
tab_tmpl = tmpl.render(tabs=tabs_data)
|
||||
|
||||
|
||||
return web.HTTPOk(content_type='text/xml', text='<?xml version="1.0"?>\n' + tab_tmpl)
|
||||
|
||||
|
||||
# TODO: Unify the tabs handlers so spaghetti code isn't a problem
|
||||
async def handle_tabs_newer(req: web.Request) -> web.Response:
|
||||
id = int(req.match_info['id'])
|
||||
|
||||
|
||||
with open('config/tabs.json') as fh:
|
||||
tabs_data = json.load(fh)
|
||||
|
||||
|
||||
tab_data = next((tab for tab in tabs_data if tab["id"] == id), None)
|
||||
if not tab_data:
|
||||
return web.HTTPNotFound(text="Tab not found")
|
||||
|
||||
|
||||
tmpl = req.app['jinja_env'].get_template('msn:svcs/svcs_tabs_newer.xml')
|
||||
tab_tmpl = tmpl.render(tab=tab_data)
|
||||
|
||||
|
||||
return web.HTTPOk(content_type='text/xml', text=tab_tmpl)
|
||||
|
||||
|
||||
async def handle_msgrconfig(req: web.Request) -> web.Response:
|
||||
if req.method == 'POST':
|
||||
body = await req.read() # type: Optional[bytes]
|
||||
@@ -645,15 +642,14 @@ async def handle_msgrconfig(req: web.Request) -> web.Response:
|
||||
if msgr_config == 'INVALID_VER':
|
||||
return web.Response(status = 500)
|
||||
return web.HTTPOk(content_type = 'text/xml', text = msgr_config)
|
||||
|
||||
MsgrConfigVariant = Literal['msn', 'wlm8', 'wlm14', 'wlm16']
|
||||
|
||||
async def handle_msgrconfig16(req: web.Request) -> web.Response:
|
||||
body = await req.read()
|
||||
msgr_config = _get_msgr_config_16(req, body)
|
||||
return web.HTTPOk(content_type = 'text/xml', text = msgr_config)
|
||||
return web.HTTPOk(content_type = 'text/xml', text = _render_msgr_config(req, 'wlm16'))
|
||||
|
||||
def _get_msgr_config(req: web.Request, body: Optional[bytes]) -> str:
|
||||
query = req.query
|
||||
result = None # type: Optional[str]
|
||||
ver = query.get('ver') or ''
|
||||
|
||||
if ver:
|
||||
@@ -662,56 +658,28 @@ def _get_msgr_config(req: web.Request, body: Optional[bytes]) -> str:
|
||||
|
||||
config_ver = ver.split('.', 4)
|
||||
if 8 <= int(config_ver[0]) <= 9:
|
||||
with open(TMPL_DIR + '/config/MsgrConfig.wlm.8.xml') as fh:
|
||||
config = fh.read()
|
||||
with open('config/tabs.json') as fh:
|
||||
with open(TMPL_DIR + '/svcs/svcs_tabs.xml') as th:
|
||||
template = th.read()
|
||||
tabs_data = json.load(fh)
|
||||
tmpl_before = req.app['jinja_env'].from_string(template)
|
||||
tab_tmpl = tmpl_before.render(tabs=tabs_data, settings=settings)
|
||||
result = config.format(tabs = tab_tmpl)
|
||||
return _render_msgr_config(req, 'wlm8')
|
||||
elif int(config_ver[0]) >= 14:
|
||||
with open(TMPL_DIR + '/config/MsgrConfig.wlm.14.xml') as fh:
|
||||
template = fh.read()
|
||||
with open('config/tabs.json') as fh:
|
||||
tabs_data = json.load(fh)
|
||||
tmpl_before = req.app['jinja_env'].from_string(template)
|
||||
tmpl = tmpl_before.render(tabs=tabs_data, settings=settings)
|
||||
result = tmpl
|
||||
return _render_msgr_config(req, 'wlm14')
|
||||
elif body is not None:
|
||||
with open(TMPL_DIR + '/config/MsgrConfig.msn.envelope.xml') as fh:
|
||||
envelope = fh.read()
|
||||
with open(TMPL_DIR + '/config/MsgrConfig.msn.xml') as fh:
|
||||
config = fh.read()
|
||||
with open('config/tabs.json') as fh:
|
||||
with open(TMPL_DIR + '/svcs/svcs_tabs.xml') as th:
|
||||
template = th.read()
|
||||
tabs_data = json.load(fh)
|
||||
tmpl_before = req.app['jinja_env'].from_string(template)
|
||||
tab_tmpl = tmpl_before.render(tabs=tabs_data)
|
||||
result = envelope.format(MsgrConfig = config.format(tabs = tab_tmpl, settings = settings))
|
||||
# MSN Messenger 6.0 - 7.5 only use the SOAP `GetClientConfig` action
|
||||
return _render_msgr_config(req, 'msn', soap = True)
|
||||
|
||||
return result or ''
|
||||
return ''
|
||||
|
||||
def _get_msgr_config_16(req: web.Request, body: Optional[bytes]) -> str:
|
||||
with open(TMPL_DIR + '/config/MsgrConfig.wlm.16.xml') as fh:
|
||||
template = fh.read()
|
||||
def _render_msgr_config(req: web.Request, variant: MsgrConfigVariant, *, soap: bool = False) -> str:
|
||||
with open('config/tabs.json') as fh:
|
||||
tabs_data = json.load(fh)
|
||||
tmpl_before = req.app['jinja_env'].from_string(template)
|
||||
tmpl = tmpl_before.render(tabs=tabs_data, settings=settings)
|
||||
result = tmpl
|
||||
|
||||
return result or ''
|
||||
|
||||
tmpl = req.app['jinja_env'].get_template('msn:config/MsgrConfig.xml')
|
||||
return tmpl.render(variant = variant, soap = soap, tabs = tabs_data, settings = settings)
|
||||
|
||||
PassportURLs = 'PassportURLs'
|
||||
|
||||
|
||||
async def handle_nexus(req: web.Request) -> web.Response:
|
||||
return web.HTTPOk(headers = {
|
||||
PassportURLs: 'DALogin=https://{}{}'.format(settings.LOGIN_HOST, LOGIN_PATH),
|
||||
})
|
||||
|
||||
|
||||
async def handle_login(req: web.Request) -> web.Response:
|
||||
tmp = _extract_pp_credentials(req.headers.get('Authorization') or '')
|
||||
if tmp is None:
|
||||
@@ -727,7 +695,7 @@ async def handle_login(req: web.Request) -> web.Response:
|
||||
return web.HTTPOk(headers={
|
||||
'Authentication-Info': '{}da-status=success,from-PP=\'{}\''.format(PP, token),
|
||||
})
|
||||
|
||||
|
||||
async def handle_not_rst(req: web.Request) -> web.Response:
|
||||
if req.method == 'OPTIONS':
|
||||
return web.HTTPOk(headers = {
|
||||
@@ -750,6 +718,8 @@ async def handle_not_rst(req: web.Request) -> web.Response:
|
||||
token, _, _ = token_tpl
|
||||
headers['X-Token'] = token
|
||||
return web.HTTPOk(headers = headers)
|
||||
|
||||
DA_TOKEN_LIFETIME = 86400 * 30
|
||||
|
||||
async def handle_rst(req: web.Request, rst2: bool = False) -> web.Response:
|
||||
from lxml.objectify import fromstring as parse_xml
|
||||
@@ -760,17 +730,27 @@ async def handle_rst(req: web.Request, rst2: bool = False) -> web.Response:
|
||||
except:
|
||||
return render(req, 'msn:RST/{}.error.xml'.format('RST2' if rst2 else 'RST'))
|
||||
|
||||
email = find_element(root, 'Username')
|
||||
pwd = str(find_element(root, 'Password'))
|
||||
|
||||
if email is None or pwd is None:
|
||||
return render(req, 'msn:RST/{}.error.xml'.format('RST2' if rst2 else 'RST'))
|
||||
|
||||
backend: Backend = req.app['backend']
|
||||
|
||||
token_tpl = _login(req, email, pwd, binary_secret = True, lifetime = 86400)
|
||||
email = find_element(root, 'Username')
|
||||
pwd = str(find_element(root, 'Password'))
|
||||
# Saved passwords: IDCRL signs in with the `http://Passport.NET/tb` token (`BinaryDAToken0`) from its last sign-in
|
||||
# instead of a username and password
|
||||
da_token = find_element(root, 'Security/EncryptedData/CipherData/CipherValue')
|
||||
|
||||
uuid = backend.util_get_uuid_from_email(email)
|
||||
if email is not None:
|
||||
token_tpl = _login(req, email, pwd, binary_secret = True, lifetime = 86400)
|
||||
uuid = backend.util_get_uuid_from_email(email)
|
||||
elif da_token is not None:
|
||||
uuid = _get_uuid_from_da_token(backend, str(da_token))
|
||||
token_tpl = None
|
||||
if uuid is not None:
|
||||
user = backend._load_user_record(uuid)
|
||||
if user is not None:
|
||||
email = user.email
|
||||
token_tpl = _create_login_token(backend, uuid, binary_secret = True, lifetime = 86400)
|
||||
else:
|
||||
return render(req, 'msn:RST/{}.error.xml'.format('RST2' if rst2 else 'RST'))
|
||||
|
||||
if token_tpl is not None and uuid is not None:
|
||||
token, expiry, bsecret = token_tpl
|
||||
@@ -783,6 +763,11 @@ async def handle_rst(req: web.Request, rst2: bool = False) -> web.Response:
|
||||
cid = cid_format(uuid)
|
||||
puid = puid_format(uuid)
|
||||
|
||||
# The client stores this and sends it back to sign in again without the password
|
||||
da_token_new, _ = backend.login_auth_service.create_token('rst/da', [uuid], lifetime = DA_TOKEN_LIFETIME)
|
||||
datoken = base64.b64encode(da_token_new.encode('ascii')).decode('ascii')
|
||||
dabinarysecret = base64.b64encode(secrets.token_bytes(24)).decode('ascii')
|
||||
|
||||
assert req.transport is not None
|
||||
peername = req.transport.get_extra_info('peername')
|
||||
if peername:
|
||||
@@ -818,6 +803,8 @@ async def handle_rst(req: web.Request, rst2: bool = False) -> web.Response:
|
||||
lastname = "Doe",
|
||||
ip = req.headers.get('X-Forwarded-For', req.remote),
|
||||
pptoken1 = token,
|
||||
datoken = datoken,
|
||||
dabinarysecret = dabinarysecret,
|
||||
tokenxml = Markup(''.join(tokenxmls)),
|
||||
) if rst2 else tmpl.render(
|
||||
puidhex = puid,
|
||||
@@ -829,6 +816,8 @@ async def handle_rst(req: web.Request, rst2: bool = False) -> web.Response:
|
||||
lastname = "Doe",
|
||||
ip = req.headers.get('X-Forwarded-For', req.remote),
|
||||
pptoken1 = token,
|
||||
datoken = datoken,
|
||||
dabinarysecret = dabinarysecret,
|
||||
tokenxml = Markup(''.join(tokenxmls)),
|
||||
)),
|
||||
)
|
||||
@@ -836,7 +825,7 @@ async def handle_rst(req: web.Request, rst2: bool = False) -> web.Response:
|
||||
return render(req, 'msn:RST/{}.authfailed.xml'.format('RST2' if rst2 else 'RST'), {
|
||||
'timez': util.misc.date_format(datetime.utcnow()),
|
||||
})
|
||||
|
||||
|
||||
async def handle_videofeed(req: web.Request, get_videos: bool = False) -> web.Response:
|
||||
if not get_videos:
|
||||
return render(req, 'msn:svcs/videofeedroot.xml')
|
||||
@@ -869,18 +858,18 @@ async def handle_videofeed(req: web.Request, get_videos: bool = False) -> web.Re
|
||||
language="en-us",
|
||||
lastBuildDate=datetime.now(),
|
||||
ttl=10,
|
||||
copyright="© 2023 - 2025 the undergr0und",
|
||||
copyright="© 2023 - 2026 hiden",
|
||||
image=PyRSS2Gen.Image(
|
||||
url="http://hiden.cc/static/icon/misc/hidnet.png",
|
||||
title="CrossTalk Video - InDev",
|
||||
link="http://crosstalk.im"
|
||||
url="https://static.ugnet.xyz/svc/ct/logo/shadow.svg",
|
||||
title="CrossTalk Videos",
|
||||
link="https://crosstalk.im"
|
||||
),
|
||||
items=rss_items
|
||||
)
|
||||
|
||||
|
||||
rss_xml = rss_feed.to_xml(encoding="utf-8")
|
||||
return web.HTTPOk(content_type="text/xml", text=rss_xml)
|
||||
|
||||
|
||||
def _extract_pp_credentials(auth_str: str) -> Optional[Tuple[str, str]]:
|
||||
if not auth_str:
|
||||
return None
|
||||
@@ -893,7 +882,7 @@ def _extract_pp_credentials(auth_str: str) -> Optional[Tuple[str, str]]:
|
||||
email = auth['sign-in']
|
||||
pwd = auth['pwd']
|
||||
return email, pwd
|
||||
|
||||
|
||||
def _login(req: web.Request, email: str, pwd: str, binary_secret: bool = False, lifetime: int = 30) -> Optional[Tuple[str, datetime, Optional[str]]]:
|
||||
backend: Backend = req.app['backend']
|
||||
uuid = backend.user_service.login(email, pwd)
|
||||
@@ -901,11 +890,23 @@ def _login(req: web.Request, email: str, pwd: str, binary_secret: bool = False,
|
||||
username = email.lower()[:-len('@crosstalk.im')]
|
||||
uuid = backend.user_service.login_with_username(username, pwd)
|
||||
if uuid is None: return None
|
||||
return _create_login_token(backend, uuid, binary_secret = binary_secret, lifetime = lifetime)
|
||||
|
||||
def _create_login_token(backend: Backend, uuid: str, *, binary_secret: bool = False, lifetime: int = 30) -> Tuple[str, datetime, Optional[str]]:
|
||||
bsecret = None
|
||||
if binary_secret:
|
||||
bsecret = base64.b64encode(secrets.token_bytes(24)).decode('ascii')
|
||||
return (*backend.login_auth_service.create_token('ns/login', [uuid, bsecret], lifetime = lifetime), bsecret)
|
||||
|
||||
def _get_uuid_from_da_token(backend: Backend, cipher_value: str) -> Optional[str]:
|
||||
try:
|
||||
token = base64.b64decode(cipher_value).decode('ascii')
|
||||
except (ValueError, UnicodeDecodeError):
|
||||
return None
|
||||
tpl = backend.login_auth_service.get_token('rst/da', token)
|
||||
if tpl is None: return None
|
||||
return tpl[0]
|
||||
|
||||
def _contact_is_favorite(user_detail: models.UserDetail, ctc: models.Contact) -> bool:
|
||||
groups = user_detail._groups_by_uuid
|
||||
for group in ctc._groups.copy():
|
||||
|
||||
@@ -0,0 +1,253 @@
|
||||
from typing import Optional, Any
|
||||
from datetime import datetime
|
||||
import secrets, base64, settings, util.misc
|
||||
from aiohttp import web
|
||||
|
||||
from core import models
|
||||
from core.backend import Backend
|
||||
from util.avatar import get_img_type, find_avatar_file
|
||||
from ..misc import cid_format
|
||||
from .util import find_element, get_tag_localname, render, preprocess_soap, unknown_soap, storage_fault
|
||||
|
||||
def register(app: web.Application) -> None:
|
||||
# MSN >= 8
|
||||
app.router.add_post('/storageservice/SchematizedStore.asmx', handle_storageservice)
|
||||
|
||||
async def handle_storageservice(req: web.Request) -> web.Response:
|
||||
backend = req.app['backend']
|
||||
header, action, bs, token = await preprocess_soap(req)
|
||||
assert bs is not None
|
||||
soapaction = (req.headers.get('SOAPAction') or '')
|
||||
if soapaction.startswith('"') and soapaction.endswith('"'):
|
||||
soapaction = soapaction[1:-1]
|
||||
storage_ns = ('w10' if soapaction.startswith('http://www.msn.com/webservices/storage/w10/') else '2008')
|
||||
action_str = get_tag_localname(action)
|
||||
now_str = util.misc.date_format(datetime.utcnow())
|
||||
user = bs.user
|
||||
cachekey = secrets.token_urlsafe(172)
|
||||
|
||||
cid = cid_format(user.uuid)
|
||||
|
||||
if action_str == 'GetProfile':
|
||||
roaming_info = backend.user_service.get_roaming_info(user)
|
||||
assert roaming_info is not None
|
||||
|
||||
# Resolve the active avatar using the md5 stored in users.avatar.
|
||||
# find_avatar_file returns None if no avatar has been uploaded yet.
|
||||
avatar_md5 = user.avatar
|
||||
mime = None
|
||||
image_size = 0
|
||||
image_thumb_size = 0
|
||||
|
||||
if avatar_md5:
|
||||
full_file = find_avatar_file(user.uuid, avatar_md5, small=False)
|
||||
thumb_file = find_avatar_file(user.uuid, avatar_md5, small=True)
|
||||
|
||||
if full_file and full_file.is_file():
|
||||
ext = full_file.suffix.lstrip('.').lower()
|
||||
mime = ext
|
||||
image_size = full_file.stat().st_size
|
||||
|
||||
if thumb_file and thumb_file.is_file():
|
||||
image_thumb_size = thumb_file.stat().st_size
|
||||
|
||||
return render(req, 'msn:storageservice/GetProfileResponse.xml', {
|
||||
'storage_ns': storage_ns,
|
||||
'cachekey': cachekey,
|
||||
'cid': cid,
|
||||
'pptoken1': token,
|
||||
'user': user,
|
||||
'now': now_str,
|
||||
'mime': mime,
|
||||
'size_static': image_size,
|
||||
'size_small': image_thumb_size,
|
||||
'roaming_info': roaming_info,
|
||||
'host': settings.USERSTORAGE_HOST,
|
||||
})
|
||||
if action_str == 'FindDocuments':
|
||||
# TODO: FindDocuments
|
||||
return render(req, 'msn:storageservice/FindDocumentsResponse.xml', {
|
||||
'storage_ns': storage_ns,
|
||||
'cachekey': cachekey,
|
||||
'cid': cid,
|
||||
'pptoken1': token,
|
||||
'user': user,
|
||||
})
|
||||
if action_str == 'UpdateProfile':
|
||||
delete_psm = False
|
||||
delete_name = False
|
||||
delete_avatar = False
|
||||
|
||||
# TODO: More properties?
|
||||
|
||||
# Update to roaming name/message
|
||||
# ```
|
||||
# <UpdateProfile xmlns="http://www.msn.com/webservices/storage/w10">
|
||||
# <profile>
|
||||
# <ResourceID>862d987eb60b7a63!106</ResourceID>
|
||||
# <ExpressionProfile>
|
||||
# <FreeText>Update</FreeText>
|
||||
# <DisplayName>Society is betrayal</DisplayName>
|
||||
# <PersonalStatus>Prosperity is the best medicine. :)</PersonalStatus>
|
||||
# </ExpressionProfile>
|
||||
# </profile>
|
||||
# </UpdateProfile>
|
||||
# ```
|
||||
|
||||
# Remove roaming message
|
||||
# ```
|
||||
# <UpdateProfile xmlns="http://www.msn.com/webservices/storage/w10">
|
||||
# <profile>
|
||||
# <ResourceID>bb4542ce2eacdbde!106</ResourceID>
|
||||
# <ExpressionProfile>
|
||||
# <FreeText>Update</FreeText>
|
||||
# <DisplayName>%walkingphas3r%</DisplayName>
|
||||
# <Flags>0</Flags>
|
||||
# </ExpressionProfile>
|
||||
# </profile>
|
||||
# <profileAttributesToDelete>
|
||||
# <ExpressionProfileAttributes>
|
||||
# <PersonalStatus>true</PersonalStatus>
|
||||
# </ExpressionProfileAttributes>
|
||||
# </profileAttributesToDelete>
|
||||
# </UpdateProfile>
|
||||
# ```
|
||||
|
||||
expression_profile = find_element(action, 'ExpressionProfile')
|
||||
name = find_element(expression_profile, 'DisplayName')
|
||||
message = find_element(expression_profile, 'PersonalStatus')
|
||||
|
||||
attributes_to_delete = find_element(action, 'profileAttributesToDelete/ExpressionProfileAttributes')
|
||||
if attributes_to_delete is not None:
|
||||
# `PersonalStatus` and `DisplayName` is the only known attribute that has the ability to be deleted
|
||||
delete_psm = find_element(attributes_to_delete, 'PersonalStatus') or False
|
||||
delete_name = find_element(attributes_to_delete, 'DisplayName') or False
|
||||
if not (isinstance(delete_psm, bool) and isinstance(delete_name, bool)):
|
||||
return storage_fault(req, storage_ns, action_str, 'GeneralException')
|
||||
|
||||
name = find_element(action, 'DisplayName')
|
||||
message = find_element(action, 'PersonalStatus')
|
||||
|
||||
if name:
|
||||
backend.user_service.save_single_roaming(user, { 'name': name })
|
||||
if message and not delete_psm:
|
||||
if backend.user_service.save_single_roaming(user, { 'message': message }):
|
||||
backend.notify_whats_new(user)
|
||||
|
||||
if delete_psm:
|
||||
backend.user_service.save_single_roaming(user, { 'message': '' })
|
||||
if delete_name:
|
||||
backend.user_service.save_single_roaming(user, { 'name': '' })
|
||||
|
||||
return render(req, 'msn:storageservice/UpdateProfileResponse.xml', {
|
||||
'storage_ns': storage_ns,
|
||||
'cachekey': cachekey,
|
||||
'cid': cid,
|
||||
'pptoken1': token,
|
||||
'user': user
|
||||
})
|
||||
if action_str == 'DeleteRelationships':
|
||||
# TODO: DeleteRelationships
|
||||
return render(req, 'msn:storageservice/DeleteRelationshipsResponse.xml', {
|
||||
'storage_ns': storage_ns,
|
||||
'cachekey': cachekey,
|
||||
'cid': cid,
|
||||
'pptoken1': token,
|
||||
'user': user,
|
||||
})
|
||||
if action_str in ('CreateDocument', 'UpdateDocument'):
|
||||
op = 'Update' if action_str == 'UpdateDocument' else 'Create'
|
||||
return handle_document(req, action, op, storage_ns, user, cid, token, backend)
|
||||
if action_str == 'CreateRelationships':
|
||||
# TODO: CreateRelationships
|
||||
return render(req, 'msn:storageservice/CreateRelationshipsResponse.xml', {
|
||||
'storage_ns': storage_ns,
|
||||
'cachekey': cachekey,
|
||||
'cid': cid,
|
||||
'pptoken1': token,
|
||||
'user': user,
|
||||
})
|
||||
if action_str in { 'ShareItem' }:
|
||||
# TODO: ShareItem
|
||||
return unknown_soap(req, header, action, expected = True)
|
||||
return unknown_soap(req, header, action)
|
||||
|
||||
|
||||
def handle_document(
|
||||
req: web.Request,
|
||||
action: Any,
|
||||
op_type: str, # 'Create' or 'Update'
|
||||
storage_ns: str,
|
||||
user: models.User,
|
||||
cid: str,
|
||||
token: str,
|
||||
backend: Backend,
|
||||
) -> web.Response:
|
||||
streamtype = find_element(action, 'DocumentStreamType')
|
||||
|
||||
if streamtype == 'UserTileStatic':
|
||||
raw_b64 = find_element(action, 'Data')
|
||||
if raw_b64:
|
||||
try:
|
||||
data = base64.b64decode(raw_b64)
|
||||
except Exception:
|
||||
return storage_fault(req, storage_ns, '{}Document'.format(op_type), 'InvalidDocumentStream')
|
||||
|
||||
err = _store_avatar_from_bytes(backend, user, data)
|
||||
# stupid dumb doodoo hack to make avatar interop work
|
||||
# we compute a yahoo avatar hash so it can be displayed in yahoo as well
|
||||
# i'm sure there's a better approach but overengineering is funnier
|
||||
_yahoo_avatar_gaming(backend, user)
|
||||
if err is not None:
|
||||
return storage_fault(req, storage_ns, '{}Document'.format(op_type), err)
|
||||
|
||||
return render(req, 'msn:storageservice/{}DocumentResponse.xml'.format(op_type), {
|
||||
'storage_ns': storage_ns,
|
||||
'cid': cid,
|
||||
'pptoken1': token,
|
||||
'user': user,
|
||||
})
|
||||
|
||||
|
||||
def _store_avatar_from_bytes(
|
||||
backend: Backend,
|
||||
user: models.User,
|
||||
data: bytes,
|
||||
) -> Optional[str]:
|
||||
# The storage fault (error code) if the picture can't be kept
|
||||
ext = get_img_type(data)
|
||||
if ext is None:
|
||||
# Not a picture (in a format that can be shown)
|
||||
return 'InvalidDocumentStream'
|
||||
|
||||
avatar_old = user.avatar
|
||||
try:
|
||||
backend.user_service.save_avatar(user, data, ext)
|
||||
except Exception:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
return 'GeneralException'
|
||||
if user.avatar != avatar_old:
|
||||
# A different picture is a new activity
|
||||
backend.notify_whats_new(user)
|
||||
|
||||
return None
|
||||
|
||||
def _yahoo_avatar_gaming(backend: Backend, user: models.User) -> None:
|
||||
avatar_md5 = getattr(user, 'avatar', None)
|
||||
if not avatar_md5:
|
||||
return
|
||||
import struct, binascii
|
||||
raw = bytes.fromhex(avatar_md5)
|
||||
crc = binascii.crc32(raw) & 0xFFFFFFFF
|
||||
checksum_bytes = str(struct.unpack('i', struct.pack('I', crc))[0]).encode('utf-8')
|
||||
|
||||
detail = user.detail
|
||||
if detail is None:
|
||||
return
|
||||
for ctc in detail.contacts.values():
|
||||
if not (ctc.lists & models.ContactList.FL) or ctc.status.is_offlineish():
|
||||
continue
|
||||
for bs_other in backend.util_get_sessions_by_user(ctc.head):
|
||||
if bs_other.front_data.get('ymsg'):
|
||||
bs_other.evt.ymsg_on_friend_icon(user.username, bs_other.user.username, checksum_bytes)
|
||||
@@ -0,0 +1,188 @@
|
||||
from typing import Any, Optional
|
||||
from datetime import datetime
|
||||
import asyncio, secrets, sys, util.misc, settings
|
||||
|
||||
from aiohttp import web
|
||||
|
||||
from core import models, error
|
||||
from core.backend import Backend, BackendSession
|
||||
|
||||
from .util import find_element, render, dispatch_abch, abch_fault, schema_fault
|
||||
|
||||
def register(app: web.Application) -> None:
|
||||
app.router.add_post('/abservice/SharingService.asmx', handle_sharingservice)
|
||||
|
||||
async def handle_sharingservice(req: web.Request) -> web.Response:
|
||||
return await dispatch_abch(req, sys.modules[__name__], 'sharing')
|
||||
|
||||
def sharing_FindMembership(req: web.Request, header: Any, action: Any, bs: BackendSession) -> web.Response:
|
||||
backend: Backend = req.app['backend']
|
||||
now_str = util.misc.date_format(datetime.utcnow())
|
||||
user = bs.user
|
||||
detail = user.detail
|
||||
cachekey = secrets.token_urlsafe(172)
|
||||
return render(req, 'msn:sharing/FindMembershipResponse.xml', {
|
||||
'cachekey': cachekey,
|
||||
'host': settings.ADDRESSBOOK_HOST,
|
||||
'session_id': util.misc.gen_uuid(),
|
||||
'user': user,
|
||||
'detail': detail,
|
||||
'ContactList': models.ContactList,
|
||||
'lists': [models.ContactList.AL, models.ContactList.BL, models.ContactList.RL],
|
||||
'circles': backend.user_service.get_circle_batch(user),
|
||||
'now': now_str,
|
||||
})
|
||||
|
||||
def sharing_AddMember(req: web.Request, header: Any, action: Any, bs: BackendSession) -> web.Response:
|
||||
backend: Backend = req.app['backend']
|
||||
cachekey = secrets.token_urlsafe(172)
|
||||
|
||||
user = bs.user
|
||||
detail = user.detail
|
||||
assert detail is not None
|
||||
|
||||
memberships = action.findall('.//{*}memberships/{*}Membership')
|
||||
for membership in memberships:
|
||||
email = None # type: Optional[str]
|
||||
circle_id = None
|
||||
|
||||
lst = models.ContactList.Parse(str(find_element(membership, 'MemberRole')))
|
||||
if lst is None:
|
||||
return schema_fault(req, 'http://www.msn.com/webservices/AddressBook/AddMember')
|
||||
members = membership.findall('.//{*}Members/{*}Member')
|
||||
for member in members:
|
||||
member_type = member.get('{http://www.w3.org/2001/XMLSchema-instance}type')
|
||||
if member_type == 'PassportMember':
|
||||
if find_element(member, 'Type') == 'Passport' and find_element(member, 'State') == 'Accepted':
|
||||
email = find_element(member, 'PassportName')
|
||||
elif member_type == 'EmailMember':
|
||||
if find_element(member, 'Type') == 'Email' and find_element(member, 'State') == 'Accepted':
|
||||
email = find_element(member, 'Email')
|
||||
elif member_type == 'CircleMember':
|
||||
if find_element(member, 'Type') == 'Circle' and find_element(member, 'State') == 'Accepted':
|
||||
circle_id = find_element(member, 'CircleId')
|
||||
if email is None and circle_id is None:
|
||||
return render(req, 'msn:sharing/Fault.userdoesnotexist.xml', status = 500)
|
||||
if email is not None:
|
||||
name = None
|
||||
contact_uuid = backend.util_get_uuid_from_email(email)
|
||||
if contact_uuid is None:
|
||||
return render(req, 'msn:sharing/Fault.userdoesnotexist.xml', status = 500)
|
||||
ctc = detail.contacts.get(contact_uuid)
|
||||
if ctc is None:
|
||||
name = email
|
||||
|
||||
try:
|
||||
bs.me_contact_add(contact_uuid, lst, name = name)
|
||||
except error.ContactListIsFull:
|
||||
return schema_fault(req, 'http://www.msn.com/webservices/AddressBook/AddMember', 'Contact list is full')
|
||||
except:
|
||||
pass
|
||||
elif circle_id is not None:
|
||||
if not (circle_id.startswith('00000000-0000-0000-0009-') and len(circle_id[24:]) == 12):
|
||||
return render(req, 'msn:sharing/Fault.userdoesnotexist.xml', status = 500)
|
||||
chat_id = circle_id[-12:]
|
||||
circle = backend.user_service.get_circle(chat_id)
|
||||
if circle is None: return abch_fault(req, 'AddMember', 'UserDoesNotExist')
|
||||
|
||||
if lst in (models.ContactList.RL,models.ContactList.PL):
|
||||
# Only the service puts anyone on those
|
||||
return schema_fault(req, 'http://www.msn.com/webservices/AddressBook/AddMember')
|
||||
if lst == models.ContactList.BL:
|
||||
bs.me_block_circle(circle)
|
||||
return render(req, 'msn:sharing/AddMemberResponse.xml', {
|
||||
'cachekey': cachekey,
|
||||
'host': settings.ADDRESSBOOK_HOST,
|
||||
'session_id': util.misc.gen_uuid(),
|
||||
})
|
||||
|
||||
def sharing_DeleteMember(req: web.Request, header: Any, action: Any, bs: BackendSession) -> web.Response:
|
||||
backend: Backend = req.app['backend']
|
||||
cachekey = secrets.token_urlsafe(172)
|
||||
|
||||
user = bs.user
|
||||
detail = user.detail
|
||||
assert detail is not None
|
||||
|
||||
contact_uuid = None
|
||||
circle_id = None
|
||||
|
||||
memberships = action.findall('.//{*}memberships/{*}Membership')
|
||||
for membership in memberships:
|
||||
lst = models.ContactList.Parse(str(find_element(membership, 'MemberRole')))
|
||||
if lst is None:
|
||||
return schema_fault(req, 'http://www.msn.com/webservices/AddressBook/DeleteMember')
|
||||
members = membership.findall('.//{*}Members/{*}Member')
|
||||
for member in members:
|
||||
member_type = member.get('{http://www.w3.org/2001/XMLSchema-instance}type')
|
||||
if member_type == 'PassportMember':
|
||||
if find_element(member, 'Type') == 'Passport' and find_element(member, 'State') == 'Accepted':
|
||||
try:
|
||||
contact_uuid = find_element(member, 'MembershipId').split('/', 1)[1]
|
||||
except:
|
||||
email = find_element(member, 'PassportName')
|
||||
contact_uuid = backend.util_get_uuid_from_email(email or '')
|
||||
if contact_uuid is None:
|
||||
return abch_fault(req, 'DeleteMember', 'MemberDoesNotExist')
|
||||
# (A circle member is one too, not a kind of Passport member)
|
||||
elif member_type == 'CircleMember':
|
||||
if find_element(member, 'Type') == 'Circle' and find_element(member, 'State') == 'Accepted':
|
||||
circle_id = find_element(member, 'CircleId')
|
||||
if contact_uuid is not None:
|
||||
if contact_uuid not in detail.contacts:
|
||||
return render(req, 'msn:sharing/Fault.memberdoesnotexist.xml', status = 500)
|
||||
try:
|
||||
bs.me_contact_remove(contact_uuid, lst)
|
||||
except:
|
||||
pass
|
||||
elif circle_id is not None:
|
||||
if not (circle_id.startswith('00000000-0000-0000-0009-') and len(circle_id[24:]) == 12):
|
||||
return abch_fault(req, 'DeleteMember', 'MemberDoesNotExist')
|
||||
chat_id = circle_id[-12:]
|
||||
circle = backend.user_service.get_circle(chat_id)
|
||||
if circle is None: return abch_fault(req, 'DeleteMember', 'MemberDoesNotExist')
|
||||
|
||||
if lst in (models.ContactList.RL,models.ContactList.PL):
|
||||
# Only the service takes anyone off those; there's nothing to do
|
||||
continue
|
||||
if lst == models.ContactList.BL:
|
||||
bs.me_unblock_circle(circle)
|
||||
return render(req, 'msn:sharing/DeleteMemberResponse.xml', {
|
||||
'cachekey': cachekey,
|
||||
'host': settings.ADDRESSBOOK_HOST,
|
||||
'session_id': util.misc.gen_uuid(),
|
||||
})
|
||||
|
||||
def sharing_CreateCircle(req: web.Request, header: Any, action: Any, bs: BackendSession) -> web.Response:
|
||||
backend: Backend = req.app['backend']
|
||||
cachekey = secrets.token_urlsafe(172)
|
||||
|
||||
user = bs.user
|
||||
|
||||
if (
|
||||
find_element(action, 'Domain') == 1
|
||||
and find_element(action, 'HostedDomain') == 'live.com'
|
||||
and find_element(action, 'Type') == 2
|
||||
and isinstance(find_element(action, 'IsPresenceEnabled'), bool)
|
||||
):
|
||||
membership_access = int(find_element(action, 'MembershipAccess'))
|
||||
name = str(find_element(action, 'DisplayName'))
|
||||
owner_friendly = str(find_element(action, 'PublicDisplayName'))
|
||||
|
||||
circle = bs.me_create_circle(name, owner_friendly, membership_access)
|
||||
|
||||
backend.loop.create_task(_dispatch_circle_created(backend, user, circle))
|
||||
|
||||
return render(req, 'msn:sharing/CreateCircleResponse.xml', {
|
||||
'cachekey': cachekey,
|
||||
'host': settings.ADDRESSBOOK_HOST,
|
||||
'session_id': util.misc.gen_uuid(),
|
||||
'chat_id': circle.chat_id,
|
||||
})
|
||||
|
||||
return schema_fault(req, 'http://www.msn.com/webservices/AddressBook/CreateCircle')
|
||||
|
||||
async def _dispatch_circle_created(backend: Backend, user: models.User, circle: models.Circle) -> None:
|
||||
await asyncio.sleep(0.04)
|
||||
for sess in backend.util_get_sessions_by_user(user):
|
||||
sess.evt.on_circle_created(circle)
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<soap:Body>
|
||||
<soap:Fault>
|
||||
<faultcode>soap:Client</faultcode>
|
||||
<faultstring>{{ faultstring or 'Schema validation error' }}</faultstring>
|
||||
<faultactor>{{ actor }}</faultactor>
|
||||
<detail />
|
||||
</soap:Fault>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<soap:Body>
|
||||
<soap:Fault>
|
||||
<faultcode>soap:Server</faultcode>
|
||||
<faultstring>Server was unable to process request.</faultstring>
|
||||
{% if actor %}<faultactor>{{ actor }}</faultactor>
|
||||
{% endif %}<detail />
|
||||
</soap:Fault>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
<wst:RequestSecurityTokenResponse>
|
||||
<wst:TokenType>urn:passport:compact</wst:TokenType>
|
||||
<wsp:AppliesTo xmlns:wsa="http://www.w3.org/2005/08/addressing">
|
||||
@@ -28,3 +29,4 @@
|
||||
</wst:RequestedProofToken>
|
||||
{% endif %}
|
||||
</wst:RequestSecurityTokenResponse>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<ds:KeyName>http://Passport.NET/STS</ds:KeyName>
|
||||
</ds:KeyInfo>
|
||||
<CipherData>
|
||||
<CipherValue>Cap26AQZrSyMm2SwwTyJKyqLR9/S+vQWQsaBc5Mv7PwtQDMzup/udOOMMvSu99R284pmiD3IepBXrEMLK5rLrXAf2A6vrP6vYuGA45GCqQdoxusHZcjt9P2B8WyCTVT2cM8jtGqGIfRlU/4WzOLxNrDJwDfOsmilduGAGZfvRPW7/jyXXrnGK7/PWkymX4YDD+ygJfMrPAfvAprvw/HVE6tutKVc9cViTVYy8oHjosQlb8MKn3vKDW1O2ZWQUc47JPl7DkjQaanfNBGe6CL7K1nr6Z/jy7Ay7MjV+KQehmvphSEmCzLrpB4WWn2PdpdTrOcDj+aJfWHeGL4sIPwEKgrKnTQg9QD8CCsm5wew9P/br39OuIfsC6/PFBEHmVThqj0aMxYLRD4K2GoRay6Ab7NftoIP5dnFnclfRxETAoNpTPE2F5Q669QySrdXxBpBSk8GLmdCDMlhiyzSiByrhFQaZRcH8n9i+i289otYuJQ7xPyP19KwT4CRyOiIlh3DSdlBfurMwihQGxN2spU7P4MwckrDKeOyYQhvNm/XWId/oXBqpHbo2yRPiOwL9p1J4AxA4RaJuh77vyhn2lFQaxPDqZd5A8RJjpb2NE2N3UncKLW7GAangdoLbRDMqt51VMZ0la+b/moL61fKvFXinKRHc7PybrG3MWzgXxO/VMKAuXOsB9XnOgl2A524cgiwyg==</CipherValue>
|
||||
<CipherValue>{{ datoken }}</CipherValue>
|
||||
</CipherData>
|
||||
</EncryptedData>
|
||||
</wst:RequestedSecurityToken>
|
||||
@@ -87,7 +87,7 @@
|
||||
</wsse:SecurityTokenReference>
|
||||
</wst:RequestedUnattachedReference>
|
||||
<wst:RequestedProofToken>
|
||||
<wst:BinarySecret>tgoPVK67sU36fQKlGLMgWgTXp7oiaQgE</wst:BinarySecret>
|
||||
<wst:BinarySecret>{{ dabinarysecret }}</wst:BinarySecret>
|
||||
</wst:RequestedProofToken>
|
||||
</wst:RequestSecurityTokenResponse>
|
||||
{{ tokenxml }}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% macro contact_entry(ab_id, ctc, detail, now) %}
|
||||
{% macro contact_entry(ab_id, ctc, detail, now, trust_level = none) %}
|
||||
<contactId>{{ ctc.head.uuid }}</contactId>
|
||||
<contactInfo>
|
||||
{% if ctc.detail.personal_email or ctc.detail.work_phone or ctc.detail.im_email or ctc.detail.other_email %}
|
||||
{% if ctc.detail.personal_email or ctc.detail.work_email or ctc.detail.im_email or ctc.detail.other_email %}
|
||||
<emails>
|
||||
{% if ctc.detail.work_email %}
|
||||
{{ email_entry('ContactEmailBusiness', ctc.detail.work_email) }}
|
||||
@@ -20,7 +20,7 @@
|
||||
{% if ctc.detail.home_phone or ctc.detail.work_phone or ctc.detail.fax_phone or ctc.detail.pager_phone or ctc.detail.mobile_phone or ctc.detail.other_phone %}
|
||||
<phones>
|
||||
{% if ctc.detail.work_phone %}
|
||||
{{ phone_entry('ContactPhoneBusiness', contact.work_phone) }}
|
||||
{{ phone_entry('ContactPhoneBusiness', ctc.detail.work_phone) }}
|
||||
{% endif %}
|
||||
{% if ctc.detail.fax_phone %}
|
||||
{{ phone_entry('ContactPhoneFax', ctc.detail.fax_phone) }}
|
||||
@@ -123,6 +123,11 @@
|
||||
<IsPrivate>false</IsPrivate>
|
||||
<Gender>Unspecified</Gender>
|
||||
<TimeZone>None</TimeZone>
|
||||
{% if trust_level is not none %}
|
||||
<IsAutoUpdateDisabled>false</IsAutoUpdateDisabled>
|
||||
<IsShellContact>false</IsShellContact>
|
||||
<TrustLevel>{{ trust_level }}</TrustLevel>
|
||||
{% endif %}
|
||||
</contactInfo>
|
||||
<propertiesChanged />
|
||||
<fDeleted>false</fDeleted>
|
||||
@@ -212,6 +217,9 @@
|
||||
<IsPrivate>false</IsPrivate>
|
||||
<Gender>Unspecified</Gender>
|
||||
<TimeZone>None</TimeZone>
|
||||
<IsAutoUpdateDisabled>false</IsAutoUpdateDisabled>
|
||||
<IsShellContact>false</IsShellContact>
|
||||
<TrustLevel>{{ (user.settings.get('TrustLevels') or {}).get(user.uuid, 0) }}</TrustLevel>
|
||||
</contactInfo>
|
||||
<propertiesChanged />
|
||||
<fDeleted>false</fDeleted>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% from 'msn:_funcs.xml' import contact_entry, group_entry, generate_me_entry, ab_properties -%}
|
||||
{% from 'msn:_funcs.xml' import contact_entry, group_entry, generate_me_entry -%}
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<soap:Header>
|
||||
@@ -13,88 +13,88 @@
|
||||
<soap:Body>
|
||||
<ABFindContactsPagedResponse xmlns="http://www.msn.com/webservices/AddressBook">
|
||||
<ABFindContactsPagedResult>
|
||||
{% if ab_id == '00000000-0000-0000-0000-000000000000' %}
|
||||
<Groups>
|
||||
{% for group in detail._groups_by_uuid.values() %}
|
||||
{{ group_entry(group, now) }}
|
||||
{% endfor %}
|
||||
</Groups>
|
||||
{% endif %}
|
||||
{%- if ab_id == '00000000-0000-0000-0000-000000000000' %}
|
||||
<Groups>
|
||||
{%- for group in detail._groups_by_uuid.values() %}
|
||||
{{ group_entry(group, now) }}
|
||||
{%- endfor %}
|
||||
</Groups>
|
||||
{%- endif %}
|
||||
<Contacts>
|
||||
{% if ab_id == '00000000-0000-0000-0000-000000000000' %}
|
||||
{% for ctc in detail.contacts.values() %}
|
||||
{% if ctc.lists.__and__(ContactList.FL) %}
|
||||
<Contact>
|
||||
{{ contact_entry(ab_id, ctc, detail, now) }}
|
||||
</Contact>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for circle in circles %}
|
||||
<Contact>
|
||||
<contactId>00000000-0000-0000-0009-{{ circle.chat_id }}</contactId>
|
||||
<contactInfo>
|
||||
<contactType>Circle</contactType>
|
||||
<quickName>circle</quickName>
|
||||
<passportName>00000000-0000-0000-0009-{{ circle.chat_id.upper() }}@hotmail.com</passportName>
|
||||
<IsPassportNameHidden>false</IsPassportNameHidden>
|
||||
<displayName>{% if circle.memberships[user.uuid].role == CircleRole.Admin %}{{ circle.name }}{% else %}00000000-0000-0000-0009-{{ circle.chat_id.upper() }}@hotmail.com{% endif %}</displayName>
|
||||
<puid>{{ puid_format(user.uuid) }}</puid>
|
||||
<CID>{{ cid_format('00000000-0000-0000-0009-' + circle.chat_id, decimal = True) }}</CID>
|
||||
<IsNotMobileVisible>false</IsNotMobileVisible>
|
||||
<isMobileIMEnabled>false</isMobileIMEnabled>
|
||||
<isMessengerUser>false</isMessengerUser>
|
||||
<isFavorite>false</isFavorite>
|
||||
<isSmtp>false</isSmtp>
|
||||
<hasSpace>false</hasSpace>
|
||||
<spotWatchState>NoDevice</spotWatchState>
|
||||
<birthdate>0001-01-01T00:00:00</birthdate>
|
||||
<primaryEmailType>ContactEmailPersonal</primaryEmailType>
|
||||
<PrimaryLocation>ContactLocationPersonal</PrimaryLocation>
|
||||
<PrimaryPhone>ContactPhonePersonal</PrimaryPhone>
|
||||
<IsPrivate>false</IsPrivate>
|
||||
<IsHidden>true</IsHidden>
|
||||
<Gender>Unspecified</Gender>
|
||||
<TimeZone>None</TimeZone>
|
||||
<NetworkInfoList>
|
||||
<NetworkInfo>
|
||||
<DomainId>1</DomainId>
|
||||
<SourceId>WL</SourceId>
|
||||
{% if circle.memberships[user.uuid].role != CircleRole.Admin %}
|
||||
<DomainTag>00000000-0000-0000-0009-{{ circle.chat_id.upper() }}</DomainTag>
|
||||
<DisplayName>00000000-0000-0000-0009-{{ circle.chat_id.upper() }}</DisplayName>
|
||||
{% endif %}
|
||||
<RelationshipType>5</RelationshipType>
|
||||
<RelationshipState>{{ circle.memberships[user.uuid].state.value }}</RelationshipState>
|
||||
<RelationshipStateDate>{{ now }}</RelationshipStateDate>
|
||||
<RelationshipRole>{% if circle.memberships[user.uuid].role == CircleRole.StatePendingOutbound %}4{% else %}0{% endif %}</RelationshipRole>
|
||||
<NDRCount>0</NDRCount>
|
||||
{% if circle.memberships[user.uuid].invite_message %}
|
||||
<InviterMessage>{{ circle.memberships[user.uuid].invite_message }}</InviterMessage>
|
||||
{% endif %}
|
||||
<InviterCID>{% if user.uuid == circle.owner_uuid %}0{% else %}{{ cid_format(circle.memberships[user.uuid].inviter_uuid, decimal = True) }}{% endif %}</InviterCID>
|
||||
{% if circle.memberships[user.uuid].inviter_name %}
|
||||
<InviterName>{{ circle.memberships[user.uuid].inviter_name }}</InviterName>
|
||||
{% endif %}
|
||||
{% if circle.memberships[user.uuid].inviter_email %}
|
||||
<InviterEmail>{{ circle.memberships[user.uuid].inviter_email }}</InviterEmail>
|
||||
{% endif %}
|
||||
<CreateDate>{{ now }}</CreateDate>
|
||||
<LastUpdated>{{ now }}</LastUpdated>
|
||||
<PropertiesChanged />
|
||||
</NetworkInfo>
|
||||
</NetworkInfoList>
|
||||
<IsAutoUpdateDisabled>false</IsAutoUpdateDisabled>
|
||||
<IsShellContact>false</IsShellContact>
|
||||
<TrustLevel>0</TrustLevel>
|
||||
<PropertiesChanged />
|
||||
</contactInfo>
|
||||
<propertiesChanged />
|
||||
<fDeleted>false</fDeleted>
|
||||
{%- if ab_id == '00000000-0000-0000-0000-000000000000' %}
|
||||
{%- for ctc in detail.contacts.values() %}
|
||||
{%- if ctc.lists.__and__(ContactList.FL) %}
|
||||
<Contact>
|
||||
{{ contact_entry(ab_id, ctc, detail, now, trust_level = (user.settings.get('TrustLevels') or {}).get(ctc.head.uuid, 0)) }}
|
||||
</Contact>
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
{%- for circle in circles %}
|
||||
<Contact>
|
||||
<contactId>00000000-0000-0000-0009-{{ circle.chat_id }}</contactId>
|
||||
<contactInfo>
|
||||
<contactType>Circle</contactType>
|
||||
<quickName>circle</quickName>
|
||||
<passportName>00000000-0000-0000-0009-{{ circle.chat_id.upper() }}@hotmail.com</passportName>
|
||||
<IsPassportNameHidden>false</IsPassportNameHidden>
|
||||
<displayName>{% if circle.memberships[user.uuid].role == CircleRole.Admin %}{{ circle.name }}{% else %}00000000-0000-0000-0009-{{ circle.chat_id.upper() }}@hotmail.com{% endif %}</displayName>
|
||||
<puid>{{ puid_format(user.uuid) }}</puid>
|
||||
<CID>{{ cid_format('00000000-0000-0000-0009-' + circle.chat_id, decimal = True) }}</CID>
|
||||
<IsNotMobileVisible>false</IsNotMobileVisible>
|
||||
<isMobileIMEnabled>false</isMobileIMEnabled>
|
||||
<isMessengerUser>false</isMessengerUser>
|
||||
<isFavorite>false</isFavorite>
|
||||
<isSmtp>false</isSmtp>
|
||||
<hasSpace>false</hasSpace>
|
||||
<spotWatchState>NoDevice</spotWatchState>
|
||||
<birthdate>0001-01-01T00:00:00</birthdate>
|
||||
<primaryEmailType>ContactEmailPersonal</primaryEmailType>
|
||||
<PrimaryLocation>ContactLocationPersonal</PrimaryLocation>
|
||||
<PrimaryPhone>ContactPhonePersonal</PrimaryPhone>
|
||||
<IsPrivate>false</IsPrivate>
|
||||
<IsHidden>true</IsHidden>
|
||||
<Gender>Unspecified</Gender>
|
||||
<TimeZone>None</TimeZone>
|
||||
<NetworkInfoList>
|
||||
<NetworkInfo>
|
||||
<DomainId>1</DomainId>
|
||||
<SourceId>WL</SourceId>
|
||||
{%- if circle.memberships[user.uuid].role != CircleRole.Admin %}
|
||||
<DomainTag>00000000-0000-0000-0009-{{ circle.chat_id.upper() }}</DomainTag>
|
||||
<DisplayName>00000000-0000-0000-0009-{{ circle.chat_id.upper() }}</DisplayName>
|
||||
{%- endif %}
|
||||
<RelationshipType>5</RelationshipType>
|
||||
<RelationshipState>{{ circle.memberships[user.uuid].state.value }}</RelationshipState>
|
||||
<RelationshipStateDate>{{ now }}</RelationshipStateDate>
|
||||
<RelationshipRole>{% if circle.memberships[user.uuid].role == CircleRole.StatePendingOutbound %}4{% else %}0{% endif %}</RelationshipRole>
|
||||
<NDRCount>0</NDRCount>
|
||||
{%- if circle.memberships[user.uuid].invite_message %}
|
||||
<InviterMessage>{{ circle.memberships[user.uuid].invite_message }}</InviterMessage>
|
||||
{%- endif %}
|
||||
<InviterCID>{% if user.uuid == circle.owner_uuid %}0{% else %}{{ cid_format(circle.memberships[user.uuid].inviter_uuid, decimal = True) }}{% endif %}</InviterCID>
|
||||
{%- if circle.memberships[user.uuid].inviter_name %}
|
||||
<InviterName>{{ circle.memberships[user.uuid].inviter_name }}</InviterName>
|
||||
{%- endif %}
|
||||
{%- if circle.memberships[user.uuid].inviter_email %}
|
||||
<InviterEmail>{{ circle.memberships[user.uuid].inviter_email }}</InviterEmail>
|
||||
{%- endif %}
|
||||
<CreateDate>{{ now }}</CreateDate>
|
||||
<lastChange>{{ now }}</lastChange>
|
||||
<CreatedBy>96</CreatedBy>
|
||||
</Contact>
|
||||
{% endfor %}
|
||||
<LastUpdated>{{ now }}</LastUpdated>
|
||||
<PropertiesChanged />
|
||||
</NetworkInfo>
|
||||
</NetworkInfoList>
|
||||
<IsAutoUpdateDisabled>false</IsAutoUpdateDisabled>
|
||||
<IsShellContact>false</IsShellContact>
|
||||
<TrustLevel>0</TrustLevel>
|
||||
<PropertiesChanged />
|
||||
</contactInfo>
|
||||
<propertiesChanged />
|
||||
<fDeleted>false</fDeleted>
|
||||
<CreateDate>{{ now }}</CreateDate>
|
||||
<lastChange>{{ now }}</lastChange>
|
||||
<CreatedBy>96</CreatedBy>
|
||||
</Contact>
|
||||
{%- endfor %}
|
||||
{% else %}
|
||||
{% for membership in circle.memberships.values() %}
|
||||
<Contact>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<TimeZone>None</TimeZone>
|
||||
<IsAutoUpdateDisabled>false</IsAutoUpdateDisabled>
|
||||
<IsShellContact>false</IsShellContact>
|
||||
<TrustLevel>0</TrustLevel>
|
||||
<TrustLevel>{{ trust_level }}</TrustLevel>
|
||||
<PropertiesChanged />
|
||||
</contactInfo>
|
||||
<propertiesChanged />
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<soap:Body>
|
||||
<soap:Fault>
|
||||
<faultcode>{{ faultcode }}</faultcode>
|
||||
<faultstring>{{ errorstring }}</faultstring>
|
||||
<faultactor>http://www.msn.com/webservices/AddressBook/{{ action_str }}</faultactor>
|
||||
<detail>
|
||||
<errorcode xmlns="http://www.msn.com/webservices/AddressBook">{{ errorcode }}</errorcode>
|
||||
<errorstring xmlns="http://www.msn.com/webservices/AddressBook">{{ errorstring }}</errorstring>
|
||||
<machineName xmlns="http://www.msn.com/webservices/AddressBook">BAYABCHWBB133</machineName>
|
||||
{% if parameter_fault %}<parameterFault xmlns="http://www.msn.com/webservices/AddressBook">{{ parameter_fault }}</parameterFault>
|
||||
{% endif %}<additionalDetails>
|
||||
{% if conflict_object_id %}<conflictObjectId>{{ conflict_object_id }}</conflictObjectId>
|
||||
{% endif %}<originalExceptionErrorMessage>{{ errorstring }}</originalExceptionErrorMessage>
|
||||
</additionalDetails>
|
||||
</detail>
|
||||
</soap:Fault>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
@@ -19,15 +19,15 @@
|
||||
{% endif %}
|
||||
{% if not error %}
|
||||
<clientErrorData />
|
||||
<contactId>{% if ab_id == '00000000-0000-0000-0000-000000000000' %}00000000-0000-0000-0009-{{ circle.chat_id }}{% else %}{{ head.uuid }}{% endif %}</contactId>
|
||||
<contactId>{% if circle is not none and ab_id == '00000000-0000-0000-0000-000000000000' %}00000000-0000-0000-0009-{{ circle.chat_id }}{% else %}{{ head.uuid }}{% endif %}</contactId>
|
||||
<contactInfo>
|
||||
<contactType>{% if ab_id == '00000000-0000-0000-0000-000000000000' %}Circle{% else %}{% if circle.memberships[head.uuid].state == CircleState.WaitingResponse or circle.memberships[head.uuid].state == CircleState.Rejected or (circle.memberships[head.uuid].role == CircleRole.Empty or circle.memberships[head.uuid].state == CircleState.Empty) %}LivePending{% else %}Live{% endif %}{% endif %}</contactType>
|
||||
<quickName>{% if ab_id == '00000000-0000-0000-0000-000000000000' %}circle{% else %}{{ head.email }}{% endif %}</quickName>
|
||||
<passportName>{% if ab_id == '00000000-0000-0000-0000-000000000000' %}00000000-0000-0000-0009-{{ circle.chat_id.upper() }}@hotmail.com{% else %}{{ head.email }}{% endif %}</passportName>
|
||||
<contactType>{% if circle is not none and ab_id == '00000000-0000-0000-0000-000000000000' %}Circle{% elif circle is not none %}{% if circle.memberships[head.uuid].state == CircleState.WaitingResponse or circle.memberships[head.uuid].state == CircleState.Rejected or (circle.memberships[head.uuid].role == CircleRole.Empty or circle.memberships[head.uuid].state == CircleState.Empty) %}LivePending{% else %}Live{% endif %}{% else %}Live{% endif %}</contactType>
|
||||
<quickName>{% if circle is not none and ab_id == '00000000-0000-0000-0000-000000000000' %}circle{% else %}{{ head.email }}{% endif %}</quickName>
|
||||
<passportName>{% if circle is not none and ab_id == '00000000-0000-0000-0000-000000000000' %}00000000-0000-0000-0009-{{ circle.chat_id.upper() }}@hotmail.com{% else %}{{ head.email }}{% endif %}</passportName>
|
||||
<IsPassportNameHidden>false</IsPassportNameHidden>
|
||||
<displayName>{% if ab_id == '00000000-0000-0000-0000-000000000000' %}{{ circle.name }}{% else %}{{ head.email }}{% endif %}</displayName>
|
||||
<displayName>{% if circle is not none and ab_id == '00000000-0000-0000-0000-000000000000' %}{{ circle.name }}{% else %}{{ head.email }}{% endif %}</displayName>
|
||||
<puid>{{ puid_format(user.uuid) }}</puid>
|
||||
<CID>{{ cid_format('00000000-0000-0000-0009-' + circle.chat_id, decimal = True) }}</CID>
|
||||
<CID>{% if circle is not none %}{{ cid_format('00000000-0000-0000-0009-' + circle.chat_id, decimal = True) }}{% else %}{{ cid_format(head.uuid, decimal = True) }}{% endif %}</CID>
|
||||
<IsNotMobileVisible>false</IsNotMobileVisible>
|
||||
<isMobileIMEnabled>false</isMobileIMEnabled>
|
||||
<isMessengerUser>false</isMessengerUser>
|
||||
@@ -40,10 +40,10 @@
|
||||
<PrimaryLocation>ContactLocationPersonal</PrimaryLocation>
|
||||
<PrimaryPhone>ContactPhonePersonal</PrimaryPhone>
|
||||
<IsPrivate>false</IsPrivate>
|
||||
<IsHidden>{% if ab_id == '00000000-0000-0000-0000-000000000000' %}true{% else %}false{% endif %}</IsHidden>
|
||||
<IsHidden>{% if circle is not none and ab_id == '00000000-0000-0000-0000-000000000000' %}true{% else %}false{% endif %}</IsHidden>
|
||||
<Gender>Unspecified</Gender>
|
||||
<TimeZone>None</TimeZone>
|
||||
{% if (ab_id == '00000000-0000-0000-0000-000000000000' or ab_id.startswith('00000000-0000-0000-0009-')) and not (circle.memberships[head.uuid].role == CircleRole.Empty or circle.memberships[head.uuid].state == CircleState.Empty) %}
|
||||
{% if circle is not none and (ab_id == '00000000-0000-0000-0000-000000000000' or ab_id.startswith('00000000-0000-0000-0009-')) and not (circle.memberships[head.uuid].role == CircleRole.Empty or circle.memberships[head.uuid].state == CircleState.Empty) %}
|
||||
<NetworkInfoList>
|
||||
<NetworkInfo>
|
||||
<DomainId>1</DomainId>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<soap:Header>
|
||||
<ServiceHeader xmlns="http://www.msn.com/webservices/AddressBook">
|
||||
<Version>15.01.1408.0000</Version>
|
||||
<CacheKey>12r1:{{ cachekey }}</CacheKey>
|
||||
<CacheKeyChanged>true</CacheKeyChanged>
|
||||
<PreferredHostName>{{ host }}</PreferredHostName>
|
||||
<SessionId>{{ session_id }}</SessionId>
|
||||
</ServiceHeader>
|
||||
</soap:Header>
|
||||
<soap:Body>
|
||||
<UpdateContactResponse xmlns="http://www.msn.com/webservices/AddressBook" />
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
@@ -1792,12 +1792,12 @@
|
||||
<AppId>1140906031</AppId>
|
||||
<ThumbNailUrl>https://{{ settings.USERSTORAGE_HOST }}/static/social/ugnetthumb.gif</ThumbNailUrl>
|
||||
<MiniPhotoUrl>https://{{ settings.USERSTORAGE_HOST }}/static/social/mini.gif</MiniPhotoUrl>
|
||||
<Domain>^https?://.*\.hiden\.cc/.*$</Domain>
|
||||
<EmailDomain>mail.ugnet.gay</EmailDomain>
|
||||
<WebDomain>ugnet.gay</WebDomain>
|
||||
<Name>the undergr0und</Name>
|
||||
<Domain>^https?://.*\.ugnet\.xyz/.*$</Domain>
|
||||
<EmailDomain>mail.ugnet.xyz</EmailDomain>
|
||||
<WebDomain>ugnet.xyz</WebDomain>
|
||||
<Name>Testing...</Name>
|
||||
<Summary>Making the internet fun again.</Summary>
|
||||
<SiteUrl>http://ugnet.gay/</SiteUrl>
|
||||
<SiteUrl>http://ugnet.xyz/</SiteUrl>
|
||||
<PSARank>1</PSARank>
|
||||
<Connected>true</Connected>
|
||||
<AppState>
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<soap:Body>
|
||||
<GetClientConfigResponse xmlns="http://www.msn.com/webservices/Messenger/Client">
|
||||
<GetClientConfigResult><![CDATA[{MsgrConfig}]]></GetClientConfigResult>
|
||||
</GetClientConfigResponse>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
@@ -1,102 +0,0 @@
|
||||
<MsgrConfig>
|
||||
<Simple>
|
||||
<Config>
|
||||
<ExpiresInDays>0</ExpiresInDays>
|
||||
</Config>
|
||||
<DisablePhoneDialer>1</DisablePhoneDialer>
|
||||
<MinFlashPlayer BuildNumber="60" MajorVersion="7" MinorVersion="0"></MinFlashPlayer>
|
||||
<Relay>
|
||||
<Enabled>0</Enabled>
|
||||
<MaxCallLength>0</MaxCallLength>
|
||||
</Relay>
|
||||
<TrustedDomains>
|
||||
<domain name="hiden.cc"/>
|
||||
<domain name="ugnet.gay"/>
|
||||
<domain name="crosstalk.im"/>
|
||||
<domain name="ctsrv.gay"/>
|
||||
</TrustedDomains>
|
||||
<ErrorResponseTable>
|
||||
<Feature type="0" name="Login">
|
||||
<Entry hr="0x80072EE7" action="3"></Entry>
|
||||
<Entry hr="0x81000306" action="3"></Entry>
|
||||
<Entry hr="0x80072EFD" action="3"></Entry>
|
||||
<Entry hr="0x81000362" action="3"></Entry>
|
||||
<Entry hr="0x8100030E" action="3"></Entry>
|
||||
<Entry hr="0x80072745" action="3"></Entry>
|
||||
<Entry hr="0x800701F7" action="3"></Entry>
|
||||
<Entry hr="0x80072EFF" action="3"></Entry>
|
||||
<Entry hr="0x81000363" action="3"></Entry>
|
||||
<Entry hr="0x81000395" action="3"></Entry>
|
||||
<Entry hr="0x800B0001" action="3"></Entry>
|
||||
<Entry hr="0x81000323" action="3"></Entry>
|
||||
<Entry hr="0x80072F19" action="3"></Entry>
|
||||
<Entry hr="0x800701F8" action="3"></Entry>
|
||||
<Entry hr="0x80072746" action="3"></Entry>
|
||||
<Entry hr="0x800701F6" action="3"></Entry>
|
||||
<Entry hr="0x81000377" action="3"></Entry>
|
||||
<Entry hr="0x81000314" action="3"></Entry>
|
||||
<Entry hr="0x81000378" action="3"></Entry>
|
||||
<Entry hr="0x80072EFF" action="3"></Entry>
|
||||
<Entry hr="0x80070190" action="3"></Entry>
|
||||
<Entry hr="0x80070197" action="3"></Entry>
|
||||
<Entry hr="0x80048820" action="3"></Entry>
|
||||
<Entry hr="0x80048829" action="3"></Entry>
|
||||
<Entry hr="0x80048834" action="3"></Entry>
|
||||
<Entry hr="0x80048852" action="3"></Entry>
|
||||
<Entry hr="0x8004886a" action="3"></Entry>
|
||||
<Entry hr="0x8004886b" action="3"></Entry>
|
||||
</Feature>
|
||||
<Feature type="2" name="MapFile">
|
||||
<Entry hr="0x810003F0" action="3"></Entry>
|
||||
<Entry hr="0x810003F1" action="3"></Entry>
|
||||
<Entry hr="0x810003F2" action="3"></Entry>
|
||||
<Entry hr="0x810003F3" action="3"></Entry>
|
||||
<Entry hr="0x810003F4" action="3"></Entry>
|
||||
<Entry hr="0x810003F5" action="3"></Entry>
|
||||
<Entry hr="0x810003F6" action="3"></Entry>
|
||||
<Entry hr="0x810003F7" action="3"></Entry>
|
||||
</Feature>
|
||||
</ErrorResponseTable>
|
||||
</Simple>
|
||||
<TabConfig>
|
||||
{tabs}
|
||||
</TabConfig>
|
||||
<AbchCfg>
|
||||
<abchconfig>
|
||||
<url>https://{{ settings.ADDRESSBOOK_HOST }}/abservice.asmx</url>
|
||||
</abchconfig>
|
||||
</AbchCfg>
|
||||
<LocalizedConfig Market="en-US">
|
||||
<AdMainConfig>
|
||||
<TextAdRefresh>1</TextAdRefresh>
|
||||
<TextAdServer>http://{{ settings.AD_HOST }}/ads/txt</TextAdServer>
|
||||
<AdBanner20URL Refresh="300">http://{{ settings.AD_HOST }}/ads/banner</AdBanner20URL>
|
||||
</AdMainConfig>
|
||||
<AppDirConfig>
|
||||
<AppDirPageURL>http://{{ settings.APPDIR_HOST }}/AppDirectory/Directory.aspx?L=en-us</AppDirPageURL>
|
||||
<AppDirSeviceURL>http://{{ settings.APPDIR_HOST }}/AppDirectory/AppDirectory.asmx</AppDirSeviceURL>
|
||||
<AppDirVersionURL>http://{{ settings.APPDIR_HOST }}/AppDirectory/GetAppdirVersion.aspx</AppDirVersionURL>
|
||||
</AppDirConfig>
|
||||
<MSNSearch>
|
||||
<DesktopInstallURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</DesktopInstallURL>
|
||||
<ImagesURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=images</ImagesURL>
|
||||
<NearMeURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</NearMeURL>
|
||||
<NewsURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$+news&ia=news</NewsURL>
|
||||
<SearchKidsURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SearchKidsURL>
|
||||
<SearchURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SearchURL>
|
||||
<SharedSearchURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SharedSearchURL>
|
||||
<SharedSearchURL2>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SharedSearchURL2>
|
||||
</MSNSearch>
|
||||
<MsnTodayConfig>
|
||||
<MsnTodayURL>http://{{ settings.TODAY_HOST }}/start?msn=1</MsnTodayURL>
|
||||
</MsnTodayConfig>
|
||||
<MusicIntegration URL="https://www.last.fm/search/tracks?q=$ARTIST$+$TITLE$"/>
|
||||
<RL>
|
||||
<ViewProfileURL>https://{{ settings.WEBSITE_HOST }}/account/settings</ViewProfileURL>
|
||||
</RL>
|
||||
<TermsOfUse>
|
||||
<TermsOfUseSID>956</TermsOfUseSID>
|
||||
<TermsOfUseURL>https://{{ settings.WEBSITE_HOST }}/tos</TermsOfUseURL>
|
||||
</TermsOfUse>
|
||||
</LocalizedConfig>
|
||||
</MsgrConfig>
|
||||
@@ -1,239 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<MsgrConfig>
|
||||
<Simple>
|
||||
<Config>
|
||||
<ExpiresInDays>0</ExpiresInDays>
|
||||
</Config>
|
||||
<P2PConfig>
|
||||
<ObjectStore>
|
||||
<SendDelay>1</SendDelay>
|
||||
</ObjectStore>
|
||||
</P2PConfig>
|
||||
<DisablePhoneDialer>1</DisablePhoneDialer>
|
||||
<GetItemVersionForUnknown>false</GetItemVersionForUnknown>
|
||||
<MinFlashPlayer BuildNumber="28" MajorVersion="9" MinorVersion="0" />
|
||||
<Relay>
|
||||
<Enabled>0</Enabled>
|
||||
<MaxCallLength>0</MaxCallLength>
|
||||
</Relay>
|
||||
<Contacts>
|
||||
<Client ZombieServerDetectDelay="1800" ZombieServerDetectInterval="30" ZombieServerDetectResumeDelay="1800" />
|
||||
<Server ZombieServerDetectDelay="900" ZombieServerDetectResumeDelay="900" ZombieServerDetectConnectDelay="900" ZombieServerDetectLongDelay="900" />
|
||||
</Contacts>
|
||||
<TrustedDomains>
|
||||
<domain name="hiden.cc"/>
|
||||
<domain name="ugnet.gay"/>
|
||||
<domain name="crosstalk.im"/>
|
||||
<domain name="ctsrv.gay"/>
|
||||
</TrustedDomains>
|
||||
<ErrorResponseTable>
|
||||
<Feature type="0" name="Login">
|
||||
<Entry hr="0x80004002" action="3"/>
|
||||
<Entry hr="0x80004004" action="3"/>
|
||||
<Entry hr="0x80004005" action="3"/>
|
||||
<Entry hr="0x8000402A" action="3"/>
|
||||
<Entry hr="0x8000FFFF" action="3"/>
|
||||
<Entry hr="0x8001012E" action="3"/>
|
||||
<Entry hr="0x80040200" action="3"/>
|
||||
<Entry hr="0x80048051" action="3"/>
|
||||
<Entry hr="0x80048820" action="3"/>
|
||||
<Entry hr="0x80048823" action="3"/>
|
||||
<Entry hr="0x80070002" action="3"/>
|
||||
<Entry hr="0x80070005" action="3"/>
|
||||
<Entry hr="0x8007000E" action="3"/>
|
||||
<Entry hr="0x80070057" action="3"/>
|
||||
<Entry hr="0x8007007E" action="3"/>
|
||||
<Entry hr="0x800702E4" action="3"/>
|
||||
<Entry hr="0x800706BA" action="3"/>
|
||||
<Entry hr="0x800706BE" action="3"/>
|
||||
<Entry hr="0x80071392" action="3"/>
|
||||
<Entry hr="0x80072745" action="3"/>
|
||||
<Entry hr="0x80072746" action="3"/>
|
||||
<Entry hr="0x80072EE2" action="3"/>
|
||||
<Entry hr="0x80072EF3" action="3"/>
|
||||
<Entry hr="0x80072EFD" action="3"/>
|
||||
<Entry hr="0x80072EFF" action="3"/>
|
||||
<Entry hr="0x80072F06" action="3"/>
|
||||
<Entry hr="0x80072F7D" action="3"/>
|
||||
<Entry hr="0x800C013E" action="3"/>
|
||||
<Entry hr="0x80191002" action="3"/>
|
||||
<Entry hr="0x81000306" action="3"/>
|
||||
<Entry hr="0x8100030D" action="3"/>
|
||||
<Entry hr="0x81000314" action="3"/>
|
||||
<Entry hr="0x81000362" action="3"/>
|
||||
<Entry hr="0x81000378" action="3"/>
|
||||
<Entry hr="0x81000395" action="3"/>
|
||||
<Entry hr="0x85AE000B" action="3"/>
|
||||
<Entry hr="0x85AE000F" action="3"/>
|
||||
<Entry hr="0x85AE001D" action="3"/>
|
||||
<Entry hr="0x85AE0022" action="3"/>
|
||||
<Entry hr="0x85AE0024" action="3"/>
|
||||
<Entry hr="0x85AE0027" action="3"/>
|
||||
<Entry hr="0x85AE003C" action="3"/>
|
||||
<Entry hr="0x85AE0053" action="3"/>
|
||||
<Entry hr="0x8E5E0152" action="3"/>
|
||||
<Entry hr="0x8E5E0158" action="3"/>
|
||||
<Entry hr="0x8E5E0211" action="3"/>
|
||||
<Entry hr="0x8E5E0220" action="3"/>
|
||||
<Entry hr="0x8E5E0226" action="3"/>
|
||||
<Entry hr="0x8E5E03FE" action="3"/>
|
||||
<Entry hr="0x8E5E0408" action="3"/>
|
||||
<Entry hr="0x8E5E05F6" action="3"/>
|
||||
<Entry hr="0x8E5E0710" action="3"/>
|
||||
<Entry hr="0x8E5E0713" action="3"/>
|
||||
</Feature>
|
||||
<Feature type="2" name="MapFile">
|
||||
<Entry hr="0x810003F1" action="3"/>
|
||||
<Entry hr="0x810003F6" action="3"/>
|
||||
</Feature>
|
||||
<Feature type="3" name="P2P">
|
||||
<Entry hr="0x82000016" action="3"/>
|
||||
<Entry hr="0x82000017" action="3"/>
|
||||
<Entry hr="0x82000019" action="3"/>
|
||||
<Entry hr="0x8200001b" action="3"/>
|
||||
<Entry hr="0x8200001d" action="3"/>
|
||||
<Entry hr="0x8200001e" action="3"/>
|
||||
<Entry hr="0x82000024" action="3"/>
|
||||
<Entry hr="0x82000026" action="3"/>
|
||||
</Feature>
|
||||
</ErrorResponseTable>
|
||||
<USBDevices>
|
||||
<Device VID="0x045e" PID="0x0719"/>
|
||||
<Device VID="0x045e" PID="0x0722"/>
|
||||
<Device VID="0x041e" PID="0x4080"/>
|
||||
</USBDevices>
|
||||
<CirclesWeb General="https://{{ settings.WEBSITE_HOST }}/circles/$CIRCLECID$/settings/" General-SiteId="73625" Management="https://{{ settings.WEBSITE_HOST }}/circles/$CIRCLECID$/settings/" Management-SiteId="73625" Membership="https://{{ settings.WEBSITE_HOST }}/circles/$CIRCLECID$/settings/" Membership-SiteId="73625" Leave="https://{{ settings.WEBSITE_HOST }}/circles/$CIRCLECID$/settings/" Leave-SiteId="73625" Disc="https://{{ settings.WEBSITE_HOST }}" />
|
||||
<AnonymousIMSettings>
|
||||
<SettingsPage URL="http://settings.messenger.live.com/applications/WebSettings.aspx" SiteID="76215" />
|
||||
</AnonymousIMSettings>
|
||||
</Simple>
|
||||
<AbchCfg>
|
||||
<abchconfig>
|
||||
<url>https://{{ settings.ADDRESSBOOK_HOST }}/abservice.asmx</url>
|
||||
</abchconfig>
|
||||
</AbchCfg>
|
||||
<LocalizedConfig Market="en-US">
|
||||
<AdMainConfig>
|
||||
<TextAdRotation>420</TextAdRotation>
|
||||
<TextAdRefresh>1</TextAdRefresh>
|
||||
<TextAdServer>http://{{ settings.AD_HOST }}/ads/txt</TextAdServer>
|
||||
<AdBanner20URL Refresh="300">http://{{ settings.AD_HOST }}/ads/banner</AdBanner20URL>
|
||||
<StdAd AdVisible="60" VideoVisible="120" VideoDldIntvl="0">
|
||||
<VideoFeeds FeedsListURL="http://{{ settings.AD_HOST }}/svcs/msn-video-feeds/"/>
|
||||
</StdAd>
|
||||
</AdMainConfig>
|
||||
<AppDirConfig>
|
||||
<AppDirPageURL>http://{{ settings.APPDIR_HOST }}/AppDirectory/Directory.aspx?L=en-us</AppDirPageURL>
|
||||
<AppDirSeviceURL>http://{{ settings.APPDIR_HOST }}/AppDirectory/AppDirectory.asmx</AppDirSeviceURL>
|
||||
<AppDirVersionURL>http://{{ settings.APPDIR_HOST }}/AppDirectory/GetAppdirVersion.aspx</AppDirVersionURL>
|
||||
</AppDirConfig>
|
||||
<Contacts>
|
||||
<ABPendingRequests>
|
||||
<SiteId>73625</SiteId>
|
||||
<height>672</height>
|
||||
<IncludeSNRequests>true</IncludeSNRequests>
|
||||
<width>808</width>
|
||||
<urlcid>http://cid-%1!16.16I64X!.profile.live.com/invites?partner=Messenger</urlcid>
|
||||
</ABPendingRequests>
|
||||
<EditMyLiveContactProfile>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/profile.aspx?action=edit&mode=activecontacts&mkt=en-us&partner=Messenger</url>
|
||||
<SiteId>73625</SiteId>
|
||||
</EditMyLiveContactProfile>
|
||||
<EditMyProfile>
|
||||
<url>http://profile.live.com/details</url>
|
||||
<SiteId>73625</SiteId>
|
||||
</EditMyProfile>
|
||||
<Import>
|
||||
<url>http://cid-%1!16.16I64X!.profile.live.com/connect/?partner=Messenger</url>
|
||||
<SiteId>73625</SiteId>
|
||||
</Import>
|
||||
<MessengerInvite>
|
||||
<url>http://cid-%1.profile.live.com/connect/send.aspx?email=%2</url>
|
||||
<urlcid>http://cid-%1.profile.live.com/connect/send.aspx?cid=%2</urlcid>
|
||||
<SiteId>73625</SiteId>
|
||||
</MessengerInvite>
|
||||
<Profile>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/Profile.aspx?partner=Messenger&mkt=en-us&mem=%ls</url>
|
||||
<urlcid>http://{{ settings.SOCIAL_HOST }}/Profile.aspx?partner=Messenger&mkt=en-us&cid=%ls</urlcid>
|
||||
<urlcid2>http://cid-%1!16.16I64X!.profile.live.com</urlcid2>
|
||||
<SiteId>73625</SiteId>
|
||||
</Profile>
|
||||
<SNInvites>
|
||||
<url>http://cid-%1.profile.live.com/connect/Messenger.aspx?Email=%2</url>
|
||||
<urlcid>http://cid-%1.profile.live.com/connect/Messenger.aspx?cid=0x%2</urlcid>
|
||||
<SiteId>73625</SiteId>
|
||||
</SNInvites>
|
||||
<ViewMapEnabled>true</ViewMapEnabled>
|
||||
</Contacts>
|
||||
<ContactCard>
|
||||
<AddToMySpaceSiteId>45930</AddToMySpaceSiteId>
|
||||
<AddToMySpaceUrl>http://{{ settings.SOCIAL_HOST }}/?addblogentry=true&mkt=nl-nl</AddToMySpaceUrl>
|
||||
<ContactCardDisabled>false</ContactCardDisabled>
|
||||
<CreateSpaceSiteId>45930</CreateSpaceSiteId>
|
||||
<CreateSpaceUrl>http://{{ settings.SOCIAL_HOST }}/signup.aspx?mkt=nl-nl</CreateSpaceUrl>
|
||||
<GetItemVerUrl>http://ctas.storage.ugnet.gay/storageservice/schematizedstore.asmx</GetItemVerUrl>
|
||||
<GetXmlFeedUrl>http://{{ settings.SOCIAL_HOST }}/contactcard/contactcardservice.asmx</GetXmlFeedUrl>
|
||||
<MySpaceSiteId>45930</MySpaceSiteId>
|
||||
<MySpaceUrl>http://{{ settings.SOCIAL_HOST }}/homepage.aspx</MySpaceUrl>
|
||||
<SpaceBaseSiteId>45930</SpaceBaseSiteId>
|
||||
<SpaceBaseUrl>http://{{ settings.SOCIAL_HOST }}</SpaceBaseUrl>
|
||||
<SpaceIntegrationEnabled>true</SpaceIntegrationEnabled>
|
||||
</ContactCard>
|
||||
<FlashUpgradeURL>http://{{ settings.STORAGE_HOST }}/crosstalk-dist/client/all/tools/flashplayer_10_3r183_48_winax.exe</FlashUpgradeURL>
|
||||
<GLinkMarket v="en_us" />
|
||||
<LiveFolders UpsellMessageId="1" />
|
||||
<MessengerBlogURL>https://{{ settings.WEBSITE_HOST }}/blog</MessengerBlogURL>
|
||||
<MSNSearch>
|
||||
<DesktopInstallURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</DesktopInstallURL>
|
||||
<ImagesURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=images</ImagesURL>
|
||||
<NearMeURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</NearMeURL>
|
||||
<NewsURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$+news&ia=news</NewsURL>
|
||||
<PeopleSearchURL>http://home.live.com/search?query=$QUERY$</PeopleSearchURL>
|
||||
<PeopleSearchSiteID>73625</PeopleSearchSiteID>
|
||||
<SearchKidsURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SearchKidsURL>
|
||||
<SearchURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SearchURL>
|
||||
<SharedSearchURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SharedSearchURL>
|
||||
<SharedSearchURL2>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SharedSearchURL2>
|
||||
</MSNSearch>
|
||||
<MsnTodayConfig>
|
||||
<MsnTodaySiteID>6528</MsnTodaySiteID>
|
||||
<MsnTodayURL>http://{{ settings.TODAY_HOST }}/start?wlm=1</MsnTodayURL>
|
||||
<Flags>2</Flags>
|
||||
</MsnTodayConfig>
|
||||
<MusicIntegration URL="https://www.last.fm/search/tracks?q=$ARTIST$+$TITLE$"/>
|
||||
<OneCare Enabled="0" />
|
||||
<PE Tracking=""/>
|
||||
<PremiumAV Visibility="1" />
|
||||
<PSTNOut Hidden="0" />
|
||||
<ReportAbuse>
|
||||
<ReportAbuseSID />
|
||||
<ReportAbuseURL>https://{{ settings.WEBSITE_HOST }}/report</ReportAbuseURL>
|
||||
</ReportAbuse>
|
||||
<RL>
|
||||
<ViewProfileURL>http://g.msn.com/5meen_us/106?%1&Plcid=%2!hs!&%3&Country=%4!hs!&BrandID=%5&passport=%6</ViewProfileURL>
|
||||
</RL>
|
||||
<SDrive Enabled="true" />
|
||||
<TermsOfUse>
|
||||
<TermsOfUseSID>956</TermsOfUseSID>
|
||||
<TermsOfUseURL>https://{{ settings.WEBSITE_HOST }}/tos</TermsOfUseURL>
|
||||
</TermsOfUse>
|
||||
<VoiceClip Hidden="0" />
|
||||
<VoiceVideo>
|
||||
<DisableSipProxyInviteTest>0</DisableSipProxyInviteTest>
|
||||
<DisableSipProxyCapability>0</DisableSipProxyCapability>
|
||||
<DisableSipProxyInvite>0</DisableSipProxyInvite>
|
||||
<DisableSipProxyCapability2>0</DisableSipProxyCapability2>
|
||||
<DisableSipProxyInvite2>0</DisableSipProxyInvite2>
|
||||
</VoiceVideo>
|
||||
<TabConfig>
|
||||
<RowNumber>1</RowNumber>
|
||||
<slots>
|
||||
{% for tab in tabs %}
|
||||
<URL id="{{ tab.id }}">
|
||||
https://{{ settings.AD_HOST }}/svcs/tab={{ tab.id }}
|
||||
</URL>
|
||||
{% endfor %}
|
||||
</slots>
|
||||
</TabConfig>
|
||||
</LocalizedConfig>
|
||||
</MsgrConfig>
|
||||
@@ -1,180 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<MsgrConfig>
|
||||
<Simple>
|
||||
<Config>
|
||||
<ExpiresInDays>0</ExpiresInDays>
|
||||
</Config>
|
||||
<DisablePhoneDialer>0</DisablePhoneDialer>
|
||||
<GetItemVersionForUnknown>false</GetItemVersionForUnknown>
|
||||
<MinFlashPlayer BuildNumber="28" MajorVersion="9" MinorVersion="0"/>
|
||||
<Relay>
|
||||
<Enabled>0</Enabled>
|
||||
<MaxCallLength>0</MaxCallLength>
|
||||
</Relay>
|
||||
<TrustedDomains>
|
||||
<domain name="hiden.cc"/>
|
||||
<domain name="ugnet.gay"/>
|
||||
<domain name="crosstalk.im"/>
|
||||
<domain name="ctsrv.gay"/>
|
||||
</TrustedDomains>
|
||||
<ErrorResponseTable>
|
||||
<Feature type="0" name="Login">
|
||||
<Entry hr="0x80072EE7" action="3"/>
|
||||
<Entry hr="0x81000306" action="3"/>
|
||||
<Entry hr="0x80072EFD" action="3"/>
|
||||
<Entry hr="0x81000362" action="3"/>
|
||||
<Entry hr="0x8100030E" action="3"/>
|
||||
<Entry hr="0x80072745" action="3"/>
|
||||
<Entry hr="0x800701F7" action="3"/>
|
||||
<Entry hr="0x80072EFF" action="3"/>
|
||||
<Entry hr="0x81000363" action="3"/>
|
||||
<Entry hr="0x81000395" action="3"/>
|
||||
<Entry hr="0x800B0001" action="3"/>
|
||||
<Entry hr="0x81000323" action="3"/>
|
||||
<Entry hr="0x80072F19" action="3"/>
|
||||
<Entry hr="0x800701F8" action="3"/>
|
||||
<Entry hr="0x80072746" action="3"/>
|
||||
<Entry hr="0x800701F6" action="3"/>
|
||||
<Entry hr="0x81000377" action="3"/>
|
||||
<Entry hr="0x81000314" action="3"/>
|
||||
<Entry hr="0x81000378" action="3"/>
|
||||
<Entry hr="0x80072EFF" action="3"/>
|
||||
<Entry hr="0x80070190" action="3"/>
|
||||
<Entry hr="0x80070197" action="3"/>
|
||||
<Entry hr="0x80048820" action="3"/>
|
||||
<Entry hr="0x80048829" action="3"/>
|
||||
<Entry hr="0x80048834" action="3"/>
|
||||
<Entry hr="0x80048852" action="3"/>
|
||||
<Entry hr="0x8004886a" action="3"/>
|
||||
<Entry hr="0x8004886b" action="3"/>
|
||||
</Feature>
|
||||
<Feature type="2" name="MapFile">
|
||||
<Entry hr="0x810003F0" action="3"/>
|
||||
<Entry hr="0x810003F1" action="3"/>
|
||||
<Entry hr="0x810003F2" action="3"/>
|
||||
<Entry hr="0x810003F3" action="3"/>
|
||||
<Entry hr="0x810003F4" action="3"/>
|
||||
<Entry hr="0x810003F5" action="3"/>
|
||||
<Entry hr="0x810003F6" action="3"/>
|
||||
<Entry hr="0x810003F7" action="3"/>
|
||||
</Feature>
|
||||
<Feature type="3" name="P2P">
|
||||
<Entry hr="0x82000012" action="3"/>
|
||||
<Entry hr="0x82000013" action="3"/>
|
||||
<Entry hr="0x82000016" action="3"/>
|
||||
<Entry hr="0x82000017" action="3"/>
|
||||
<Entry hr="0x82000018" action="3"/>
|
||||
<Entry hr="0x82000019" action="3"/>
|
||||
</Feature>
|
||||
</ErrorResponseTable>
|
||||
</Simple>
|
||||
<TabConfig>
|
||||
{tabs}
|
||||
</TabConfig>
|
||||
<AbchCfg>
|
||||
<abchconfig>
|
||||
<url>https://{{ settings.ADDRESSBOOK_HOST }}/abservice.asmx</url>
|
||||
</abchconfig>
|
||||
</AbchCfg>
|
||||
<LocalizedConfig Market="en-US">
|
||||
<AdMainConfig>
|
||||
<TextAdRefresh>1</TextAdRefresh>
|
||||
<TextAdServer>http://{{ settings.AD_HOST }}/ads/txt</TextAdServer>
|
||||
<AdBanner20URL Refresh="300">http://{{ settings.AD_HOST }}/ads/banner</AdBanner20URL>
|
||||
<StdAd AdVisible="60" VideoVisible="120" VideoDldIntvl="0">
|
||||
<VideoFeeds FeedsListURL="http://{{ settings.AD_HOST }}/svcs/msn-video-feeds/"/>
|
||||
</StdAd>
|
||||
</AdMainConfig>
|
||||
<AppDirConfig>
|
||||
<AppDirPageURL>http://{{ settings.APPDIR_HOST }}/AppDirectory/Directory.aspx?L=en-us</AppDirPageURL>
|
||||
<AppDirSeviceURL>http://{{ settings.APPDIR_HOST }}/AppDirectory/AppDirectory.asmx</AppDirSeviceURL>
|
||||
<AppDirVersionURL>http://{{ settings.APPDIR_HOST }}/AppDirectory/GetAppdirVersion.aspx</AppDirVersionURL>
|
||||
</AppDirConfig>
|
||||
<Contacts>
|
||||
<ABPendingRequests>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/PendingRequests.aspx?mkt=en-us&partner=Messenger</url>
|
||||
<siteid>73625</siteid>
|
||||
<height>672</height>
|
||||
<width>808</width>
|
||||
</ABPendingRequests>
|
||||
<BuddysSocialNetwork>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/NetworkExplorer.aspx?mkt=en-us&partner=Messenger&cid=%1</url>
|
||||
<siteid>73625</siteid>
|
||||
<height>674</height>
|
||||
<width>808</width>
|
||||
</BuddysSocialNetwork>
|
||||
<EditMyLiveContactProfile>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/profile.aspx?action=edit&mode=activecontacts&mkt=en-us&partner=Messenger</url>
|
||||
<siteid>73625</siteid>
|
||||
</EditMyLiveContactProfile>
|
||||
<EditMyProfile>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/profile.aspx?action=edit&partner=Messenger&mkt=en-us</url>
|
||||
<siteid>73625</siteid>
|
||||
</EditMyProfile>
|
||||
<Profile>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/Profile.aspx?partner=Messenger&mkt=en-us&mem=%ls</url>
|
||||
<urlcid>http://{{ settings.SOCIAL_HOST }}/Profile.aspx?partner=Messenger&mkt=en-us&cid=%ls</urlcid>
|
||||
<siteid>73625</siteid>
|
||||
</Profile>
|
||||
<SocialNetwork>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/NetworkSetup.aspx?mkt=en-us&partner=Messenger</url>
|
||||
<siteid>73625</siteid>
|
||||
<height>674</height>
|
||||
<width>808</width>
|
||||
</SocialNetwork>
|
||||
<ViewMapEnabled>false</ViewMapEnabled>
|
||||
</Contacts>
|
||||
<ContactCard>
|
||||
<AddToMySpaceSiteId>45930</AddToMySpaceSiteId>
|
||||
<AddToMySpaceUrl>http://{{ settings.SOCIAL_HOST }}/?addblogentry=true&mkt=nl-nl</AddToMySpaceUrl>
|
||||
<ContactCardDisabled>false</ContactCardDisabled>
|
||||
<CreateSpaceSiteId>45930</CreateSpaceSiteId>
|
||||
<CreateSpaceUrl>http://{{ settings.SOCIAL_HOST }}/signup.aspx?mkt=nl-nl</CreateSpaceUrl>
|
||||
<GetItemVerUrl>http://storage.msn.com/storageservice/schematizedstore.asmx</GetItemVerUrl>
|
||||
<GetXmlFeedUrl>http://services.{{ settings.SOCIAL_HOST }}/contactcard/contactcardservice.asmx</GetXmlFeedUrl>
|
||||
<MySpaceSiteId>45930</MySpaceSiteId>
|
||||
<MySpaceUrl>http://{{ settings.SOCIAL_HOST }}/homepage.aspx</MySpaceUrl>
|
||||
<SpaceBaseSiteId>45930</SpaceBaseSiteId>
|
||||
<SpaceBaseUrl>http://{{ settings.SOCIAL_HOST }}</SpaceBaseUrl>
|
||||
<SpaceIntegrationEnabled>true</SpaceIntegrationEnabled>
|
||||
</ContactCard>
|
||||
<FlashUpgradeURL>http://{{ settings.STORAGE_HOST }}/crosstalk-dist/client/all/tools/flashplayer_10_3r183_48_winax.exe</FlashUpgradeURL>
|
||||
<GLinkMarket v="en_us"/>
|
||||
<MessengerBlogURL>https://{{ settings.WEBSITE_HOST }}/blog</MessengerBlogURL>
|
||||
<MSNSearch>
|
||||
<ImagesURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=images</ImagesURL>
|
||||
<NewsURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$+news&ia=news</NewsURL>
|
||||
<SearchURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SearchURL>
|
||||
<SharedSearchURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SharedSearchURL>
|
||||
<SharedSearchURL2>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SharedSearchURL2>
|
||||
</MSNSearch>
|
||||
<MsnTodayConfig>
|
||||
<MsnTodaySiteID>6528</MsnTodaySiteID>
|
||||
<MsnTodayURL>http://{{ settings.TODAY_HOST }}/start?wlm=1</MsnTodayURL>
|
||||
<Flags>2</Flags>
|
||||
</MsnTodayConfig>
|
||||
<MusicIntegration URL="https://www.last.fm/search/tracks?q=$ARTIST$+$TITLE$"/>
|
||||
<OneCare Enabled="0"/>
|
||||
<PSTNOut Hidden="1"/>
|
||||
<ReportAbuse>
|
||||
<ReportAbuseSID/>
|
||||
<ReportAbuseURL>https://{{ settings.WEBSITE_HOST }}/report</ReportAbuseURL>
|
||||
</ReportAbuse>
|
||||
<RL>
|
||||
<ViewProfileURL>https://{{ settings.WEBSITE_HOST }}/account/settings</ViewProfileURL>
|
||||
</RL>
|
||||
<SDrive Enabled="true"/>
|
||||
<TermsOfUse>
|
||||
<TermsOfUseSID>956</TermsOfUseSID>
|
||||
<TermsOfUseURL>https://{{ settings.WEBSITE_HOST }}/tos</TermsOfUseURL>
|
||||
</TermsOfUse>
|
||||
<VoiceClip Hidden="0"/>
|
||||
<VoiceVideo>
|
||||
<DisableSipProxyInviteTest>0</DisableSipProxyInviteTest>
|
||||
<DisableSipProxyCapability>0</DisableSipProxyCapability>
|
||||
<DisableSipProxyInvite>0</DisableSipProxyInvite>
|
||||
<DisableSipProxyCapability2>0</DisableSipProxyCapability2>
|
||||
<DisableSipProxyInvite2>0</DisableSipProxyInvite2>
|
||||
</VoiceVideo>
|
||||
</LocalizedConfig>
|
||||
</MsgrConfig>
|
||||
+348
-105
@@ -1,5 +1,73 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
{%- set is_wlm = variant in ('wlm8', 'wlm14', 'wlm16') -%}
|
||||
{%- set is_wlm14_up = variant in ('wlm14', 'wlm16') -%}
|
||||
{%- set search_url = 'https://searx.ugnet.xyz/searxng/search?q=$QUERY$' -%}
|
||||
{%- set trusted_domains = ('hiden.cc', 'ugnet.xyz', 'crosstalk.im', 'ctsrv.xyz') -%}
|
||||
|
||||
{%- set error_login_msn = [
|
||||
('0x80072EE7', 3), ('0x81000306', 3), ('0x80072EFD', 3), ('0x81000362', 3),
|
||||
('0x8100030E', 3), ('0x80072745', 3), ('0x800701F7', 3), ('0x80072EFF', 3),
|
||||
('0x81000363', 3), ('0x81000395', 3), ('0x800B0001', 3), ('0x81000323', 3),
|
||||
('0x80072F19', 3), ('0x800701F8', 3), ('0x80072746', 3), ('0x800701F6', 3),
|
||||
('0x81000377', 3), ('0x81000314', 3), ('0x81000378', 3), ('0x80072EFF', 3),
|
||||
('0x80070190', 3), ('0x80070197', 3), ('0x80048820', 3), ('0x80048829', 3),
|
||||
('0x80048834', 3), ('0x80048852', 3), ('0x8004886a', 3), ('0x8004886b', 3),
|
||||
] -%}
|
||||
{%- set error_login_wlm14 = [
|
||||
('0x80004002', 3), ('0x80004004', 3), ('0x80004005', 3), ('0x8000402A', 3),
|
||||
('0x8000FFFF', 3), ('0x8001012E', 3), ('0x80040200', 3), ('0x80048051', 3),
|
||||
('0x80048820', 3), ('0x80048823', 3), ('0x80070002', 3), ('0x80070005', 3),
|
||||
('0x8007000E', 3), ('0x80070057', 3), ('0x8007007E', 3), ('0x800702E4', 3),
|
||||
('0x800706BA', 3), ('0x800706BE', 3), ('0x80071392', 3), ('0x80072745', 3),
|
||||
('0x80072746', 3), ('0x80072EE2', 3), ('0x80072EF3', 3), ('0x80072EFD', 3),
|
||||
('0x80072EFF', 3), ('0x80072F06', 3), ('0x80072F7D', 3), ('0x800C013E', 3),
|
||||
('0x80191002', 3), ('0x81000306', 3), ('0x8100030D', 3), ('0x81000314', 3),
|
||||
('0x81000362', 3), ('0x81000378', 3), ('0x81000395', 3), ('0x85AE000B', 3),
|
||||
('0x85AE000F', 3), ('0x85AE001D', 3), ('0x85AE0022', 3), ('0x85AE0024', 3),
|
||||
('0x85AE0027', 3), ('0x85AE003C', 3), ('0x85AE0053', 3), ('0x8E5E0152', 3),
|
||||
('0x8E5E0158', 3), ('0x8E5E0211', 3), ('0x8E5E0220', 3), ('0x8E5E0226', 3),
|
||||
('0x8E5E03FE', 3), ('0x8E5E0408', 3), ('0x8E5E05F6', 3), ('0x8E5E0710', 3),
|
||||
('0x8E5E0713', 3),
|
||||
] -%}
|
||||
{%- set error_login_wlm16 = [
|
||||
('*', 3), ('0x81000605', 3), ('0x80048849', 5), ('0x8004882A', 5),
|
||||
('0x80048800', 5), ('0x8004889C', 5), ('0x80048831', 5), ('0x81000306', 5),
|
||||
('0x80048862', 5), ('0x800488EB', 5), ('0x80048848', 5), ('0x80004002', 3),
|
||||
('0x80004004', 3), ('0x80004005', 3), ('0x8000402A', 3), ('0x8000FFFF', 3),
|
||||
('0x8001012E', 3), ('0x80040200', 3), ('0x80048051', 3), ('0x80048820', 5),
|
||||
('0x80048823', 3), ('0x80070002', 3), ('0x80070005', 3), ('0x8007000E', 3),
|
||||
('0x80070057', 3), ('0x8007007E', 3), ('0x800702E4', 3), ('0x800706BA', 3),
|
||||
('0x800706BE', 3), ('0x80071392', 3), ('0x80072745', 3), ('0x80072746', 3),
|
||||
('0x80072EE2', 3), ('0x80072EF3', 3), ('0x80072EFD', 3), ('0x80072EFF', 3),
|
||||
('0x80072F06', 3), ('0x80072F7D', 3), ('0x800C013E', 3), ('0x80191002', 3),
|
||||
('0x8100030D', 3), ('0x81000314', 3), ('0x81000362', 3), ('0x81000378', 3),
|
||||
('0x81000395', 3), ('0x85AE000B', 3), ('0x85AE000F', 3), ('0x85AE001D', 3),
|
||||
('0x85AE0022', 3), ('0x85AE0024', 3), ('0x85AE0027', 3), ('0x85AE003C', 3),
|
||||
('0x85AE0053', 3), ('0x8E5E0152', 3), ('0x8E5E0158', 3), ('0x8E5E0211', 3),
|
||||
('0x8E5E0220', 3), ('0x8E5E0226', 3), ('0x8E5E03FE', 3), ('0x8E5E0408', 3),
|
||||
('0x8E5E05F6', 3), ('0x8E5E0710', 3), ('0x8E5E0713', 3),
|
||||
] -%}
|
||||
{%- set error_login = {'msn': error_login_msn, 'wlm8': error_login_msn, 'wlm14': error_login_wlm14, 'wlm16': error_login_wlm16} -%}
|
||||
{%- set error_mapfile_msn = [
|
||||
('0x810003F0', 3), ('0x810003F1', 3), ('0x810003F2', 3), ('0x810003F3', 3),
|
||||
('0x810003F4', 3), ('0x810003F5', 3), ('0x810003F6', 3), ('0x810003F7', 3),
|
||||
] -%}
|
||||
{%- set error_mapfile_wlm14 = [
|
||||
('0x810003F1', 3), ('0x810003F6', 3),
|
||||
] -%}
|
||||
{%- set error_mapfile = {'msn': error_mapfile_msn, 'wlm8': error_mapfile_msn, 'wlm14': error_mapfile_wlm14, 'wlm16': error_mapfile_wlm14} -%}
|
||||
{%- set error_p2p_wlm8 = [
|
||||
('0x82000012', 3), ('0x82000013', 3), ('0x82000016', 3), ('0x82000017', 3),
|
||||
('0x82000018', 3), ('0x82000019', 3),
|
||||
] -%}
|
||||
{%- set error_p2p_wlm14 = [
|
||||
('0x82000016', 3), ('0x82000017', 3), ('0x82000019', 3), ('0x8200001b', 3),
|
||||
('0x8200001d', 3), ('0x8200001e', 3), ('0x82000024', 3), ('0x82000026', 3),
|
||||
] -%}
|
||||
{%- set error_p2p = {'wlm8': error_p2p_wlm8, 'wlm14': error_p2p_wlm14, 'wlm16': error_p2p_wlm14} -%}
|
||||
|
||||
{%- macro msgr_config() -%}
|
||||
<MsgrConfig>
|
||||
{%- if variant == 'wlm16' %}
|
||||
<Brands>
|
||||
<Client v="def" bv="1.0.1.0">
|
||||
<b i="FT01" v="1.0.5.0" f="FT01_fr-fr_R4.cab" u="http://g.msn.com/0USWLPIT/9" p="FT01" />
|
||||
@@ -9,23 +77,33 @@
|
||||
<Client v="2" CDNVER="http://cba.domains.live.com/cdn1" CDNCAB="http://cba.domains.live.com/cdn3" CDNPRV="http://cba.domains.live.com/prvw" />
|
||||
<Client v="3" CDNVER="http://cba.domains.live.com/cdn1" CDNCAB="http://cba.domains.live.com/cdn3" CDNPRV="http://cba.domains.live.com/prvw" />
|
||||
</Brands>
|
||||
{%- endif %}
|
||||
<Simple>
|
||||
<Config>
|
||||
<ExpiresInDays>2</ExpiresInDays>
|
||||
<ExpiresInDays>{{ 2 if variant == 'wlm16' else 0 }}</ExpiresInDays>
|
||||
</Config>
|
||||
{%- if is_wlm14_up %}
|
||||
<P2PConfig>
|
||||
<ObjectStore>
|
||||
<SendDelay>1</SendDelay>
|
||||
</ObjectStore>
|
||||
</P2PConfig>
|
||||
<DisablePhoneDialer>1</DisablePhoneDialer>
|
||||
{%- endif %}
|
||||
<DisablePhoneDialer>{{ 0 if variant == 'wlm8' else 1 }}</DisablePhoneDialer>
|
||||
{%- if is_wlm %}
|
||||
<GetItemVersionForUnknown>false</GetItemVersionForUnknown>
|
||||
{%- endif %}
|
||||
<Logitech>
|
||||
<PremiumAVConfigServer>http://mplocate.spotlife.net/locate.sxml</PremiumAVConfigServer>
|
||||
<PremiumAVConfigServer>http://ms.msgrsvcs.ctsrv.xyz/locate.sxml</PremiumAVConfigServer>
|
||||
<PreRollEnabled>1</PreRollEnabled>
|
||||
<WebcamConfigServer>http://mlocate.spotlife.net/locate.sxml</WebcamConfigServer>
|
||||
<WebcamConfigServer>http://ms.msgrsvcs.ctsrv.xyz/locate.sxml</WebcamConfigServer>
|
||||
</Logitech>
|
||||
{%- if variant == 'msn' %}
|
||||
<MinFlashPlayer BuildNumber="60" MajorVersion="7" MinorVersion="0" />
|
||||
{%- else %}
|
||||
<MinFlashPlayer BuildNumber="28" MajorVersion="9" MinorVersion="0" />
|
||||
{%- endif %}
|
||||
{%- if variant == 'wlm16' %}
|
||||
<RadUrl Tracking="http://global.msads.net/ads/abuimg/%PACKID%.xml">http://rad.msn.com/ADSAdClient31.dll?GetAd?PG=</RadUrl>
|
||||
<ComScoreUrlFormat>http://b.scorecardresearch.com/p?c1=7&c2=3000001&c3=%1!d!&cj=1</ComScoreUrlFormat>
|
||||
<Relay>
|
||||
@@ -35,11 +113,25 @@
|
||||
<RelayDNS>avrelay.msn.com</RelayDNS>
|
||||
<TimeoutToFallback>7000</TimeoutToFallback>
|
||||
</Relay>
|
||||
{%- else %}
|
||||
<Relay>
|
||||
<Enabled>0</Enabled>
|
||||
<MaxCallLength>0</MaxCallLength>
|
||||
</Relay>
|
||||
{%- endif %}
|
||||
{%- if variant == 'wlm14' %}
|
||||
<Contacts>
|
||||
<Client ZombieServerDetectDelay="1800" ZombieServerDetectInterval="30" ZombieServerDetectResumeDelay="1800" />
|
||||
<Server ZombieServerDetectDelay="900" ZombieServerDetectResumeDelay="900" ZombieServerDetectConnectDelay="900" ZombieServerDetectLongDelay="900" />
|
||||
</Contacts>
|
||||
{%- elif variant == 'wlm16' %}
|
||||
<Contacts>
|
||||
<Client ZombieServerDetectDelay="1800" ZombieServerDetectInterval="30" ZombieServerDetectResumeDelay="1800" ZombieServerDetectDelayW4="180" ZombieServerDetectIntervalW4="30" ZombieServerDetectResumeDelayW4="180" />
|
||||
<Server ZombieServerDetectDelay="900" ZombieServerDetectResumeDelay="900" ZombieServerDetectConnectDelay="900" ZombieServerDetectLongDelay="900" ZombieServerDetectDelayW4="45" ZombieServerDetectResumeDelayW4="600" ZombieServerDetectConnectDelayW4="135" ZombieServerDetectLongDelayW4="450" />
|
||||
</Contacts>
|
||||
{%- endif %}
|
||||
<TrustedDomains>
|
||||
{%- if variant == 'wlm16' %}
|
||||
<domain name="bluemountaincards.co.uk" />
|
||||
<domain name="bluemountaincards.com.au" />
|
||||
<domain name="bmamessenger.com" />
|
||||
@@ -136,95 +228,42 @@
|
||||
<domain name="kiwee.com" />
|
||||
<domain name="live.mundijuegos.com" />
|
||||
<domain name="skype.com" />
|
||||
<domain name="hiden.cc"/>
|
||||
<domain name="ugnet.gay"/>
|
||||
<domain name="crosstalk.im"/>
|
||||
<domain name="ctsrv.gay"/>
|
||||
{%- endif %}
|
||||
{%- for domain in trusted_domains %}
|
||||
<domain name="{{ domain }}" />
|
||||
{%- endfor %}
|
||||
</TrustedDomains>
|
||||
<ErrorResponseTable>
|
||||
<Feature type="0" name="Login">
|
||||
<Entry hr="*" action="3" />
|
||||
<Entry hr="0x81000605" action="3" />
|
||||
<Entry hr="0x80048849" action="5" />
|
||||
<Entry hr="0x8004882A" action="5" />
|
||||
<Entry hr="0x80048800" action="5" />
|
||||
<Entry hr="0x8004889C" action="5" />
|
||||
<Entry hr="0x80048831" action="5" />
|
||||
<Entry hr="0x81000306" action="5" />
|
||||
<Entry hr="0x80048862" action="5" />
|
||||
<Entry hr="0x800488EB" action="5" />
|
||||
<Entry hr="0x80048848" action="5" />
|
||||
<Entry hr="0x80004002" action="3" />
|
||||
<Entry hr="0x80004004" action="3" />
|
||||
<Entry hr="0x80004005" action="3" />
|
||||
<Entry hr="0x8000402A" action="3" />
|
||||
<Entry hr="0x8000FFFF" action="3" />
|
||||
<Entry hr="0x8001012E" action="3" />
|
||||
<Entry hr="0x80040200" action="3" />
|
||||
<Entry hr="0x80048051" action="3" />
|
||||
<Entry hr="0x80048820" action="5" />
|
||||
<Entry hr="0x80048823" action="3" />
|
||||
<Entry hr="0x80070002" action="3" />
|
||||
<Entry hr="0x80070005" action="3" />
|
||||
<Entry hr="0x8007000E" action="3" />
|
||||
<Entry hr="0x80070057" action="3" />
|
||||
<Entry hr="0x8007007E" action="3" />
|
||||
<Entry hr="0x800702E4" action="3" />
|
||||
<Entry hr="0x800706BA" action="3" />
|
||||
<Entry hr="0x800706BE" action="3" />
|
||||
<Entry hr="0x80071392" action="3" />
|
||||
<Entry hr="0x80072745" action="3" />
|
||||
<Entry hr="0x80072746" action="3" />
|
||||
<Entry hr="0x80072EE2" action="3" />
|
||||
<Entry hr="0x80072EF3" action="3" />
|
||||
<Entry hr="0x80072EFD" action="3" />
|
||||
<Entry hr="0x80072EFF" action="3" />
|
||||
<Entry hr="0x80072F06" action="3" />
|
||||
<Entry hr="0x80072F7D" action="3" />
|
||||
<Entry hr="0x800C013E" action="3" />
|
||||
<Entry hr="0x80191002" action="3" />
|
||||
<Entry hr="0x8100030D" action="3" />
|
||||
<Entry hr="0x81000314" action="3" />
|
||||
<Entry hr="0x81000362" action="3" />
|
||||
<Entry hr="0x81000378" action="3" />
|
||||
<Entry hr="0x81000395" action="3" />
|
||||
<Entry hr="0x85AE000B" action="3" />
|
||||
<Entry hr="0x85AE000F" action="3" />
|
||||
<Entry hr="0x85AE001D" action="3" />
|
||||
<Entry hr="0x85AE0022" action="3" />
|
||||
<Entry hr="0x85AE0024" action="3" />
|
||||
<Entry hr="0x85AE0027" action="3" />
|
||||
<Entry hr="0x85AE003C" action="3" />
|
||||
<Entry hr="0x85AE0053" action="3" />
|
||||
<Entry hr="0x8E5E0152" action="3" />
|
||||
<Entry hr="0x8E5E0158" action="3" />
|
||||
<Entry hr="0x8E5E0211" action="3" />
|
||||
<Entry hr="0x8E5E0220" action="3" />
|
||||
<Entry hr="0x8E5E0226" action="3" />
|
||||
<Entry hr="0x8E5E03FE" action="3" />
|
||||
<Entry hr="0x8E5E0408" action="3" />
|
||||
<Entry hr="0x8E5E05F6" action="3" />
|
||||
<Entry hr="0x8E5E0710" action="3" />
|
||||
<Entry hr="0x8E5E0713" action="3" />
|
||||
{%- for hr, action in error_login[variant] %}
|
||||
<Entry hr="{{ hr }}" action="{{ action }}" />
|
||||
{%- endfor %}
|
||||
</Feature>
|
||||
<Feature type="2" name="MapFile">
|
||||
<Entry hr="0x810003F1" action="3" />
|
||||
<Entry hr="0x810003F6" action="3" />
|
||||
{%- for hr, action in error_mapfile[variant] %}
|
||||
<Entry hr="{{ hr }}" action="{{ action }}" />
|
||||
{%- endfor %}
|
||||
</Feature>
|
||||
{%- if variant in error_p2p %}
|
||||
<Feature type="3" name="P2P">
|
||||
<Entry hr="0x82000016" action="3" />
|
||||
<Entry hr="0x82000017" action="3" />
|
||||
<Entry hr="0x82000019" action="3" />
|
||||
<Entry hr="0x8200001b" action="3" />
|
||||
<Entry hr="0x8200001d" action="3" />
|
||||
<Entry hr="0x8200001e" action="3" />
|
||||
<Entry hr="0x82000024" action="3" />
|
||||
<Entry hr="0x82000026" action="3" />
|
||||
{%- for hr, action in error_p2p[variant] %}
|
||||
<Entry hr="{{ hr }}" action="{{ action }}" />
|
||||
{%- endfor %}
|
||||
</Feature>
|
||||
{%- endif %}
|
||||
{%- if variant == 'wlm16' %}
|
||||
<Feature type="5" name="VoiceVideo">
|
||||
<Entry hr="*" action="3" />
|
||||
</Feature>
|
||||
{%- endif %}
|
||||
</ErrorResponseTable>
|
||||
{%- if variant == 'wlm14' %}
|
||||
<USBDevices>
|
||||
<Device VID="0x045e" PID="0x0719"/>
|
||||
<Device VID="0x045e" PID="0x0722"/>
|
||||
<Device VID="0x041e" PID="0x4080"/>
|
||||
</USBDevices>
|
||||
{%- elif variant == 'wlm16' %}
|
||||
<USBDevices>
|
||||
<Device VID="0x045e" PID="0x0719" />
|
||||
<Device VID="0x045e" PID="0x070F" />
|
||||
@@ -238,10 +277,14 @@
|
||||
<VoiceVideo>
|
||||
<Log PeerLogDisable="1" />
|
||||
</VoiceVideo>
|
||||
{%- endif %}
|
||||
{%- if is_wlm14_up %}
|
||||
<CirclesWeb General="https://{{ settings.WEBSITE_HOST }}/circles/$CIRCLECID$/settings/" General-SiteId="73625" Management="https://{{ settings.WEBSITE_HOST }}/circles/$CIRCLECID$/settings/" Management-SiteId="73625" Membership="https://{{ settings.WEBSITE_HOST }}/circles/$CIRCLECID$/settings/" Membership-SiteId="73625" Leave="https://{{ settings.WEBSITE_HOST }}/circles/$CIRCLECID$/settings/" Leave-SiteId="73625" Disc="https://{{ settings.WEBSITE_HOST }}" />
|
||||
<AnonymousIMSettings>
|
||||
<SettingsPage URL="http://settings.messenger.live.com/applications/WebSettings.aspx" SiteID="76215" />
|
||||
</AnonymousIMSettings>
|
||||
{%- endif %}
|
||||
{%- if variant == 'wlm16' %}
|
||||
<SocialNews>
|
||||
<ActivityDisplay PageSize="50" MaxItems="100" />
|
||||
<AlbumDisplay UnderlayImages="2" LeadUnderlayImages="2" />
|
||||
@@ -491,39 +534,135 @@
|
||||
<Entry Flags="10" Options="1" VendorId="8086" Minimum="8.15.10.2104" Version="8.15.10.2142" />
|
||||
</List>
|
||||
</HwBlockList>
|
||||
{%- endif %}
|
||||
</Simple>
|
||||
{%- if variant in ('msn', 'wlm8') %}
|
||||
<TabConfig>
|
||||
{% include 'msn:svcs/svcs_tabs.xml' %}
|
||||
</TabConfig>
|
||||
{%- endif %}
|
||||
<AbchCfg>
|
||||
<abchconfig>
|
||||
<url>https://{{ settings.ADDRESSBOOK_HOST }}/abservice.asmx</url>
|
||||
</abchconfig>
|
||||
</AbchCfg>
|
||||
{%- if variant == 'wlm16' %}
|
||||
<AdMainConfig>
|
||||
<AdDownloadTimeInMinutes>120</AdDownloadTimeInMinutes>
|
||||
<AdMainCfg>http://{{ settings.AD_HOST }}/ads/banner</AdMainCfg>
|
||||
</AdMainConfig>
|
||||
<AdPhoneConfig>http://{{ settings.AD_HOST }}/ads/banner</AdPhoneConfig>
|
||||
{%- endif %}
|
||||
<LocalizedConfig Market="en-US">
|
||||
<AdMainConfig>
|
||||
{%- if variant == 'wlm16' %}
|
||||
<AdBanner20URL Refresh="390">http://{{ settings.AD_HOST }}/ads/banner</AdBanner20URL>
|
||||
<AdBanner300URL Refresh="390" FooterPane="AlwaysShown">http://{{ settings.AD_HOST }}/ads/banner-lg</AdBanner300URL>
|
||||
<ConvoWinAd AdVisible="420" FooterPane="CollapsibleAndHideable" />
|
||||
<ConvoWinAdBannerURL>http://{{ settings.AD_HOST }}/ads/banner</ConvoWinAdBannerURL>
|
||||
{%- else %}
|
||||
<AdBanner20URL Refresh="300">http://{{ settings.AD_HOST }}/ads/banner</AdBanner20URL>
|
||||
{%- endif %}
|
||||
{%- if is_wlm %}
|
||||
<StdAd AdVisible="60" VideoVisible="120" VideoDldIntvl="0">
|
||||
<VideoFeeds FeedsListURL="http://{{ settings.AD_HOST }}/svcs/msn-video-feeds/"/>
|
||||
<VideoFeeds FeedsListURL="http://{{ settings.AD_HOST }}/svcs/msn-video-feeds/" />
|
||||
</StdAd>
|
||||
{%- endif %}
|
||||
{%- if is_wlm14_up %}
|
||||
<TextAdRotation>420</TextAdRotation>
|
||||
{%- endif %}
|
||||
<TextAdRefresh>1</TextAdRefresh>
|
||||
<TextAdServer>https://{{ settings.AD_HOST }}/ads/txt</TextAdServer>
|
||||
<TextAdServer>{{ 'https' if variant == 'wlm16' else 'http' }}://{{ settings.AD_HOST }}/ads/txt</TextAdServer>
|
||||
{%- if variant == 'wlm16' %}
|
||||
<Window Size="680" />
|
||||
{%- endif %}
|
||||
</AdMainConfig>
|
||||
<AppDirConfig>
|
||||
<AppDirPageURL>https://{{ settings.APPDIR_HOST }}/AppDirectory/Directory.aspx?L=en-us</AppDirPageURL>
|
||||
<AppDirSeviceURL>https://{{ settings.APPDIR_HOST }}/AppDirectory/AppDirectory.asmx</AppDirSeviceURL>
|
||||
<AppDirVersionURL>https://{{ settings.APPDIR_HOST }}/AppDirectory/GetAppdirVersion.aspx</AppDirVersionURL>
|
||||
{%- set appdir = ('https' if variant == 'wlm16' else 'http') ~ '://' ~ settings.APPDIR_HOST ~ '/AppDirectory' %}
|
||||
<AppDirPageURL>{{ appdir }}/Directory.aspx?L=en-us</AppDirPageURL>
|
||||
<AppDirSeviceURL>{{ appdir }}/AppDirectory.asmx</AppDirSeviceURL>
|
||||
<AppDirVersionURL>{{ appdir }}/GetAppdirVersion.aspx</AppDirVersionURL>
|
||||
</AppDirConfig>
|
||||
{%- if variant == 'wlm16' %}
|
||||
<AVPrerollAd FetchTimeout="6900" IntroLength="3000" MinAdLength="7000" URL="http://rad.msn.com/ADSAdClient31.dll?GetAd=&PG=IMUSV1" />
|
||||
<AVPrerollAd2 FetchTimeout="6900" IntroLength="0" MinAdLength="7000" URL="http://rad.msn.com/ADSAdClient31.dll?GetAd=&PG=IMUVD1" />
|
||||
<BuyWebcamLink URL="http://www.logitech.com/msn/index.cfm?c=US&l=EN" />
|
||||
{%- endif %}
|
||||
{%- if variant == 'wlm8' %}
|
||||
<Contacts>
|
||||
<ABPendingRequests>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/PendingRequests.aspx?mkt=en-us&partner=Messenger</url>
|
||||
<siteid>73625</siteid>
|
||||
<height>672</height>
|
||||
<width>808</width>
|
||||
</ABPendingRequests>
|
||||
<BuddysSocialNetwork>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/NetworkExplorer.aspx?mkt=en-us&partner=Messenger&cid=%1</url>
|
||||
<siteid>73625</siteid>
|
||||
<height>674</height>
|
||||
<width>808</width>
|
||||
</BuddysSocialNetwork>
|
||||
<EditMyLiveContactProfile>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/profile.aspx?action=edit&mode=activecontacts&mkt=en-us&partner=Messenger</url>
|
||||
<siteid>73625</siteid>
|
||||
</EditMyLiveContactProfile>
|
||||
<EditMyProfile>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/profile.aspx?action=edit&partner=Messenger&mkt=en-us</url>
|
||||
<siteid>73625</siteid>
|
||||
</EditMyProfile>
|
||||
<Profile>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/Profile.aspx?partner=Messenger&mkt=en-us&mem=%ls</url>
|
||||
<urlcid>http://{{ settings.SOCIAL_HOST }}/Profile.aspx?partner=Messenger&mkt=en-us&cid=%ls</urlcid>
|
||||
<siteid>73625</siteid>
|
||||
</Profile>
|
||||
<SocialNetwork>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/NetworkSetup.aspx?mkt=en-us&partner=Messenger</url>
|
||||
<siteid>73625</siteid>
|
||||
<height>674</height>
|
||||
<width>808</width>
|
||||
</SocialNetwork>
|
||||
<ViewMapEnabled>false</ViewMapEnabled>
|
||||
</Contacts>
|
||||
{%- elif variant == 'wlm14' %}
|
||||
<Contacts>
|
||||
<ABPendingRequests>
|
||||
<SiteId>73625</SiteId>
|
||||
<height>672</height>
|
||||
<IncludeSNRequests>true</IncludeSNRequests>
|
||||
<width>808</width>
|
||||
<urlcid>http://cid-%1!16.16I64X!.profile.live.com/invites?partner=Messenger</urlcid>
|
||||
</ABPendingRequests>
|
||||
<EditMyLiveContactProfile>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/profile.aspx?action=edit&mode=activecontacts&mkt=en-us&partner=Messenger</url>
|
||||
<SiteId>73625</SiteId>
|
||||
</EditMyLiveContactProfile>
|
||||
<EditMyProfile>
|
||||
<url>http://profile.live.com/details</url>
|
||||
<SiteId>73625</SiteId>
|
||||
</EditMyProfile>
|
||||
<Import>
|
||||
<url>http://cid-%1!16.16I64X!.profile.live.com/connect/?partner=Messenger</url>
|
||||
<SiteId>73625</SiteId>
|
||||
</Import>
|
||||
<MessengerInvite>
|
||||
<url>http://cid-%1.profile.live.com/connect/send.aspx?email=%2</url>
|
||||
<urlcid>http://cid-%1.profile.live.com/connect/send.aspx?cid=%2</urlcid>
|
||||
<SiteId>73625</SiteId>
|
||||
</MessengerInvite>
|
||||
<Profile>
|
||||
<url>http://{{ settings.SOCIAL_HOST }}/Profile.aspx?partner=Messenger&mkt=en-us&mem=%ls</url>
|
||||
<urlcid>http://{{ settings.SOCIAL_HOST }}/Profile.aspx?partner=Messenger&mkt=en-us&cid=%ls</urlcid>
|
||||
<urlcid2>http://cid-%1!16.16I64X!.profile.live.com</urlcid2>
|
||||
<SiteId>73625</SiteId>
|
||||
</Profile>
|
||||
<SNInvites>
|
||||
<url>http://cid-%1.profile.live.com/connect/Messenger.aspx?Email=%2</url>
|
||||
<urlcid>http://cid-%1.profile.live.com/connect/Messenger.aspx?cid=0x%2</urlcid>
|
||||
<SiteId>73625</SiteId>
|
||||
</SNInvites>
|
||||
<ViewMapEnabled>true</ViewMapEnabled>
|
||||
</Contacts>
|
||||
{%- elif variant == 'wlm16' %}
|
||||
<Contacts>
|
||||
<ABPendingRequests>
|
||||
<SiteId>73625</SiteId>
|
||||
@@ -613,6 +752,28 @@
|
||||
</ViewPhotosWLPersonURL>
|
||||
<ViewMapEnabled>true</ViewMapEnabled>
|
||||
</Contacts>
|
||||
{%- endif %}
|
||||
{%- if variant in ('wlm8', 'wlm14') %}
|
||||
<ContactCard>
|
||||
<AddToMySpaceSiteId>45930</AddToMySpaceSiteId>
|
||||
<AddToMySpaceUrl>http://{{ settings.SOCIAL_HOST }}/?addblogentry=true&mkt=nl-nl</AddToMySpaceUrl>
|
||||
<ContactCardDisabled>false</ContactCardDisabled>
|
||||
<CreateSpaceSiteId>45930</CreateSpaceSiteId>
|
||||
<CreateSpaceUrl>http://{{ settings.SOCIAL_HOST }}/signup.aspx?mkt=nl-nl</CreateSpaceUrl>
|
||||
{%- if variant == 'wlm8' %}
|
||||
<GetItemVerUrl>http://storage.msn.com/storageservice/schematizedstore.asmx</GetItemVerUrl>
|
||||
<GetXmlFeedUrl>http://services.{{ settings.SOCIAL_HOST }}/contactcard/contactcardservice.asmx</GetXmlFeedUrl>
|
||||
{%- else %}
|
||||
<GetItemVerUrl>http://ctas.storage.ugnet.xyz/storageservice/schematizedstore.asmx</GetItemVerUrl>
|
||||
<GetXmlFeedUrl>http://{{ settings.SOCIAL_HOST }}/contactcard/contactcardservice.asmx</GetXmlFeedUrl>
|
||||
{%- endif %}
|
||||
<MySpaceSiteId>45930</MySpaceSiteId>
|
||||
<MySpaceUrl>http://{{ settings.SOCIAL_HOST }}/homepage.aspx</MySpaceUrl>
|
||||
<SpaceBaseSiteId>45930</SpaceBaseSiteId>
|
||||
<SpaceBaseUrl>http://{{ settings.SOCIAL_HOST }}</SpaceBaseUrl>
|
||||
<SpaceIntegrationEnabled>true</SpaceIntegrationEnabled>
|
||||
</ContactCard>
|
||||
{%- elif variant == 'wlm16' %}
|
||||
<ContactCard>
|
||||
<AddToMySpaceSiteId>73625</AddToMySpaceSiteId>
|
||||
<AddToMySpaceUrl>http://{{ settings.SOCIAL_HOST }}/?addblogentry=true&mkt=en-us</AddToMySpaceUrl>
|
||||
@@ -630,12 +791,20 @@
|
||||
<SpaceIntegrationEnabled>true</SpaceIntegrationEnabled>
|
||||
</ContactCard>
|
||||
<EditorialConfig>http://www.msn.com/infopane/messenger.armx</EditorialConfig>
|
||||
{%- endif %}
|
||||
{%- if is_wlm %}
|
||||
<FlashUpgradeURL>http://{{ settings.STORAGE_HOST }}/crosstalk-dist/client/all/tools/flashplayer_10_3r183_48_winax.exe</FlashUpgradeURL>
|
||||
{%- endif %}
|
||||
{%- if variant == 'wlm16' %}
|
||||
<FSS>
|
||||
<SiteID>71659</SiteID>
|
||||
<AddBuddyURL>https://fss.live.com/krl/AddContact.aspx</AddBuddyURL>
|
||||
</FSS>
|
||||
{%- endif %}
|
||||
{%- if is_wlm %}
|
||||
<GLinkMarket v="en_us" />
|
||||
{%- endif %}
|
||||
{%- if variant == 'wlm16' %}
|
||||
<Highlight>
|
||||
<FirstRunURLSet>
|
||||
<FirstRunURL id="1">
|
||||
@@ -659,31 +828,60 @@
|
||||
</Wave>
|
||||
</Highlight>
|
||||
<IntroConfig />
|
||||
{%- endif %}
|
||||
{%- if is_wlm14_up %}
|
||||
<LiveFolders UpsellMessageId="1" />
|
||||
{%- endif %}
|
||||
{%- if variant == 'wlm16' %}
|
||||
<Marketplace>
|
||||
<General URL="http://www.microsoft.com/windowslivedevices/marketplace/default.aspx" />
|
||||
<Webcam URL="http://www.microsoft.com/windowslivedevices/marketplace/default.aspx" />
|
||||
</Marketplace>
|
||||
{%- endif %}
|
||||
{%- if is_wlm %}
|
||||
<MessengerBlogURL>https://{{ settings.WEBSITE_HOST }}/blog</MessengerBlogURL>
|
||||
{%- endif %}
|
||||
{%- if variant == 'wlm16' %}
|
||||
<MobileMessaging Mode="RPPNew" CarrierList="" CrossSell="1" CharMax="140" MainWindowButton="true" OperatorPage="http://get.live.com/messenger/mobile" ValidRoutes="US;CA" />
|
||||
{%- endif %}
|
||||
<MSNSearch>
|
||||
<DesktopInstallURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</DesktopInstallURL>
|
||||
<ImagesURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=images</ImagesURL>
|
||||
<NearMeURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</NearMeURL>
|
||||
<NewsURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$+news&ia=news</NewsURL>
|
||||
{%- if variant != 'wlm8' %}
|
||||
<DesktopInstallURL>{{ search_url }}&ia=web</DesktopInstallURL>
|
||||
{%- endif %}
|
||||
<ImagesURL>{{ search_url }}&ia=images</ImagesURL>
|
||||
{%- if variant != 'wlm8' %}
|
||||
<NearMeURL>{{ search_url }}&ia=web</NearMeURL>
|
||||
{%- endif %}
|
||||
<NewsURL>{{ search_url }}+news&ia=news</NewsURL>
|
||||
{%- if is_wlm14_up %}
|
||||
<PeopleSearchURL>http://home.live.com/search?query=$QUERY$</PeopleSearchURL>
|
||||
<PeopleSearchSiteID>73625</PeopleSearchSiteID>
|
||||
<SearchKidsURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SearchKidsURL>
|
||||
<SearchURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SearchURL>
|
||||
<SharedSearchURL>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SharedSearchURL>
|
||||
<SharedSearchURL2>https://searx.ugnet.gay/searxng/search?q=$QUERY$&ia=web</SharedSearchURL2>
|
||||
{%- endif %}
|
||||
{%- if variant != 'wlm8' %}
|
||||
<SearchKidsURL>{{ search_url }}&ia=web</SearchKidsURL>
|
||||
{%- endif %}
|
||||
<SearchURL>{{ search_url }}&ia=web</SearchURL>
|
||||
<SharedSearchURL>{{ search_url }}&ia=web</SharedSearchURL>
|
||||
<SharedSearchURL2>{{ search_url }}&ia=web</SharedSearchURL2>
|
||||
</MSNSearch>
|
||||
<MsnTodayConfig>
|
||||
{%- if variant == 'msn' %}
|
||||
<MsnTodayURL>http://{{ settings.TODAY_HOST }}/start?msn=1</MsnTodayURL>
|
||||
{%- else %}
|
||||
<MsnTodaySiteID>6528</MsnTodaySiteID>
|
||||
{%- if variant == 'wlm16' %}
|
||||
<MsnTodayURL>https://{{ settings.TODAY_HOST }}/start?windowslive=1</MsnTodayURL>
|
||||
{%- else %}
|
||||
<MsnTodayURL>http://{{ settings.TODAY_HOST }}/start?wlm=1</MsnTodayURL>
|
||||
{%- endif %}
|
||||
<Flags>2</Flags>
|
||||
{%- endif %}
|
||||
</MsnTodayConfig>
|
||||
<MusicIntegration URL="https://www.last.fm/search/tracks?q=$ARTIST$+$TITLE$"/>
|
||||
<MusicIntegration URL="https://www.last.fm/search/tracks?q=$ARTIST$+$TITLE$" />
|
||||
{%- if variant in ('wlm8', 'wlm14') %}
|
||||
<OneCare Enabled="0" />
|
||||
{%- endif %}
|
||||
{%- if variant == 'wlm16' %}
|
||||
<PartnerFeeds>
|
||||
<Feed Name="MSN" URL="https://{{ settings.TODAY_HOST }}/start?windowslive=1" Owner="MSN" />
|
||||
<Feed Name="GAMES" URL="http://windowsphone.xbox.com/en-US/MessengerGames/TabConfig" Owner="GAMES" />
|
||||
@@ -692,9 +890,19 @@
|
||||
<Feed Name="MSN" URL="https://{{ settings.TODAY_HOST }}/start?windowslive=1" Owner="MSN" />
|
||||
<Feed Name="GAMES" URL="http://windowsphone.xbox.com/en-US/MessengerGames/TabConfig" Owner="GAMES" />
|
||||
</PartnerFeedsSSL>
|
||||
{%- endif %}
|
||||
{%- if variant == 'wlm14' %}
|
||||
<PE Tracking="" />
|
||||
{%- elif variant == 'wlm16' %}
|
||||
<PE Tracking="http://trackingw4.technodesignip.com/?ContentID=$ContentID$&Click=$Click$" />
|
||||
{%- endif %}
|
||||
{%- if is_wlm14_up %}
|
||||
<PremiumAV Visibility="1" />
|
||||
<PSTNOut Hidden="0" />
|
||||
{%- endif %}
|
||||
{%- if is_wlm %}
|
||||
<PSTNOut Hidden="{{ 1 if variant == 'wlm8' else 0 }}" />
|
||||
{%- endif %}
|
||||
{%- if variant == 'wlm16' %}
|
||||
<PublicFederated>
|
||||
<YahooNetwork Enabled="true" OfflineIM="true" />
|
||||
</PublicFederated>
|
||||
@@ -704,10 +912,23 @@
|
||||
<BiciReportAbuseApiUrl>https://home.live.com/handlers/ReportAbuse.mvc</BiciReportAbuseApiUrl>
|
||||
<BiciReportAbuseApiServiceTarget>{{ settings.SOCIAL_HOST }}</BiciReportAbuseApiServiceTarget>
|
||||
</ReportAbuse>
|
||||
{%- elif is_wlm %}
|
||||
<ReportAbuse>
|
||||
<ReportAbuseSID />
|
||||
<ReportAbuseURL>https://{{ settings.WEBSITE_HOST }}/report</ReportAbuseURL>
|
||||
</ReportAbuse>
|
||||
{%- endif %}
|
||||
<RL>
|
||||
{%- if is_wlm14_up %}
|
||||
<ViewProfileURL>http://g.msn.com/5meen_us/106?%1&Plcid=%2!hs!&%3&Country=%4!hs!&BrandID=%5&passport=%6</ViewProfileURL>
|
||||
{%- else %}
|
||||
<ViewProfileURL>https://{{ settings.WEBSITE_HOST }}/account/settings</ViewProfileURL>
|
||||
{%- endif %}
|
||||
</RL>
|
||||
{%- if is_wlm %}
|
||||
<SDrive Enabled="true" />
|
||||
{%- endif %}
|
||||
{%- if variant == 'wlm16' %}
|
||||
<ServiceAwareness>
|
||||
<FindMoreUrl>http://cid-%1!16.16I64X!.profile.live.com/Services/</FindMoreUrl>
|
||||
<FindMoreSiteId>73625</FindMoreSiteId>
|
||||
@@ -745,20 +966,22 @@
|
||||
<SocialToast>
|
||||
<SuppressedEmailDomain>windowslivemail.com</SuppressedEmailDomain>
|
||||
</SocialToast>
|
||||
{%- endif %}
|
||||
{%- if is_wlm14_up %}
|
||||
<TabConfig>
|
||||
<RowNumber>1</RowNumber>
|
||||
<slots>
|
||||
{% for tab in tabs %}
|
||||
<URL id="{{ tab.id }}">
|
||||
https://{{ settings.AD_HOST }}/svcs/tab={{ tab.id }}
|
||||
</URL>
|
||||
{% endfor %}
|
||||
</slots>
|
||||
</TabConfig>
|
||||
{%- for tab in tabs %}
|
||||
<URL id="{{ tab.id }}">https://{{ settings.AD_HOST }}/svcs/tab={{ tab.id }}</URL>
|
||||
{%- endfor %}
|
||||
</slots>
|
||||
</TabConfig>
|
||||
{%- endif %}
|
||||
<TermsOfUse>
|
||||
<TermsOfUseSID>956</TermsOfUseSID>
|
||||
<TermsOfUseURL>https://{{ settings.WEBSITE_HOST }}/tos</TermsOfUseURL>
|
||||
</TermsOfUse>
|
||||
{%- if variant == 'wlm16' %}
|
||||
<UPUX>
|
||||
<Product id="8" PartnerID="TD" ProductName="Winks" BrandName="Quebles Winks">
|
||||
<BasePurchaseURL LaunchWindowType="Messenger" SiteID="60025" URL="http://www.mobilemoney.com/partners/msnmessenger/webshop/winks.asp?pos=chatwindow&contentID=$CONTENTID$" />
|
||||
@@ -789,6 +1012,8 @@
|
||||
<BasePurchaseURL LaunchWindowType="Messenger" SiteID="258666" URL="http://themepackfactory.windowslive.com/default.aspx?tpf.loc=WKGetThis&tpf.cid=$CONTENTID$" />
|
||||
</Product>
|
||||
</UPUX>
|
||||
{%- endif %}
|
||||
{%- if is_wlm %}
|
||||
<VoiceClip Hidden="0" />
|
||||
<VoiceVideo>
|
||||
<DisableSipProxyInviteTest>0</DisableSipProxyInviteTest>
|
||||
@@ -796,9 +1021,27 @@
|
||||
<DisableSipProxyInvite>0</DisableSipProxyInvite>
|
||||
<DisableSipProxyCapability2>0</DisableSipProxyCapability2>
|
||||
<DisableSipProxyInvite2>0</DisableSipProxyInvite2>
|
||||
{%- if variant == 'wlm16' %}
|
||||
<VideoMessages>
|
||||
<Config EnableRecording="1" Length="30" />
|
||||
</VideoMessages>
|
||||
{%- endif %}
|
||||
</VoiceVideo>
|
||||
{%- endif %}
|
||||
</LocalizedConfig>
|
||||
</MsgrConfig>
|
||||
</MsgrConfig>
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- if soap -%}
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<soap:Body>
|
||||
<GetClientConfigResponse xmlns="http://www.msn.com/webservices/Messenger/Client">
|
||||
<GetClientConfigResult><![CDATA[{{ msgr_config() }}]]></GetClientConfigResult>
|
||||
</GetClientConfigResponse>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
{%- else -%}
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
{{ msgr_config() }}
|
||||
{%- endif -%}
|
||||
@@ -3,10 +3,10 @@
|
||||
When a certificate is rev'd, a line like the following should be
|
||||
added to the cfg:Settings section:
|
||||
<cfg:Certificate expired="true">SLCA_BACKUP.CER</cfg:Certificate>
|
||||
--><cfg:Settings><cfg:DeviceDNSSuffix>.devicedns.ugnet.gay</cfg:DeviceDNSSuffix><cfg:DeviceDNSSuffixOld></cfg:DeviceDNSSuffixOld><cfg:EIDEnumBCSP>Microsoft Base Smart Card Crypto Provider</cfg:EIDEnumBCSP><cfg:EIDEnumRootCAThumbprint>0tOOumDKocEgVaLhyDsVrUUBEMI=</cfg:EIDEnumRootCAThumbprint><cfg:UpdateNeededInterval>604800</cfg:UpdateNeededInterval><cfg:ResolveTimeout>0</cfg:ResolveTimeout><cfg:ConnectTimeout>10000</cfg:ConnectTimeout><cfg:SendTimeout>30000</cfg:SendTimeout><cfg:ReceiveTimeout>30000</cfg:ReceiveTimeout><cfg:MinMinutesBetweenMetaConfigCheck>1440</cfg:MinMinutesBetweenMetaConfigCheck><!--[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")]--><cfg:AndroidSsoCerts>sX6CAbEo4edMwCNRCrfqA6wn3eUNMtgQ6hV3dY8cwJg=,g2b69yfcSDF6LzoMN/oSfz81YZTPuy9LYo7H5qGnXA8=,uSUTbz6nwKGVFpChqzE5ENqB9AmUqFNC7GIoiPEocFE=,oHlCFSeKVn6IevbN4BWl6IQU72QPfas4VaPneWWL53g=,fVOTUco5wnynBkCeWptrBi25v43D2MqmE3Bnrn9otec=,KEg2GpweMt8dPi7Wp7nmelJc+KE7Fk+ABslHlXj3Rt4=,7r0PFuYpr4uDgb/t/dZJYF/pD3Y/XLe6Rz657vlNmvE=,Mb5ACW+THNfxHV4mLSssQ3xEOF+07LwQE9ladDWBb5w=,6EPuPaEZXWr7icqjznQnsI/AH9h4ok+lbpYsNccdXnA=,rQZmwqojBROk1Pc/okKkWGzY7WcmodDdVCUHcv2blgU=</cfg:AndroidSsoCerts><cfg:ConfigServerSslURI>https://go.microsoft.com/fwlink/?LinkId=690512</cfg:ConfigServerSslURI><cfg:ConfigServerCdnURI>http://go.microsoft.com/fwlink/?LinkId=253579</cfg:ConfigServerCdnURI><cfg:ConfigServerURI>http://clientconfig.passport.net/ppcrlconfig.srf</cfg:ConfigServerURI><cfg:TopNonFedDomains>@hotmail.,@msn.,@live.,@yahoo.,@gmail.,@windowslive.,@sympatico.,@aol.,@163.,@freemail.,@gmx.,@comcast.,@web.,@libero.,@wanadoo.,@sbcglobal.,@example.,@tiscali.,@126.,@mail.,@q.,@xiaoi.,@hanmail.,@walla.,@free.,@ppauthz.com,@compaq.,@hotmail.co.,@messengeruser.,@passport.,@webtv.</cfg:TopNonFedDomains><cfg:DIDCOMMetaData><cfg:DIDWithAuth>1</cfg:DIDWithAuth><cfg:AssocPDIDToLDID>1</cfg:AssocPDIDToLDID><cfg:Protocol><cfg:CLSID>{1C109E4C-2F30-4EA3-A57A-A290877A2303}</cfg:CLSID><cfg:DATA><![CDATA[<Input version="1" match="20"><Excluded><Controller>Win32_USBControllerDevice</Controller><Controller>Win32_1394ControllerDevice</Controller><Controller>Win32_PCMCIAControllerDevice</Controller><Controller>Win32_ConnectionShare</Controller></Excluded><Class name="Win32_PhysicalMedia" pos="1" hash="32" match="10"><Data>SerialNumber</Data></Class><Class name="Win32_NetworkAdapter" pos="2" hash="32" match="10"><Data>MACAddress</Data></Class><Class name="Win32_BIOS" pos="3" hash="32" match="10"><Data>Manufacturer</Data><Data>SerialNumber</Data></Class></Input>]]></cfg:DATA><cfg:PREFIX>01</cfg:PREFIX></cfg:Protocol><cfg:Protocol><cfg:CLSID>{B9F1D9B8-1DA6-4F17-962F-69EC82EA2704}</cfg:CLSID><cfg:PREFIX>03</cfg:PREFIX><cfg:LOGICAL>1</cfg:LOGICAL><cfg:SYSTEM>1</cfg:SYSTEM></cfg:Protocol><cfg:Protocol><cfg:CLSID>{B9F1D9B8-1DA6-4F17-962F-69EC82EA2704}</cfg:CLSID><cfg:PREFIX>02</cfg:PREFIX><cfg:LOGICAL>1</cfg:LOGICAL></cfg:Protocol><cfg:CONSENTVERSION>1</cfg:CONSENTVERSION></cfg:DIDCOMMetaData><cfg:Certificate>MIIDGjCCAtqgAwIBAgIJAL67zDTCqZpDMAkGByqGSM44BAMwIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MB4XDTEzMDcwMjIxMTAzN1oXDTE4MDcwMTIxMTAzN1owIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MIIBtjCCASsGByqGSM44BAEwggEeAoGBAPPi828dNQiBJ1qnxffow1emUO8g3DK1PKd5hC3L/BUiKMHnZAGcVcp7+KARbMypNjbcaBFhyBiPefmFzOaxqKr0Tf/T6mwtYP2A7v0ITEoJxLl4TPPM9jjKjMqTf7rubUcsrU7i1d3aTmUxhOUS2YRsdwq9xeSUXOVobFE7848VAhUAn9eIFUVj31yox4o1Qnj8cDlON/sCgYA6dp0LN/eExvGvZo/6ey0LU96/rA5k24JE9MF5Pp40ysAgBH098FY93v0XGrL9avSffTYWwoXMQiWQw6bwyuDdOYfD8xCl7+DxJ/QGQW6YPsZJ6DXhAG4vzPSEdLkOgstny2JgjtQvLsRbcYA9Y9vWMQG4pJD9GrCRl270uxdqZQOBhAACgYBu0rix0SuIRsMiNoM3actVS804Cb/WhMi9rPtQDKUAMnGFVgzMg9muE1gPpyqp/Tbsyqn9eYYSRcxZG059zwR4R+gtWUaCljhHOScjYUL5ql2Z7DNxRndJLjl4QmT0hq2msCiDfbWZpY5RLjdsUkcLHLiZF5N4NJnnct5meNsr46OBmDCBlTAdBgNVHQ4EFgQURtLCWz4DNCN5LhccABkoTHEQK2QwUwYDVR0jBEwwSoAURtLCWz4DNCN5LhccABkoTHEQK2ShJ6QlMCMxITAfBgNVBAMTGFRva2VuIFNpZ25pbmcgUHVibGljIEtleYIJAL67zDTCqZpDMBIGA1UdEwEB/wQIMAYBAf8CAQAwCwYDVR0PBAQDAgHGMAkGByqGSM44BAMDLwAwLAIUC3k3NJt95Lh1CFXNQO9Luy0xRakCFBdAihMHEpTBGyyeUZXkEeuGpUhk</cfg:Certificate><cfg:Certificate>MIIDGzCCAtugAwIBAgIJAL6pALeLZHDvMAkGByqGSM44BAMwIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MB4XDTE2MDUwOTIwNDA1NVoXDTIxMDUwODIwNDA1NVowIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MIIBtzCCASwGByqGSM44BAEwggEfAoGBAKmnM6FKnJ1osHWBHd8jHFFMDNwygIcof9EfHW6xJbU2uIzVV5WRu251RbRbmOqozesK44vkeBx9Ntl7PSu0W5RJFCEw9o4RLG0J40MWDNDQ+7iqvIsM6lsgZrDjNoWJ2t/Yrnnp0r3F9YNtj7J4vgLCYNOlkr2kcfGiji+SXotXAhUAqGI2zlbARtjz+simu2PihUPkV1MCgYEAnrIIXPvjKvWiXd3uve7eDS8qRHW7yoAseVLgeEIbS4VSj/9iQqunx1weQGlds75CLZgpcrY4Z5wbkxSjnK1EV30qce4+VzgXYGLZIAvl78wbAMFrG0josXccAbmqVM4LX2Z5yu1TEpPZLvgiaV4gJk4jsYhInqPm3Bw2qQ+gZokDgYQAAoGAFozcPQdM9MmszvEWMXuFrfEA8kVMnKIyA60paSi7CIecSAlsRLyw3D9J9pRW6HHdRZgOrKvnNcY63gKB56SKyj6r3nGqtkwEpu9yw1K+k2aSyJcKPHYVNw1Um5McKJgQJ49ShJFPaWXfDZPOCpgMpdzibnWjMcTak5rz4FHSUtOjgZgwgZUwHQYDVR0OBBYEFKNT6lUDzQppxFhwtv/jkSCRx596MFMGA1UdIwRMMEqAFKNT6lUDzQppxFhwtv/jkSCRx596oSekJTAjMSEwHwYDVQQDExhUb2tlbiBTaWduaW5nIFB1Line truncated
|
||||
</cfg:PassportSecurityTokenService><cfg:MSNPassportSecurityTokenService>https://ctas.login.ugnet.gay/RST.srf</cfg:MSNPassportSecurityTokenService><cfg:PassportSHA1Auth>https://ctas.login.ugnet.gay/ppsecure/SHA1Auth.srf
|
||||
</cfg:PassportSHA1Auth><cfg:URL_PasswordReset>https://ctas.login.ugnet.gay/resetpw.srf
|
||||
--><cfg:Settings><cfg:DeviceDNSSuffix>.devicedns.ugnet.xyz</cfg:DeviceDNSSuffix><cfg:DeviceDNSSuffixOld></cfg:DeviceDNSSuffixOld><cfg:EIDEnumBCSP>Microsoft Base Smart Card Crypto Provider</cfg:EIDEnumBCSP><cfg:EIDEnumRootCAThumbprint>0tOOumDKocEgVaLhyDsVrUUBEMI=</cfg:EIDEnumRootCAThumbprint><cfg:UpdateNeededInterval>604800</cfg:UpdateNeededInterval><cfg:ResolveTimeout>0</cfg:ResolveTimeout><cfg:ConnectTimeout>10000</cfg:ConnectTimeout><cfg:SendTimeout>30000</cfg:SendTimeout><cfg:ReceiveTimeout>30000</cfg:ReceiveTimeout><cfg:MinMinutesBetweenMetaConfigCheck>1440</cfg:MinMinutesBetweenMetaConfigCheck><!--[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")]--><cfg:AndroidSsoCerts>sX6CAbEo4edMwCNRCrfqA6wn3eUNMtgQ6hV3dY8cwJg=,g2b69yfcSDF6LzoMN/oSfz81YZTPuy9LYo7H5qGnXA8=,uSUTbz6nwKGVFpChqzE5ENqB9AmUqFNC7GIoiPEocFE=,oHlCFSeKVn6IevbN4BWl6IQU72QPfas4VaPneWWL53g=,fVOTUco5wnynBkCeWptrBi25v43D2MqmE3Bnrn9otec=,KEg2GpweMt8dPi7Wp7nmelJc+KE7Fk+ABslHlXj3Rt4=,7r0PFuYpr4uDgb/t/dZJYF/pD3Y/XLe6Rz657vlNmvE=,Mb5ACW+THNfxHV4mLSssQ3xEOF+07LwQE9ladDWBb5w=,6EPuPaEZXWr7icqjznQnsI/AH9h4ok+lbpYsNccdXnA=,rQZmwqojBROk1Pc/okKkWGzY7WcmodDdVCUHcv2blgU=</cfg:AndroidSsoCerts><cfg:ConfigServerSslURI>https://go.microsoft.com/fwlink/?LinkId=690512</cfg:ConfigServerSslURI><cfg:ConfigServerCdnURI>http://go.microsoft.com/fwlink/?LinkId=253579</cfg:ConfigServerCdnURI><cfg:ConfigServerURI>http://clientconfig.passport.net/ppcrlconfig.srf</cfg:ConfigServerURI><cfg:TopNonFedDomains>@hotmail.,@msn.,@live.,@yahoo.,@gmail.,@windowslive.,@sympatico.,@aol.,@163.,@freemail.,@gmx.,@comcast.,@web.,@libero.,@wanadoo.,@sbcglobal.,@example.,@tiscali.,@126.,@mail.,@q.,@xiaoi.,@hanmail.,@walla.,@free.,@ppauthz.com,@compaq.,@hotmail.co.,@messengeruser.,@passport.,@webtv.</cfg:TopNonFedDomains><cfg:DIDCOMMetaData><cfg:DIDWithAuth>1</cfg:DIDWithAuth><cfg:AssocPDIDToLDID>1</cfg:AssocPDIDToLDID><cfg:Protocol><cfg:CLSID>{1C109E4C-2F30-4EA3-A57A-A290877A2303}</cfg:CLSID><cfg:DATA><![CDATA[<Input version="1" match="20"><Excluded><Controller>Win32_USBControllerDevice</Controller><Controller>Win32_1394ControllerDevice</Controller><Controller>Win32_PCMCIAControllerDevice</Controller><Controller>Win32_ConnectionShare</Controller></Excluded><Class name="Win32_PhysicalMedia" pos="1" hash="32" match="10"><Data>SerialNumber</Data></Class><Class name="Win32_NetworkAdapter" pos="2" hash="32" match="10"><Data>MACAddress</Data></Class><Class name="Win32_BIOS" pos="3" hash="32" match="10"><Data>Manufacturer</Data><Data>SerialNumber</Data></Class></Input>]]></cfg:DATA><cfg:PREFIX>01</cfg:PREFIX></cfg:Protocol><cfg:Protocol><cfg:CLSID>{B9F1D9B8-1DA6-4F17-962F-69EC82EA2704}</cfg:CLSID><cfg:PREFIX>03</cfg:PREFIX><cfg:LOGICAL>1</cfg:LOGICAL><cfg:SYSTEM>1</cfg:SYSTEM></cfg:Protocol><cfg:Protocol><cfg:CLSID>{B9F1D9B8-1DA6-4F17-962F-69EC82EA2704}</cfg:CLSID><cfg:PREFIX>02</cfg:PREFIX><cfg:LOGICAL>1</cfg:LOGICAL></cfg:Protocol><cfg:CONSENTVERSION>1</cfg:CONSENTVERSION></cfg:DIDCOMMetaData><cfg:Certificate>MIIDGjCCAtqgAwIBAgIJAL67zDTCqZpDMAkGByqGSM44BAMwIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MB4XDTEzMDcwMjIxMTAzN1oXDTE4MDcwMTIxMTAzN1owIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MIIBtjCCASsGByqGSM44BAEwggEeAoGBAPPi828dNQiBJ1qnxffow1emUO8g3DK1PKd5hC3L/BUiKMHnZAGcVcp7+KARbMypNjbcaBFhyBiPefmFzOaxqKr0Tf/T6mwtYP2A7v0ITEoJxLl4TPPM9jjKjMqTf7rubUcsrU7i1d3aTmUxhOUS2YRsdwq9xeSUXOVobFE7848VAhUAn9eIFUVj31yox4o1Qnj8cDlON/sCgYA6dp0LN/eExvGvZo/6ey0LU96/rA5k24JE9MF5Pp40ysAgBH098FY93v0XGrL9avSffTYWwoXMQiWQw6bwyuDdOYfD8xCl7+DxJ/QGQW6YPsZJ6DXhAG4vzPSEdLkOgstny2JgjtQvLsRbcYA9Y9vWMQG4pJD9GrCRl270uxdqZQOBhAACgYBu0rix0SuIRsMiNoM3actVS804Cb/WhMi9rPtQDKUAMnGFVgzMg9muE1gPpyqp/Tbsyqn9eYYSRcxZG059zwR4R+gtWUaCljhHOScjYUL5ql2Z7DNxRndJLjl4QmT0hq2msCiDfbWZpY5RLjdsUkcLHLiZF5N4NJnnct5meNsr46OBmDCBlTAdBgNVHQ4EFgQURtLCWz4DNCN5LhccABkoTHEQK2QwUwYDVR0jBEwwSoAURtLCWz4DNCN5LhccABkoTHEQK2ShJ6QlMCMxITAfBgNVBAMTGFRva2VuIFNpZ25pbmcgUHVibGljIEtleYIJAL67zDTCqZpDMBIGA1UdEwEB/wQIMAYBAf8CAQAwCwYDVR0PBAQDAgHGMAkGByqGSM44BAMDLwAwLAIUC3k3NJt95Lh1CFXNQO9Luy0xRakCFBdAihMHEpTBGyyeUZXkEeuGpUhk</cfg:Certificate><cfg:Certificate>MIIDGzCCAtugAwIBAgIJAL6pALeLZHDvMAkGByqGSM44BAMwIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MB4XDTE2MDUwOTIwNDA1NVoXDTIxMDUwODIwNDA1NVowIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MIIBtzCCASwGByqGSM44BAEwggEfAoGBAKmnM6FKnJ1osHWBHd8jHFFMDNwygIcof9EfHW6xJbU2uIzVV5WRu251RbRbmOqozesK44vkeBx9Ntl7PSu0W5RJFCEw9o4RLG0J40MWDNDQ+7iqvIsM6lsgZrDjNoWJ2t/Yrnnp0r3F9YNtj7J4vgLCYNOlkr2kcfGiji+SXotXAhUAqGI2zlbARtjz+simu2PihUPkV1MCgYEAnrIIXPvjKvWiXd3uve7eDS8qRHW7yoAseVLgeEIbS4VSj/9iQqunx1weQGlds75CLZgpcrY4Z5wbkxSjnK1EV30qce4+VzgXYGLZIAvl78wbAMFrG0josXccAbmqVM4LX2Z5yu1TEpPZLvgiaV4gJk4jsYhInqPm3Bw2qQ+gZokDgYQAAoGAFozcPQdM9MmszvEWMXuFrfEA8kVMnKIyA60paSi7CIecSAlsRLyw3D9J9pRW6HHdRZgOrKvnNcY63gKB56SKyj6r3nGqtkwEpu9yw1K+k2aSyJcKPHYVNw1Um5McKJgQJ49ShJFPaWXfDZPOCpgMpdzibnWjMcTak5rz4FHSUtOjgZgwgZUwHQYDVR0OBBYEFKNT6lUDzQppxFhwtv/jkSCRx596MFMGA1UdIwRMMEqAFKNT6lUDzQppxFhwtv/jkSCRx596oSekJTAjMSEwHwYDVQQDExhUb2tlbiBTaWduaW5nIFB1Line truncated
|
||||
</cfg:PassportSecurityTokenService><cfg:MSNPassportSecurityTokenService>https://ctas.login.ugnet.xyz/RST.srf</cfg:MSNPassportSecurityTokenService><cfg:PassportSHA1Auth>https://ctas.login.ugnet.xyz/ppsecure/SHA1Auth.srf
|
||||
</cfg:PassportSHA1Auth><cfg:URL_PasswordReset>https://ctas.login.ugnet.xyz/resetpw.srf
|
||||
</cfg:URL_PasswordReset><cfg:URL_PassportNetwork>http://www.microsoft.com/account/default.aspx
|
||||
</cfg:URL_PassportNetwork><cfg:URL_AccountServices>https://account.ugnet.gay
|
||||
</cfg:URL_AccountServices><cfg:URL_PaneHelpFrame>http://ctas.login.ugnet.gay/hp.srf?format=b1
|
||||
</cfg:URL_PaneHelpFrame><!-- !!! P L E A S E R E A D !!!! --><!-- IDCRL 4.5 and below cannot load more than 32 items from <cfg:ServiceURIs> node. --><!-- Add any new items in <cfg:ServiceURIs1> node below. --><!-- NOTE: IDCRL 4.5 and below will NOT be able to read items from the new node. --></cfg:ServiceURIs><cfg:ServiceURIs1><cfg:PassportMetaConfig>http://ctas.login.ugnet.gay/ppcrlcheck.srf</cfg:PassportMetaConfig><cfg:DeviceIdTrustedDomain>*.ugnet.gay</cfg:DeviceIdTrustedDomain><cfg:DIDManagementDomain>ctas.login.ugnet.gay,account.ugnet.gay</cfg:DIDManagementDomain><cfg:PREFBINCookieDomain>c.ugnet.gay,c.msn.com</cfg:PREFBINCookieDomain><cfg:WLIDSTS_WCF>https://ctas.login.ugnet.gay/RST2.srf</cfg:WLIDSTS_WCF><cfg:MSNWLIDSTS_WCF>https://ctas.login.ugnet.gay/RST2.srf</cfg:MSNWLIDSTS_WCF><cfg:URL_DeviceTOU>https://ctas.login.ugnet.gay/didtou.srf</cfg:URL_DeviceTOU><cfg:DeviceChangeService>https://ctas.login.ugnet.gay/ppsecure/devicechangecredential.srf</cfg:DeviceChangeService><cfg:DeviceAddService>https://ctas.login.ugnet.gay/ppsecure/deviceaddcredential.srf</cfg:DeviceAddService><cfg:DeviceRemoveService>https://ctas.login.ugnet.gay/ppsecure/deviceremovecredential.srf</cfg:DeviceRemoveService><cfg:DeviceAssociateService>https://ctas.login.ugnet.gay/ppsecure/DeviceAssociate.srf</cfg:DeviceAssociateService><cfg:DeviceDisassociateService>https://ctas.login.ugnet.gay/ppsecure/DeviceDisassociate.srf</cfg:DeviceDisassociateService><cfg:DeviceQueryService>https://ctas.login.ugnet.gay/ppsecure/DeviceQuery.srf</cfg:DeviceQueryService><cfg:DeviceUpdateService>https://ctas.login.ugnet.gay/ppsecure/DeviceUpdate.srf</cfg:DeviceUpdateService><cfg:DeviceEnumerateService>https://ctas.login.ugnet.gay/ppsecure/EnumerateDevices.srf</cfg:DeviceEnumerateService><cfg:ResolveUserService>https://ctas.login.ugnet.gay/ppsecure/ResolveUser.srf</cfg:ResolveUserService><cfg:AllowGetProperty>EID</cfg:AllowGetProperty><cfg:RealmInfoService>https://ctas.login.ugnet.gay/getrealminfo.srf</cfg:RealmInfoService><cfg:RealmInfoService6_0>https://ctas.login.ugnet.gay/getuserrealm.srf</cfg:RealmInfoService6_0><cfg:URL_Retention>https://ctas.login.ugnet.gay/retention.srf</cfg:URL_Retention><cfg:URL_Registration>https://signup.ugnet.gay/signup.aspx</cfg:URL_Registration><cfg:URL_Privacy>http://go.microsoft.com/fwlink/p/?LinkId=253457</cfg:URL_Privacy><cfg:GetUserKeyDataService>https://ctas.login.ugnet.gay/ppsecure/GetUserKeyData.srf</cfg:GetUserKeyDataService><cfg:OOBESignIn>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80500</cfg:OOBESignIn><cfg:OOBESignUp>https://account.ugnet.gay/inlinesignup.aspx?iww=1&id=80500</cfg:OOBESignUp><cfg:OOBEIfExists>https://ctas.login.ugnet.gay/IfExists.srf?uiflavor=4&id=80500</cfg:OOBEIfExists><cfg:CPSignIn>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80501</cfg:CPSignIn><cfg:CPSignUp>https://account.ugnet.gay/inlinesignup.aspx?iww=1&id=80501</cfg:CPSignUp><cfg:CPIfExists>https://ctas.login.ugnet.gay/IfExists.srf?uiflavor=4&id=80501</cfg:CPIfExists><cfg:CPChangePwd>https://account.ugnet.gay/Wizard/Password/Change?id=80501</cfg:CPChangePwd><cfg:CPAddUserSignIn>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80502</cfg:CPAddUserSignIn><cfg:CPAddUserSignUp>https://account.ugnet.gay/InlineSignup.aspx?iww=1&id=80502</cfg:CPAddUserSignUp><cfg:CPAddUserIfExists>https://ctas.login.ugnet.gay/IfExists.srf?uiflavor=4&id=80502</cfg:CPAddUserIfExists><!-- Auth-up URLs and all 806XX site IDs are used for versions of connect flows that can handle receiving a DA token during connect. --><cfg:OOBESignInAuthUp>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80600</cfg:OOBESignInAuthUp><cfg:OOBESignUpAuthUp>https://account.ugnet.gay/inlinesignup.aspx?iww=1&id=80600</cfg:OOBESignUpAuthUp><cfg:OOBEIfExistsAuthUp>https://ctas.login.ugnet.gay/IfExists.srf?uiflavor=4&id=80600</cfg:OOBEIfExistsAuthUp><cfg:OOBEConnect>https://ctas.login.ugnet.gay/ppsecure/InlineConnect.srf?id=80600</cfg:OOBEConnect><cfg:CPSignInAuthUp>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80601</cfg:CPSignInAuthUp><cfg:CPSignUpAuthUp>https://account.ugnet.gay/inlinesignup.aspx?iww=1&id=80601</cfg:CPSignUpAuthUp><cfg:CPIfExistsAuthUp>https://ctas.login.ugnet.gay/IfExists.srf?uiflavor=4&id=80601</cfg:CPIfExistsAuthUp><cfg:CPChangePwdAuthUp>https://account.ugnet.gay/Wizard/Password/Change?id=80601</cfg:CPChangePwdAuthUp><cfg:CPChangePwdOnline>https://ctas.login.ugnet.gay/ppsecure/InlinePOPAuth.srf?id=80601&fid=cp</cfg:CPChangePwdOnline><cfg:CPConnect>https://ctas.login.ugnet.gay/ppsecure/InlineConnect.srf?id=80601</cfg:CPConnect><cfg:OOBEUpgradeSignIn>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80603</cfg:OOBEUpgradeSignIn><cfg:OOBEUpgradeSignUp>https://account.ugnet.gay/inlinesignup.aspx?iww=1&id=80603</cfg:OOBEUpgradeSignUp><cfg:OOBEUpgradeConnect>https://ctas.login.ugnet.gay/ppsecure/InlineConnect.srf?id=80603</cfg:OOBEUpgradeConnecLine truncated
|
||||
</cfg:URL_PassportNetwork><cfg:URL_AccountServices>https://account.ugnet.xyz
|
||||
</cfg:URL_AccountServices><cfg:URL_PaneHelpFrame>http://ctas.login.ugnet.xyz/hp.srf?format=b1
|
||||
</cfg:URL_PaneHelpFrame><!-- !!! P L E A S E R E A D !!!! --><!-- IDCRL 4.5 and below cannot load more than 32 items from <cfg:ServiceURIs> node. --><!-- Add any new items in <cfg:ServiceURIs1> node below. --><!-- NOTE: IDCRL 4.5 and below will NOT be able to read items from the new node. --></cfg:ServiceURIs><cfg:ServiceURIs1><cfg:PassportMetaConfig>http://ctas.login.ugnet.xyz/ppcrlcheck.srf</cfg:PassportMetaConfig><cfg:DeviceIdTrustedDomain>*.ugnet.xyz</cfg:DeviceIdTrustedDomain><cfg:DIDManagementDomain>ctas.login.ugnet.xyz,account.ugnet.xyz</cfg:DIDManagementDomain><cfg:PREFBINCookieDomain>c.ugnet.xyz,c.msn.com</cfg:PREFBINCookieDomain><cfg:WLIDSTS_WCF>https://ctas.login.ugnet.xyz/RST2.srf</cfg:WLIDSTS_WCF><cfg:MSNWLIDSTS_WCF>https://ctas.login.ugnet.xyz/RST2.srf</cfg:MSNWLIDSTS_WCF><cfg:URL_DeviceTOU>https://ctas.login.ugnet.xyz/didtou.srf</cfg:URL_DeviceTOU><cfg:DeviceChangeService>https://ctas.login.ugnet.xyz/ppsecure/devicechangecredential.srf</cfg:DeviceChangeService><cfg:DeviceAddService>https://ctas.login.ugnet.xyz/ppsecure/deviceaddcredential.srf</cfg:DeviceAddService><cfg:DeviceRemoveService>https://ctas.login.ugnet.xyz/ppsecure/deviceremovecredential.srf</cfg:DeviceRemoveService><cfg:DeviceAssociateService>https://ctas.login.ugnet.xyz/ppsecure/DeviceAssociate.srf</cfg:DeviceAssociateService><cfg:DeviceDisassociateService>https://ctas.login.ugnet.xyz/ppsecure/DeviceDisassociate.srf</cfg:DeviceDisassociateService><cfg:DeviceQueryService>https://ctas.login.ugnet.xyz/ppsecure/DeviceQuery.srf</cfg:DeviceQueryService><cfg:DeviceUpdateService>https://ctas.login.ugnet.xyz/ppsecure/DeviceUpdate.srf</cfg:DeviceUpdateService><cfg:DeviceEnumerateService>https://ctas.login.ugnet.xyz/ppsecure/EnumerateDevices.srf</cfg:DeviceEnumerateService><cfg:ResolveUserService>https://ctas.login.ugnet.xyz/ppsecure/ResolveUser.srf</cfg:ResolveUserService><cfg:AllowGetProperty>EID</cfg:AllowGetProperty><cfg:RealmInfoService>https://ctas.login.ugnet.xyz/getrealminfo.srf</cfg:RealmInfoService><cfg:RealmInfoService6_0>https://ctas.login.ugnet.xyz/getuserrealm.srf</cfg:RealmInfoService6_0><cfg:URL_Retention>https://ctas.login.ugnet.xyz/retention.srf</cfg:URL_Retention><cfg:URL_Registration>https://signup.ugnet.xyz/signup.aspx</cfg:URL_Registration><cfg:URL_Privacy>http://go.microsoft.com/fwlink/p/?LinkId=253457</cfg:URL_Privacy><cfg:GetUserKeyDataService>https://ctas.login.ugnet.xyz/ppsecure/GetUserKeyData.srf</cfg:GetUserKeyDataService><cfg:OOBESignIn>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80500</cfg:OOBESignIn><cfg:OOBESignUp>https://account.ugnet.xyz/inlinesignup.aspx?iww=1&id=80500</cfg:OOBESignUp><cfg:OOBEIfExists>https://ctas.login.ugnet.xyz/IfExists.srf?uiflavor=4&id=80500</cfg:OOBEIfExists><cfg:CPSignIn>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80501</cfg:CPSignIn><cfg:CPSignUp>https://account.ugnet.xyz/inlinesignup.aspx?iww=1&id=80501</cfg:CPSignUp><cfg:CPIfExists>https://ctas.login.ugnet.xyz/IfExists.srf?uiflavor=4&id=80501</cfg:CPIfExists><cfg:CPChangePwd>https://account.ugnet.xyz/Wizard/Password/Change?id=80501</cfg:CPChangePwd><cfg:CPAddUserSignIn>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80502</cfg:CPAddUserSignIn><cfg:CPAddUserSignUp>https://account.ugnet.xyz/InlineSignup.aspx?iww=1&id=80502</cfg:CPAddUserSignUp><cfg:CPAddUserIfExists>https://ctas.login.ugnet.xyz/IfExists.srf?uiflavor=4&id=80502</cfg:CPAddUserIfExists><!-- Auth-up URLs and all 806XX site IDs are used for versions of connect flows that can handle receiving a DA token during connect. --><cfg:OOBESignInAuthUp>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80600</cfg:OOBESignInAuthUp><cfg:OOBESignUpAuthUp>https://account.ugnet.xyz/inlinesignup.aspx?iww=1&id=80600</cfg:OOBESignUpAuthUp><cfg:OOBEIfExistsAuthUp>https://ctas.login.ugnet.xyz/IfExists.srf?uiflavor=4&id=80600</cfg:OOBEIfExistsAuthUp><cfg:OOBEConnect>https://ctas.login.ugnet.xyz/ppsecure/InlineConnect.srf?id=80600</cfg:OOBEConnect><cfg:CPSignInAuthUp>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80601</cfg:CPSignInAuthUp><cfg:CPSignUpAuthUp>https://account.ugnet.xyz/inlinesignup.aspx?iww=1&id=80601</cfg:CPSignUpAuthUp><cfg:CPIfExistsAuthUp>https://ctas.login.ugnet.xyz/IfExists.srf?uiflavor=4&id=80601</cfg:CPIfExistsAuthUp><cfg:CPChangePwdAuthUp>https://account.ugnet.xyz/Wizard/Password/Change?id=80601</cfg:CPChangePwdAuthUp><cfg:CPChangePwdOnline>https://ctas.login.ugnet.xyz/ppsecure/InlinePOPAuth.srf?id=80601&fid=cp</cfg:CPChangePwdOnline><cfg:CPConnect>https://ctas.login.ugnet.xyz/ppsecure/InlineConnect.srf?id=80601</cfg:CPConnect><cfg:OOBEUpgradeSignIn>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80603</cfg:OOBEUpgradeSignIn><cfg:OOBEUpgradeSignUp>https://account.ugnet.xyz/inlinesignup.aspx?iww=1&id=80603</cfg:OOBEUpgradeSignUp><cfg:OOBEUpgradeConnect>https://ctas.login.ugnet.xyz/ppsecure/InlineConnect.srf?id=80603</cfg:OOBEUpgradeConnecLine truncated
|
||||
@@ -3,5 +3,5 @@
|
||||
When a certificate is rev'd, a line like the following should be
|
||||
added to the cfg:Settings section:
|
||||
<cfg:Certificate expired="true">SLCA_BACKUP.CER</cfg:Certificate>
|
||||
--><cfg:Settings><cfg:DeviceDNSSuffix>.devicedns.ugnet.gay</cfg:DeviceDNSSuffix><cfg:ResolveTimeout>120000</cfg:ResolveTimeout><cfg:ConnectTimeout>60000</cfg:ConnectTimeout><cfg:SendTimeout>30000</cfg:SendTimeout><cfg:ReceiveTimeout>30000</cfg:ReceiveTimeout><cfg:MinMinutesBetweenMetaConfigCheck>1440</cfg:MinMinutesBetweenMetaConfigCheck><cfg:ConfigServerSslURI>https://go.microsoft.com/fwlink/?LinkId=859524</cfg:ConfigServerSslURI><cfg:DIDCOMMetaData><cfg:DIDWithAuth>1</cfg:DIDWithAuth><cfg:AssocPDIDToLDID>1</cfg:AssocPDIDToLDID><cfg:Protocol><cfg:CLSID>{1C109E4C-2F30-4EA3-A57A-A290877A2303}</cfg:CLSID><cfg:DATA><![CDATA[<Input version="1" match="20"><Excluded><Controller>Win32_USBControllerDevice</Controller><Controller>Win32_1394ControllerDevice</Controller><Controller>Win32_PCMCIAControllerDevice</Controller><Controller>Win32_ConnectionShare</Controller></Excluded><Class name="Win32_PhysicalMedia" pos="1" hash="32" match="10"><Data>SerialNumber</Data></Class><Class name="Win32_NetworkAdapter" pos="2" hash="32" match="10"><Data>MACAddress</Data></Class><Class name="Win32_BIOS" pos="3" hash="32" match="10"><Data>Manufacturer</Data><Data>SerialNumber</Data></Class></Input>]]></cfg:DATA><cfg:PREFIX>01</cfg:PREFIX></cfg:Protocol><cfg:Protocol><cfg:CLSID>{B9F1D9B8-1DA6-4F17-962F-69EC82EA2704}</cfg:CLSID><cfg:PREFIX>03</cfg:PREFIX><cfg:LOGICAL>1</cfg:LOGICAL><cfg:SYSTEM>1</cfg:SYSTEM></cfg:Protocol><cfg:Protocol><cfg:CLSID>{B9F1D9B8-1DA6-4F17-962F-69EC82EA2704}</cfg:CLSID><cfg:PREFIX>02</cfg:PREFIX><cfg:LOGICAL>1</cfg:LOGICAL></cfg:Protocol><cfg:CONSENTVERSION>1</cfg:CONSENTVERSION></cfg:DIDCOMMetaData><cfg:Certificate>MIIDGzCCAtugAwIBAgIJAL6pALeLZHDvMAkGByqGSM44BAMwIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MB4XDTE2MDUwOTIwNDA1NVoXDTIxMDUwODIwNDA1NVowIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MIIBtzCCASwGByqGSM44BAEwggEfAoGBAKmnM6FKnJ1osHWBHd8jHFFMDNwygIcof9EfHW6xJbU2uIzVV5WRu251RbRbmOqozesK44vkeBx9Ntl7PSu0W5RJFCEw9o4RLG0J40MWDNDQ+7iqvIsM6lsgZrDjNoWJ2t/Yrnnp0r3F9YNtj7J4vgLCYNOlkr2kcfGiji+SXotXAhUAqGI2zlbARtjz+simu2PihUPkV1MCgYEAnrIIXPvjKvWiXd3uve7eDS8qRHW7yoAseVLgeEIbS4VSj/9iQqunx1weQGlds75CLZgpcrY4Z5wbkxSjnK1EV30qce4+VzgXYGLZIAvl78wbAMFrG0josXccAbmqVM4LX2Z5yu1TEpPZLvgiaV4gJk4jsYhInqPm3Bw2qQ+gZokDgYQAAoGAFozcPQdM9MmszvEWMXuFrfEA8kVMnKIyA60paSi7CIecSAlsRLyw3D9J9pRW6HHdRZgOrKvnNcY63gKB56SKyj6r3nGqtkwEpu9yw1K+k2aSyJcKPHYVNw1Um5McKJgQJ49ShJFPaWXfDZPOCpgMpdzibnWjMcTak5rz4FHSUtOjgZgwgZUwHQYDVR0OBBYEFKNT6lUDzQppxFhwtv/jkSCRx596MFMGA1UdIwRMMEqAFKNT6lUDzQppxFhwtv/jkSCRx596oSekJTAjMSEwHwYDVQQDExhUb2tlbiBTaWduaW5nIFB1YmxpYyBLZXmCCQC+qQC3i2Rw7zASBgNVHRMBAf8ECDAGAQH/AgEAMAsGA1UdDwQEAwIBxjAJBgcqhkjOOAQDAy8AMCwCFGjnp838qB/wTUdvoRt4G3aW0fv0AhRe8cZDdOveTDCbWane65nlVv0Udw==</cfg:Certificate><cfg:Certificate>MIIDHDCCAtugAwIBAgIJAPVhDwwaTUJrMAkGByqGSM44BAMwIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MB4XDTIxMDMxODE4NDIzN1oXDTQxMDMxMzE4NDIzN1owIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MIIBtzCCASsGByqGSM44BAEwggEeAoGBANwZEes+CsJ6G4/Pe5XmGS9e5qki7KPMh9+IU5JE+z0H0Q4v51cKYCcm0OHtStB4oTF3RqTcYT6wYp/k6CcrGUVKo60tWY3C+ohOABpfoAnstLX/bZmWYQ87KzkRpB21WGCAJsoNQ5V0oQbwnEeeWO5sfZ6T3lfP7YgyeY4NatWhAhUAhFP2mQrVRzurTrsPRs5S1aNUWWUCgYBw3lXgm9xw1G9BSs8mP9sv8IefC87tBupniaUY/lz+AlN0qs6tXPHSesobCFxLDNT0Vhw4fSTJBPlq99tvV6ipEQkBtR3ColMVMq0G7ECW8ojnPWUcwdYUCyky7kyV7EuwnUYoAN4nZWBhN9BOj/nO0Ds5HInryR0RnTEvT0uojwOBhQACgYEA2SDhhPBDnKxvmH9RHvTUW0pvaTyAbFXxQ1WP+rcN608akqKmyMiskxCUySoBGAEbE/szcBqTu4VpvskyOBHY6Li6ewYP5cpVe7mARh27+cuGOzz3JZAVwi79D6u9/6OxnLyfbdRpYFq0qlmtUSbqtp895cs0cLn8TIppt+h6iDKjgZgwgZUwHQYDVR0OBBYEFNggH9qn8tEAK/Xtp75ejkmJcgjwMFMGA1UdIwRMMEqAFNggH9qn8tEAK/Xtp75ejkmJcgjwoSekJTAjMSEwHwYDVQQDExhUb2tlbiBTaWduaW5nIFB1YmxpYyBLZXmCCQD1YQ8MGk1CazASBgNVHRMBAf8ECDAGAQH/AgEAMAsGA1UdDwQEAwIBxjAJBgcqhkjOOAQDAzAAMC0CFHDGG3jer0Hzy/Qr08Dx/XpQGPG/AhUAg5mwhsY1EvBXNSor8eaySNirEH0=</cfg:Certificate><cfg:AddressResolutionTTL>900</cfg:AddressResolutionTTL><cfg:ClientTimeOutForRpcCallsNoNetwork>5</cfg:ClientTimeOutForRpcCallsNoNetwork><cfg:ClientTimeoutForRpcCallsWithNetwork>600</cfg:ClientTimeoutForRpcCallsWithNetwork><cfg:LivesspMaxTokenSize>60000</cfg:LivesspMaxTokenSize><cfg:AccountDomain>account.ugnet.gay</cfg:AccountDomain><cfg:InterruptResolutionDomain>account.ugnet.gay</cfg:InterruptResolutionDomain><cfg:PasswordReset>account.ugnet.gay/password/reset</cfg:PasswordReset><cfg:AccountPolicy>sapi</cfg:AccountPolicy><cfg:ConnectAccountPolicy>mbi_ssl</cfg:ConnectAccountPolicy><cfg:StrongAuthPolicy>mbi_ssl_sa</cfg:StrongAuthPolicy><cfg:MinPasswordLength>8</cfg:MinPasswordLength><cfg:MinPasswordCharacterGroups>2</cfg:MinPasswordCharacterGroups><cfg:CookieP3PHeader><![CDATA[CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOCi CNT"]]></cfg:CookieP3PHeader><cfg:ThrottleFlags>1</cfg:ThrottleFlags><cfg:ThrottleMaxRequests>200</cfg:ThrottleMaxRequests><cfg:ThrottleTotalIntervalSeconds>7200</cfg:ThrottleTotalIntervalSeconds><cfg:ThrottledApplications><cfg:ThrottledApp><cfg:ThrottledAppID>dc21Line truncated
|
||||
endpoints above. Client-side policy will determine which endpoint to use in a given situation. --><cfg:EnterpriseWLIDSTS_WCF>https://ctas.login.ugnet.gay/MSARST2.srf</cfg:EnterpriseWLIDSTS_WCF><cfg:EnterpriseDeviceChangeService>https://ctas.login.ugnet.gay/ppsecure/devicechangecredential.srf</cfg:EnterpriseDeviceChangeService><cfg:EnterpriseDeviceAddService>https://ctas.login.ugnet.gay/ppsecure/deviceaddmsacredential.srf</cfg:EnterpriseDeviceAddService><cfg:EnterpriseDeviceRemoveService>https://ctas.login.ugnet.gay/ppsecure/deviceremovecredential.srf</cfg:EnterpriseDeviceRemoveService><cfg:EnterpriseDeviceAssociateService>https://ctas.login.ugnet.gay/ppsecure/DeviceAssociate.srf</cfg:EnterpriseDeviceAssociateService><cfg:EnterpriseDeviceDisassociateService>https://ctas.login.ugnet.gay/ppsecure/DeviceDisassociate.srf</cfg:EnterpriseDeviceDisassociateService><cfg:EnterpriseDeviceQueryService>https://ctas.login.ugnet.gay/ppsecure/DeviceQuery.srf</cfg:EnterpriseDeviceQueryService><cfg:EnterpriseDeviceUpdateService>https://ctas.login.ugnet.gay/ppsecure/DeviceUpdate.srf</cfg:EnterpriseDeviceUpdateService><cfg:EnterpriseDeviceEnumerateService>https://ctas.login.ugnet.gay/ppsecure/EnumerateDevices.srf</cfg:EnterpriseDeviceEnumerateService><cfg:EnterpriseResolveUserService>https://ctas.login.ugnet.gay/ppsecure/ResolveUser.srf</cfg:EnterpriseResolveUserService><cfg:AllowGetProperty>EID</cfg:AllowGetProperty><cfg:RealmInfoService>https://ctas.login.ugnet.gay/getrealminfo.srf</cfg:RealmInfoService><cfg:RealmInfoService6_0>https://ctas.login.ugnet.gay/getuserrealm.srf</cfg:RealmInfoService6_0><cfg:URL_Retention>https://ctas.login.ugnet.gay/retention.srf</cfg:URL_Retention><cfg:URL_Registration>https://signup.ugnet.gay/signup.aspx</cfg:URL_Registration><cfg:URL_Privacy>http://go.microsoft.com/fwlink/p/?LinkId=253457</cfg:URL_Privacy><cfg:GetUserKeyDataService>https://ctas.login.ugnet.gay/ppsecure/GetUserKeyData.srf</cfg:GetUserKeyDataService><cfg:CPAddUserSignIn>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80502</cfg:CPAddUserSignIn><cfg:CPAddUserSignUp>https://account.ugnet.gay/InlineSignup.aspx?iww=1&id=80502</cfg:CPAddUserSignUp><cfg:CPAddUserIfExists>https://ctas.login.ugnet.gay/IfExists.srf?uiflavor=4&id=80502</cfg:CPAddUserIfExists><!-- Auth-up URLs and all 806XX site IDs are used for versions of connect flows that can handle receiving a DA token during connect. --><cfg:OOBESignInAuthUp>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80600</cfg:OOBESignInAuthUp><cfg:OOBESignUpAuthUp>https://account.ugnet.gay/inlinesignup.aspx?iww=1&id=80600</cfg:OOBESignUpAuthUp><cfg:OOBEIfExistsAuthUp>https://ctas.login.ugnet.gay/IfExists.srf?uiflavor=4&id=80600</cfg:OOBEIfExistsAuthUp><cfg:OOBEConnect>https://ctas.login.ugnet.gay/ppsecure/InlineConnect.srf?id=80600</cfg:OOBEConnect><cfg:CPSignInAuthUp>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80601</cfg:CPSignInAuthUp><cfg:CPSignUpAuthUp>https://account.ugnet.gay/inlinesignup.aspx?iww=1&id=80601</cfg:CPSignUpAuthUp><cfg:CPIfExistsAuthUp>https://ctas.login.ugnet.gay/IfExists.srf?uiflavor=4&id=80601</cfg:CPIfExistsAuthUp><cfg:CPChangePwdAuthUp>https://account.ugnet.gay/Wizard/Password/Change?id=80601</cfg:CPChangePwdAuthUp><cfg:CPChangePwdOnline>https://ctas.login.ugnet.gay/ppsecure/InlinePOPAuth.srf?id=80601&fid=cp</cfg:CPChangePwdOnline><cfg:CPConnect>https://ctas.login.ugnet.gay/ppsecure/InlineConnect.srf?id=80601</cfg:CPConnect><cfg:OOBEUpgradeSignIn>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80603</cfg:OOBEUpgradeSignIn><cfg:OOBEUpgradeSignUp>https://account.ugnet.gay/inlinesignup.aspx?iww=1&id=80603</cfg:OOBEUpgradeSignUp><cfg:OOBEUpgradeConnect>https://ctas.login.ugnet.gay/ppsecure/InlineConnect.srf?id=80603</cfg:OOBEUpgradeConnect><cfg:CompleteAccountSignIn>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80604</cfg:CompleteAccountSignIn><cfg:CompleteAccountSignUp>https://account.ugnet.gay/inlinesignup.aspx?iww=1&id=80604</cfg:CompleteAccountSignUp><cfg:CompleteAccountConnect>https://ctas.login.ugnet.gay/ppsecure/InlineConnect.srf?id=80604</cfg:CompleteAccountConnect><cfg:CXHSignInUpsell>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80604</cfg:CXHSignInUpsell><cfg:NthUserSignIn>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80605</cfg:NthUserSignIn><cfg:NthUserSignUp>https://account.ugnet.gay/inlinesignup.aspx?iww=1&id=80605</cfg:NthUserSignUp><cfg:NthUserConnect>https://ctas.login.ugnet.gay/ppsecure/InlinePOPAuth.srf?id=80605</cfg:NthUserConnect><cfg:CXHSignIn>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80606</cfg:CXHSignIn><cfg:CXHTransientSignIn>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80607</cfg:CXHTransientSignIn><cfg:CXHReAuth>https://ctas.login.ugnet.gay/ppsecure/InlineLogin.srf?id=80608</cfg:CXHReAuth><cfg:CXHNGCUpsell>https://account.ugnet.gay/msangcwam</cfg:CXHNGCUpsell><cfg:URL_AccountSettings>https://account.miLine truncated
|
||||
--><cfg:Settings><cfg:DeviceDNSSuffix>.devicedns.ugnet.xyz</cfg:DeviceDNSSuffix><cfg:ResolveTimeout>120000</cfg:ResolveTimeout><cfg:ConnectTimeout>60000</cfg:ConnectTimeout><cfg:SendTimeout>30000</cfg:SendTimeout><cfg:ReceiveTimeout>30000</cfg:ReceiveTimeout><cfg:MinMinutesBetweenMetaConfigCheck>1440</cfg:MinMinutesBetweenMetaConfigCheck><cfg:ConfigServerSslURI>https://go.microsoft.com/fwlink/?LinkId=859524</cfg:ConfigServerSslURI><cfg:DIDCOMMetaData><cfg:DIDWithAuth>1</cfg:DIDWithAuth><cfg:AssocPDIDToLDID>1</cfg:AssocPDIDToLDID><cfg:Protocol><cfg:CLSID>{1C109E4C-2F30-4EA3-A57A-A290877A2303}</cfg:CLSID><cfg:DATA><![CDATA[<Input version="1" match="20"><Excluded><Controller>Win32_USBControllerDevice</Controller><Controller>Win32_1394ControllerDevice</Controller><Controller>Win32_PCMCIAControllerDevice</Controller><Controller>Win32_ConnectionShare</Controller></Excluded><Class name="Win32_PhysicalMedia" pos="1" hash="32" match="10"><Data>SerialNumber</Data></Class><Class name="Win32_NetworkAdapter" pos="2" hash="32" match="10"><Data>MACAddress</Data></Class><Class name="Win32_BIOS" pos="3" hash="32" match="10"><Data>Manufacturer</Data><Data>SerialNumber</Data></Class></Input>]]></cfg:DATA><cfg:PREFIX>01</cfg:PREFIX></cfg:Protocol><cfg:Protocol><cfg:CLSID>{B9F1D9B8-1DA6-4F17-962F-69EC82EA2704}</cfg:CLSID><cfg:PREFIX>03</cfg:PREFIX><cfg:LOGICAL>1</cfg:LOGICAL><cfg:SYSTEM>1</cfg:SYSTEM></cfg:Protocol><cfg:Protocol><cfg:CLSID>{B9F1D9B8-1DA6-4F17-962F-69EC82EA2704}</cfg:CLSID><cfg:PREFIX>02</cfg:PREFIX><cfg:LOGICAL>1</cfg:LOGICAL></cfg:Protocol><cfg:CONSENTVERSION>1</cfg:CONSENTVERSION></cfg:DIDCOMMetaData><cfg:Certificate>MIIDGzCCAtugAwIBAgIJAL6pALeLZHDvMAkGByqGSM44BAMwIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MB4XDTE2MDUwOTIwNDA1NVoXDTIxMDUwODIwNDA1NVowIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MIIBtzCCASwGByqGSM44BAEwggEfAoGBAKmnM6FKnJ1osHWBHd8jHFFMDNwygIcof9EfHW6xJbU2uIzVV5WRu251RbRbmOqozesK44vkeBx9Ntl7PSu0W5RJFCEw9o4RLG0J40MWDNDQ+7iqvIsM6lsgZrDjNoWJ2t/Yrnnp0r3F9YNtj7J4vgLCYNOlkr2kcfGiji+SXotXAhUAqGI2zlbARtjz+simu2PihUPkV1MCgYEAnrIIXPvjKvWiXd3uve7eDS8qRHW7yoAseVLgeEIbS4VSj/9iQqunx1weQGlds75CLZgpcrY4Z5wbkxSjnK1EV30qce4+VzgXYGLZIAvl78wbAMFrG0josXccAbmqVM4LX2Z5yu1TEpPZLvgiaV4gJk4jsYhInqPm3Bw2qQ+gZokDgYQAAoGAFozcPQdM9MmszvEWMXuFrfEA8kVMnKIyA60paSi7CIecSAlsRLyw3D9J9pRW6HHdRZgOrKvnNcY63gKB56SKyj6r3nGqtkwEpu9yw1K+k2aSyJcKPHYVNw1Um5McKJgQJ49ShJFPaWXfDZPOCpgMpdzibnWjMcTak5rz4FHSUtOjgZgwgZUwHQYDVR0OBBYEFKNT6lUDzQppxFhwtv/jkSCRx596MFMGA1UdIwRMMEqAFKNT6lUDzQppxFhwtv/jkSCRx596oSekJTAjMSEwHwYDVQQDExhUb2tlbiBTaWduaW5nIFB1YmxpYyBLZXmCCQC+qQC3i2Rw7zASBgNVHRMBAf8ECDAGAQH/AgEAMAsGA1UdDwQEAwIBxjAJBgcqhkjOOAQDAy8AMCwCFGjnp838qB/wTUdvoRt4G3aW0fv0AhRe8cZDdOveTDCbWane65nlVv0Udw==</cfg:Certificate><cfg:Certificate>MIIDHDCCAtugAwIBAgIJAPVhDwwaTUJrMAkGByqGSM44BAMwIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MB4XDTIxMDMxODE4NDIzN1oXDTQxMDMxMzE4NDIzN1owIzEhMB8GA1UEAxMYVG9rZW4gU2lnbmluZyBQdWJsaWMgS2V5MIIBtzCCASsGByqGSM44BAEwggEeAoGBANwZEes+CsJ6G4/Pe5XmGS9e5qki7KPMh9+IU5JE+z0H0Q4v51cKYCcm0OHtStB4oTF3RqTcYT6wYp/k6CcrGUVKo60tWY3C+ohOABpfoAnstLX/bZmWYQ87KzkRpB21WGCAJsoNQ5V0oQbwnEeeWO5sfZ6T3lfP7YgyeY4NatWhAhUAhFP2mQrVRzurTrsPRs5S1aNUWWUCgYBw3lXgm9xw1G9BSs8mP9sv8IefC87tBupniaUY/lz+AlN0qs6tXPHSesobCFxLDNT0Vhw4fSTJBPlq99tvV6ipEQkBtR3ColMVMq0G7ECW8ojnPWUcwdYUCyky7kyV7EuwnUYoAN4nZWBhN9BOj/nO0Ds5HInryR0RnTEvT0uojwOBhQACgYEA2SDhhPBDnKxvmH9RHvTUW0pvaTyAbFXxQ1WP+rcN608akqKmyMiskxCUySoBGAEbE/szcBqTu4VpvskyOBHY6Li6ewYP5cpVe7mARh27+cuGOzz3JZAVwi79D6u9/6OxnLyfbdRpYFq0qlmtUSbqtp895cs0cLn8TIppt+h6iDKjgZgwgZUwHQYDVR0OBBYEFNggH9qn8tEAK/Xtp75ejkmJcgjwMFMGA1UdIwRMMEqAFNggH9qn8tEAK/Xtp75ejkmJcgjwoSekJTAjMSEwHwYDVQQDExhUb2tlbiBTaWduaW5nIFB1YmxpYyBLZXmCCQD1YQ8MGk1CazASBgNVHRMBAf8ECDAGAQH/AgEAMAsGA1UdDwQEAwIBxjAJBgcqhkjOOAQDAzAAMC0CFHDGG3jer0Hzy/Qr08Dx/XpQGPG/AhUAg5mwhsY1EvBXNSor8eaySNirEH0=</cfg:Certificate><cfg:AddressResolutionTTL>900</cfg:AddressResolutionTTL><cfg:ClientTimeOutForRpcCallsNoNetwork>5</cfg:ClientTimeOutForRpcCallsNoNetwork><cfg:ClientTimeoutForRpcCallsWithNetwork>600</cfg:ClientTimeoutForRpcCallsWithNetwork><cfg:LivesspMaxTokenSize>60000</cfg:LivesspMaxTokenSize><cfg:AccountDomain>account.ugnet.xyz</cfg:AccountDomain><cfg:InterruptResolutionDomain>account.ugnet.xyz</cfg:InterruptResolutionDomain><cfg:PasswordReset>account.ugnet.xyz/password/reset</cfg:PasswordReset><cfg:AccountPolicy>sapi</cfg:AccountPolicy><cfg:ConnectAccountPolicy>mbi_ssl</cfg:ConnectAccountPolicy><cfg:StrongAuthPolicy>mbi_ssl_sa</cfg:StrongAuthPolicy><cfg:MinPasswordLength>8</cfg:MinPasswordLength><cfg:MinPasswordCharacterGroups>2</cfg:MinPasswordCharacterGroups><cfg:CookieP3PHeader><![CDATA[CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOCi CNT"]]></cfg:CookieP3PHeader><cfg:ThrottleFlags>1</cfg:ThrottleFlags><cfg:ThrottleMaxRequests>200</cfg:ThrottleMaxRequests><cfg:ThrottleTotalIntervalSeconds>7200</cfg:ThrottleTotalIntervalSeconds><cfg:ThrottledApplications><cfg:ThrottledApp><cfg:ThrottledAppID>dc21Line truncated
|
||||
endpoints above. Client-side policy will determine which endpoint to use in a given situation. --><cfg:EnterpriseWLIDSTS_WCF>https://ctas.login.ugnet.xyz/MSARST2.srf</cfg:EnterpriseWLIDSTS_WCF><cfg:EnterpriseDeviceChangeService>https://ctas.login.ugnet.xyz/ppsecure/devicechangecredential.srf</cfg:EnterpriseDeviceChangeService><cfg:EnterpriseDeviceAddService>https://ctas.login.ugnet.xyz/ppsecure/deviceaddmsacredential.srf</cfg:EnterpriseDeviceAddService><cfg:EnterpriseDeviceRemoveService>https://ctas.login.ugnet.xyz/ppsecure/deviceremovecredential.srf</cfg:EnterpriseDeviceRemoveService><cfg:EnterpriseDeviceAssociateService>https://ctas.login.ugnet.xyz/ppsecure/DeviceAssociate.srf</cfg:EnterpriseDeviceAssociateService><cfg:EnterpriseDeviceDisassociateService>https://ctas.login.ugnet.xyz/ppsecure/DeviceDisassociate.srf</cfg:EnterpriseDeviceDisassociateService><cfg:EnterpriseDeviceQueryService>https://ctas.login.ugnet.xyz/ppsecure/DeviceQuery.srf</cfg:EnterpriseDeviceQueryService><cfg:EnterpriseDeviceUpdateService>https://ctas.login.ugnet.xyz/ppsecure/DeviceUpdate.srf</cfg:EnterpriseDeviceUpdateService><cfg:EnterpriseDeviceEnumerateService>https://ctas.login.ugnet.xyz/ppsecure/EnumerateDevices.srf</cfg:EnterpriseDeviceEnumerateService><cfg:EnterpriseResolveUserService>https://ctas.login.ugnet.xyz/ppsecure/ResolveUser.srf</cfg:EnterpriseResolveUserService><cfg:AllowGetProperty>EID</cfg:AllowGetProperty><cfg:RealmInfoService>https://ctas.login.ugnet.xyz/getrealminfo.srf</cfg:RealmInfoService><cfg:RealmInfoService6_0>https://ctas.login.ugnet.xyz/getuserrealm.srf</cfg:RealmInfoService6_0><cfg:URL_Retention>https://ctas.login.ugnet.xyz/retention.srf</cfg:URL_Retention><cfg:URL_Registration>https://signup.ugnet.xyz/signup.aspx</cfg:URL_Registration><cfg:URL_Privacy>http://go.microsoft.com/fwlink/p/?LinkId=253457</cfg:URL_Privacy><cfg:GetUserKeyDataService>https://ctas.login.ugnet.xyz/ppsecure/GetUserKeyData.srf</cfg:GetUserKeyDataService><cfg:CPAddUserSignIn>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80502</cfg:CPAddUserSignIn><cfg:CPAddUserSignUp>https://account.ugnet.xyz/InlineSignup.aspx?iww=1&id=80502</cfg:CPAddUserSignUp><cfg:CPAddUserIfExists>https://ctas.login.ugnet.xyz/IfExists.srf?uiflavor=4&id=80502</cfg:CPAddUserIfExists><!-- Auth-up URLs and all 806XX site IDs are used for versions of connect flows that can handle receiving a DA token during connect. --><cfg:OOBESignInAuthUp>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80600</cfg:OOBESignInAuthUp><cfg:OOBESignUpAuthUp>https://account.ugnet.xyz/inlinesignup.aspx?iww=1&id=80600</cfg:OOBESignUpAuthUp><cfg:OOBEIfExistsAuthUp>https://ctas.login.ugnet.xyz/IfExists.srf?uiflavor=4&id=80600</cfg:OOBEIfExistsAuthUp><cfg:OOBEConnect>https://ctas.login.ugnet.xyz/ppsecure/InlineConnect.srf?id=80600</cfg:OOBEConnect><cfg:CPSignInAuthUp>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80601</cfg:CPSignInAuthUp><cfg:CPSignUpAuthUp>https://account.ugnet.xyz/inlinesignup.aspx?iww=1&id=80601</cfg:CPSignUpAuthUp><cfg:CPIfExistsAuthUp>https://ctas.login.ugnet.xyz/IfExists.srf?uiflavor=4&id=80601</cfg:CPIfExistsAuthUp><cfg:CPChangePwdAuthUp>https://account.ugnet.xyz/Wizard/Password/Change?id=80601</cfg:CPChangePwdAuthUp><cfg:CPChangePwdOnline>https://ctas.login.ugnet.xyz/ppsecure/InlinePOPAuth.srf?id=80601&fid=cp</cfg:CPChangePwdOnline><cfg:CPConnect>https://ctas.login.ugnet.xyz/ppsecure/InlineConnect.srf?id=80601</cfg:CPConnect><cfg:OOBEUpgradeSignIn>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80603</cfg:OOBEUpgradeSignIn><cfg:OOBEUpgradeSignUp>https://account.ugnet.xyz/inlinesignup.aspx?iww=1&id=80603</cfg:OOBEUpgradeSignUp><cfg:OOBEUpgradeConnect>https://ctas.login.ugnet.xyz/ppsecure/InlineConnect.srf?id=80603</cfg:OOBEUpgradeConnect><cfg:CompleteAccountSignIn>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80604</cfg:CompleteAccountSignIn><cfg:CompleteAccountSignUp>https://account.ugnet.xyz/inlinesignup.aspx?iww=1&id=80604</cfg:CompleteAccountSignUp><cfg:CompleteAccountConnect>https://ctas.login.ugnet.xyz/ppsecure/InlineConnect.srf?id=80604</cfg:CompleteAccountConnect><cfg:CXHSignInUpsell>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80604</cfg:CXHSignInUpsell><cfg:NthUserSignIn>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80605</cfg:NthUserSignIn><cfg:NthUserSignUp>https://account.ugnet.xyz/inlinesignup.aspx?iww=1&id=80605</cfg:NthUserSignUp><cfg:NthUserConnect>https://ctas.login.ugnet.xyz/ppsecure/InlinePOPAuth.srf?id=80605</cfg:NthUserConnect><cfg:CXHSignIn>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80606</cfg:CXHSignIn><cfg:CXHTransientSignIn>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80607</cfg:CXHTransientSignIn><cfg:CXHReAuth>https://ctas.login.ugnet.xyz/ppsecure/InlineLogin.srf?id=80608</cfg:CXHReAuth><cfg:CXHNGCUpsell>https://account.ugnet.xyz/msangcwam</cfg:CXHNGCUpsell><cfg:URL_AccountSettings>https://account.miLine truncated
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<soap:Header>
|
||||
<Machine xmlns="{{ owsns }}" name="BAYM-OW15" ver="12.30.1623.0"/>
|
||||
</soap:Header>
|
||||
<soap:Body>
|
||||
<soap:Fault>
|
||||
<faultcode xmlns:q0="{{ owsns }}">q0:MessageTooLarge</faultcode>
|
||||
<faultstring>Exception of type 'System.Web.Services.Protocols.SoapException' was thrown.</faultstring>
|
||||
<detail/>
|
||||
</soap:Fault>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
{%- macro profile_id(profile) %}
|
||||
<Ns1>Cid</Ns1>
|
||||
<V1 xsi:type="xsd:long">{{ cid_format(profile.user.uuid, decimal = True) }}</V1>
|
||||
{%- if profile.puid is none %}
|
||||
<Ns2>Unspecified</Ns2>
|
||||
<V2 xsi:nil="true"/>
|
||||
{%- else %}
|
||||
<Ns2>Puid</Ns2>
|
||||
<V2 xsi:type="xsd:long">{{ profile.puid }}</V2>
|
||||
{%- endif %}
|
||||
<Ns3>Unspecified</Ns3>
|
||||
<V3 xsi:nil="true"/>
|
||||
{%- endmacro %}
|
||||
{%- macro profile_view(profile) %}
|
||||
<View>
|
||||
<ViewName>WLX.DC.CoreProfile</ViewName>
|
||||
<ViewVersion>1</ViewVersion>
|
||||
<Attributes>
|
||||
<A><N>PublicProfile.ResourceId</N><V xsi:type="xsd:string">{{ profile.cid }}!106</V></A>
|
||||
<A><N>PublicProfile.DisplayName</N><V xsi:type="xsd:string">{{ (profile.user.first_name or '')|e }}</V></A>
|
||||
<A><N>PublicProfile.DisplayName.LastModified</N><V xsi:type="xsd:string">{{ now }}</V></A>
|
||||
<A><N>PublicProfile.DisplayLastName</N><V xsi:type="xsd:string">{{ (profile.user.last_name or '')|e }}</V></A>
|
||||
<A><N>PublicProfile.DisplayLastName.LastModified</N><V xsi:type="xsd:string">{{ now }}</V></A>
|
||||
<A><N>ExpressionProfile.ResourceId</N><V xsi:type="xsd:string">{{ profile.cid }}!118</V></A>
|
||||
<A><N>ExpressionProfile.DisplayName</N><V xsi:type="xsd:string">{{ (profile.roaming_info.name or profile.user.status.name or '')|e }}</V></A>
|
||||
<A><N>ExpressionProfile.DisplayName.LastModified</N><V xsi:type="xsd:string">{{ date_format(profile.roaming_info.name_last_modified) }}</V></A>
|
||||
<A><N>ExpressionProfile.PersonalStatus</N><V xsi:type="xsd:string">{{ (profile.roaming_info.message or '')|e }}</V></A>
|
||||
<A><N>ExpressionProfile.PersonalStatus.LastModified</N><V xsi:type="xsd:string">{{ date_format(profile.roaming_info.message_last_modified) }}</V></A>
|
||||
<A><N>ExpressionProfile.StaticUserTilePublicURL</N><V xsi:type="xsd:string">https://{{ host }}/avatar/{{ profile.user.uuid }}/im</V></A>
|
||||
<A><N>UserTileStaticUrl</N><V xsi:type="xsd:string">https://{{ host }}/avatar/{{ profile.user.uuid }}/im</V></A>
|
||||
<A><N>PictureProfile.UserTileStatic.ResourceId</N><V xsi:type="xsd:string">{{ profile.cid }}!205</V></A>
|
||||
<A><N>LastModified</N><V xsi:type="xsd:string">{{ now }}</V></A>
|
||||
</Attributes>
|
||||
</View>
|
||||
{%- endmacro %}
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<soap:Body>
|
||||
<{{ action }}Response xmlns="http://profile.live.com/">
|
||||
<{{ action }}Result>
|
||||
<CallStatistics>
|
||||
<ServerName>{{ host }}</ServerName>
|
||||
<ElapsedMilliseconds>0</ElapsedMilliseconds>
|
||||
</CallStatistics>
|
||||
{%- if action == 'GetMany' %}
|
||||
<Ids>
|
||||
{%- for profile in profiles %}
|
||||
<ProfileId>{{ profile_id(profile) }}
|
||||
</ProfileId>
|
||||
{%- endfor %}
|
||||
</Ids>
|
||||
{%- else %}
|
||||
<Id>{{ profile_id(profiles[0]) }}
|
||||
</Id>
|
||||
{%- endif %}
|
||||
{%- if action == 'GetMany' %}
|
||||
<Views>
|
||||
{%- for profile in profiles %}{{ profile_view(profile) }}{%- endfor %}
|
||||
</Views>
|
||||
{%- else %}{{ profile_view(profiles[0]) }}{%- endif %}
|
||||
</{{ action }}Result>
|
||||
</{{ action }}Response>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
@@ -15,56 +15,56 @@
|
||||
<Services>
|
||||
<Service>
|
||||
<Memberships>
|
||||
{% for lst in lists %}
|
||||
{%- for lst in lists %}
|
||||
<Membership>
|
||||
<MemberRole>{{ lst.label }}</MemberRole>
|
||||
<Members>
|
||||
{% for contact in detail.contacts.values() %}
|
||||
{% if (contact.lists.__and__(lst) and lst not in (ContactList.AL,ContactList.BL,ContactList.RL)) or (lst in (ContactList.AL,ContactList.BL,ContactList.RL) and contact.lists.__and__(lst) and not contact.pending) %}
|
||||
<Member xsi:type="PassportMember">
|
||||
<MembershipId>{{ lst.label }}/{{ contact.head.uuid }}</MembershipId>
|
||||
<Type>Passport</Type>
|
||||
<State>Accepted</State>
|
||||
<Deleted>false</Deleted>
|
||||
<LastChanged>{{ now }}</LastChanged>
|
||||
<JoinedDate>{{ date_format(contact.head.date_created) }}</JoinedDate>
|
||||
<ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
|
||||
<Changes />
|
||||
<PassportName>{{ contact.head.email }}</PassportName>
|
||||
<IsPassportNameHidden>false</IsPassportNameHidden>
|
||||
<PassportId>0</PassportId>
|
||||
<CID>{{ cid_format(contact.head.uuid, decimal = True) }}</CID>
|
||||
<PassportChanges />
|
||||
<LookedupByCID>false</LookedupByCID>
|
||||
</Member>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if lst == ContactList.BL %}
|
||||
{% for circle in circles %}
|
||||
{% if circle.memberships[user.uuid].blocking %}
|
||||
<Member xsi:type="CircleMember">
|
||||
<MembershipId>Block/00000000-0000-0000-0009-{{ circle.chat_id }}</MembershipId>
|
||||
<Type>Circle</Type>
|
||||
<State>Accepted</State>
|
||||
<Deleted>false</Deleted>
|
||||
<LastChanged>{{ now }}</LastChanged>
|
||||
<JoinedDate>{{ now }}</JoinedDate>
|
||||
<ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
|
||||
<Changes />
|
||||
<CircleId>00000000-0000-0000-0009-{{ circle.chat_id }}</CircleId>
|
||||
</Member>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</Members>
|
||||
<MembershipIsComplete>true</MembershipIsComplete>
|
||||
</Membership>
|
||||
{% endfor %}
|
||||
<MemberRole>{{ lst.label }}</MemberRole>
|
||||
<Members>
|
||||
{%- for contact in detail.contacts.values() %}
|
||||
{%- if (contact.lists.__and__(lst) and lst not in (ContactList.AL,ContactList.BL,ContactList.RL)) or (lst in (ContactList.AL,ContactList.BL,ContactList.RL) and contact.lists.__and__(lst) and not contact.pending) %}
|
||||
<Member xsi:type="PassportMember">
|
||||
<MembershipId>{{ lst.label }}/{{ contact.head.uuid }}</MembershipId>
|
||||
<Type>Passport</Type>
|
||||
<State>Accepted</State>
|
||||
<Deleted>false</Deleted>
|
||||
<LastChanged>{{ now }}</LastChanged>
|
||||
<JoinedDate>{{ date_format(contact.head.date_created) }}</JoinedDate>
|
||||
<ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
|
||||
<Changes />
|
||||
<PassportName>{{ contact.head.email }}</PassportName>
|
||||
<IsPassportNameHidden>false</IsPassportNameHidden>
|
||||
<PassportId>0</PassportId>
|
||||
<CID>{{ cid_format(contact.head.uuid, decimal = True) }}</CID>
|
||||
<PassportChanges />
|
||||
<LookedupByCID>false</LookedupByCID>
|
||||
</Member>
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
{%- if lst == ContactList.BL %}
|
||||
{%- for circle in circles %}
|
||||
{%- if circle.memberships[user.uuid].blocking %}
|
||||
<Member xsi:type="CircleMember">
|
||||
<MembershipId>Block/00000000-0000-0000-0009-{{ circle.chat_id }}</MembershipId>
|
||||
<Type>Circle</Type>
|
||||
<State>Accepted</State>
|
||||
<Deleted>false</Deleted>
|
||||
<LastChanged>{{ now }}</LastChanged>
|
||||
<JoinedDate>{{ now }}</JoinedDate>
|
||||
<ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
|
||||
<Changes />
|
||||
<CircleId>00000000-0000-0000-0009-{{ circle.chat_id }}</CircleId>
|
||||
</Member>
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
||||
</Members>
|
||||
<MembershipIsComplete>true</MembershipIsComplete>
|
||||
</Membership>
|
||||
{%- endfor %}
|
||||
<Membership>
|
||||
<MemberRole>Pending</MemberRole>
|
||||
<Members>
|
||||
{% for contact in detail.contacts.values() %}
|
||||
{% if contact.pending and not contact.lists.__and__(ContactList.FL) %}
|
||||
{%- for contact in detail.contacts.values() %}
|
||||
{%- if contact.pending and not contact.lists.__and__(ContactList.FL) %}
|
||||
<Member xsi:type="PassportMember">
|
||||
<MembershipId>Pending/{{ contact.head.uuid }}</MembershipId>
|
||||
<Type>Passport</Type>
|
||||
@@ -81,8 +81,8 @@
|
||||
<PassportChanges />
|
||||
<LookedupByCID>false</LookedupByCID>
|
||||
</Member>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
</Members>
|
||||
<MembershipIsComplete>true</MembershipIsComplete>
|
||||
</Membership>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<soap:Body>
|
||||
<soap:Fault>
|
||||
<faultcode>soap:Client</faultcode>
|
||||
<faultstring>{{ errorstring }}</faultstring>
|
||||
<faultactor>http://www.msn.com/webservices/storage/{{ storage_ns }}/{{ action_str }}</faultactor>
|
||||
<detail>
|
||||
<errorcode xmlns="http://www.msn.com/webservices/storage/v1">{{ errorcode }}</errorcode>
|
||||
<errorstring xmlns="http://www.msn.com/webservices/storage/v1">{{ errorstring }}</errorstring>
|
||||
<machineName xmlns="http://www.msn.com/webservices/storage/v1">BL2STRWBA103</machineName>
|
||||
</detail>
|
||||
</soap:Fault>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
@@ -34,7 +34,7 @@
|
||||
<DocumentStreamName>UserTileStatic</DocumentStreamName>
|
||||
<MimeType>image/{{ mime }}</MimeType>
|
||||
<DataSize>{{ size_static }}</DataSize>
|
||||
<PreAuthURL>https://{{ host }}/avatar/{{ user.uuid }}/msn</PreAuthURL>
|
||||
<PreAuthURL>https://{{ host }}/avatar/{{ user.uuid }}/im</PreAuthURL>
|
||||
<WriteMode>Overwrite</WriteMode>
|
||||
<StreamDataStatus>None</StreamDataStatus>
|
||||
<StreamStatus>None</StreamStatus>
|
||||
@@ -68,7 +68,7 @@
|
||||
<DisplayName>{{ roaming_info.name }}</DisplayName>
|
||||
<DisplayNameLastModified>{{ date_format(roaming_info.name_last_modified) }}</DisplayNameLastModified>
|
||||
{% endif %}
|
||||
<StaticUserTilePublicURL>https://{{ host }}/avatar/{{ user.uuid }}/msn</StaticUserTilePublicURL>
|
||||
<StaticUserTilePublicURL>https://{{ host }}/avatar/{{ user.uuid }}/im</StaticUserTilePublicURL>
|
||||
</ExpressionProfile>
|
||||
</GetProfileResult>
|
||||
</GetProfileResponse>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<link>https://{{ settings.WEBSITE_HOST }}</link>
|
||||
<description>CrossTalk Video</description>
|
||||
<language>en-us</language>
|
||||
<copyright>2023 - 2026 the undergr0und</copyright>
|
||||
<copyright>2023 - 2026 hiden</copyright>
|
||||
<lastBuildDate>Thu, 05 Sep 2024 5:48:54 GMT</lastBuildDate>
|
||||
<category>MSN_Microsoft</category>
|
||||
<ttl>0</ttl>
|
||||
|
||||
@@ -4,58 +4,231 @@
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<soap:Header>
|
||||
<WNServiceHeader xmlns="http://www.msn.com/webservices/AddressBook">
|
||||
<Version>15.1.1216.0</Version>
|
||||
<Version>17.4.0.0</Version>
|
||||
<InExperimentalSample>false</InExperimentalSample>
|
||||
</WNServiceHeader>
|
||||
</soap:Header>
|
||||
<soap:Body>
|
||||
<GetContactsRecentActivityResponse xmlns="http://www.msn.com/webservices/AddressBook">
|
||||
<GetContactsRecentActivityResult>
|
||||
<{{ action }}Response xmlns="http://www.msn.com/webservices/AddressBook">
|
||||
<{{ action }}Result>
|
||||
<Activities>
|
||||
{%- for activity in activities %}
|
||||
{%- if activity.user %}
|
||||
{%- set tile = 'https://' ~ settings.USERSTORAGE_HOST ~ '/avatar/' ~ activity.user.uuid ~ '/im' %}
|
||||
{%- set profile = 'https://' ~ settings.WEBSITE_HOST ~ '/profile/+' ~ activity.user.username %}
|
||||
{%- else %}
|
||||
{%- set profile = activity.url or 'https://' ~ settings.WEBSITE_HOST %}
|
||||
{%- endif %}
|
||||
<ActivityDetails>
|
||||
<OwnerCID>0</OwnerCID>
|
||||
<ObjectId>Fri, 08 Jan 2025 4:59:43 CDT</ObjectId>
|
||||
<ApplicationId>420</ApplicationId>
|
||||
<ChangeType>20</ChangeType>
|
||||
<PublishDate>{date}</PublishDate>
|
||||
<OwnerCID>{{ owner_cid }}</OwnerCID>
|
||||
<ObjectId>{% if activity.type == 1 %}msgr_status_{{ activity.id }}{% elif activity.type == 3 %}msgr_dp_{{ activity.id }}{% elif activity.type == 2 %}msgr_photo_{{ activity.id }}{% else %}announcement_{{ activity.date_created.strftime('%Y%m%d%H%M%S') }}_{{ activity.id }}{% endif %}</ObjectId>
|
||||
<ApplicationId>{{ 1275182653 if activity.user else 420 }}</ApplicationId>
|
||||
<ChangeType>{{ activity.type|int }}</ChangeType>
|
||||
<PublishDate>{{ date_format(activity.date_created) }}</PublishDate>
|
||||
<TemplateVariables>
|
||||
<TemplateVariable xsi:type="TextTemplateVariable">
|
||||
<Name>Name</Name>
|
||||
<Value>{title}</Value>
|
||||
{%- if activity.user %}
|
||||
<TemplateVariable xsi:type="PublisherIdTemplateVariable">
|
||||
<Notations>
|
||||
<Notation><Name>Live.RecentActivity.UserTileM</Name><Value>{{ tile }}</Value></Notation>
|
||||
<Notation><Name>Live.RecentActivity.UserTileL</Name><Value>{{ tile }}</Value></Notation>
|
||||
<Notation><Name>Live.RecentActivity.UserTileXL</Name><Value>{{ tile }}</Value></Notation>
|
||||
</Notations>
|
||||
<Name>publisher</Name>
|
||||
<Id>{{ cid_format(activity.user.uuid, decimal = True) }}</Id>
|
||||
<NameHint>{{ activity.user.status.name|e }}</NameHint>
|
||||
<ProfilePictureUrl>{{ tile }}</ProfilePictureUrl>
|
||||
<ProfileUrlHint>{{ profile }}</ProfileUrlHint>
|
||||
<IsFavorite>{{ bool_to_str(activity.user.uuid in detail.contacts and contact_is_favorite(detail, detail.contacts[activity.user.uuid])) }}</IsFavorite>
|
||||
</TemplateVariable>
|
||||
<TemplateVariable xsi:type="HlinkTemplateVariable">
|
||||
<Name>Url</Name>
|
||||
<Value>{url}</Value>
|
||||
</TemplateVariable>
|
||||
<TemplateVariable xsi:type="HlinkTemplateVariable">
|
||||
<Notations>
|
||||
<Notation><Name>Live.RecentActivity.IsSelfPageUrl</Name><Value>true</Value></Notation>
|
||||
</Notations>
|
||||
<Name>AppName</Name>
|
||||
<Value>{{ profile }}</Value>
|
||||
<ValueAsSafeLink>{{ profile }}</ValueAsSafeLink>
|
||||
</TemplateVariable>
|
||||
{%- if activity.type == 3 %}
|
||||
<TemplateVariable xsi:type="TextTemplateVariable">
|
||||
<Name>StatusText</Name>
|
||||
<Value>has a new display picture</Value>
|
||||
</TemplateVariable>
|
||||
<TemplateVariable xsi:type="ImageTemplateVariable">
|
||||
<Name>DisplayPicture</Name>
|
||||
<Value>{{ tile }}</Value>
|
||||
<Href>{{ profile }}</Href>
|
||||
<HrefAsSafeLink>{{ profile }}</HrefAsSafeLink>
|
||||
</TemplateVariable>
|
||||
{%- elif activity.type == 2 %}
|
||||
<TemplateVariable xsi:type="TextTemplateVariable">
|
||||
<Name>CanonicalStatusText</Name>
|
||||
<Value>{{ (activity.text or 'shared a photo')|e }}</Value>
|
||||
</TemplateVariable>
|
||||
<TemplateVariable xsi:type="ImageTemplateVariable">
|
||||
<Name>Photo</Name>
|
||||
<Value>{{ activity.url|e }}</Value>
|
||||
<Href>{{ activity.url|e }}</Href>
|
||||
<HrefAsSafeLink>{{ activity.url|e }}</HrefAsSafeLink>
|
||||
</TemplateVariable>
|
||||
{%- else %}
|
||||
<TemplateVariable xsi:type="TextTemplateVariable">
|
||||
<Name>CanonicalStatusText</Name>
|
||||
<Value>{{ activity.text|e }}</Value>
|
||||
</TemplateVariable>
|
||||
{%- endif %}
|
||||
{%- else %}
|
||||
<TemplateVariable xsi:type="PublisherIdTemplateVariable">
|
||||
<Name>publisher</Name>
|
||||
<Id>0</Id>
|
||||
<NameHint>{{ activity.title|e }}</NameHint>
|
||||
<ProfilePictureUrl></ProfilePictureUrl>
|
||||
<ProfileUrlHint>{{ profile|e }}</ProfileUrlHint>
|
||||
<IsFavorite>false</IsFavorite>
|
||||
</TemplateVariable>
|
||||
<TemplateVariable xsi:type="HlinkTemplateVariable">
|
||||
<Name>AppName</Name>
|
||||
<Value>{{ profile|e }}</Value>
|
||||
<Text>Announcements</Text>
|
||||
<ValueAsSafeLink>{{ profile|e }}</ValueAsSafeLink>
|
||||
</TemplateVariable>
|
||||
<TemplateVariable xsi:type="TextTemplateVariable">
|
||||
<Name>CanonicalStatusText</Name>
|
||||
<Value>{{ activity.text|e }}</Value>
|
||||
</TemplateVariable>
|
||||
{%- endif %}
|
||||
</TemplateVariables>
|
||||
<ActivityID>1000000{{ activity.type|int if activity.user else 0 }}-0000-4000-8000-{{ '%012x'|format(activity.id) }}</ActivityID>
|
||||
<CommentInfo>
|
||||
<CommentCount>0</CommentCount>
|
||||
</CommentInfo>
|
||||
<RelevanceInfo>
|
||||
<TimeWeightedScore>{{ '%.7f'|format(1 / (1 + (now - activity.date_created).total_seconds() / 86400)) }}</TimeWeightedScore>
|
||||
</RelevanceInfo>
|
||||
<CanPublishComments>false</CanPublishComments>
|
||||
<VisibilityHint>0</VisibilityHint>
|
||||
<CanPublishCommentsSet>false</CanPublishCommentsSet>
|
||||
</ActivityDetails>
|
||||
{%- endfor %}
|
||||
</Activities>
|
||||
<Templates>
|
||||
{%- if 3 in types %}
|
||||
<RecentActivityTemplateContainer>
|
||||
<ApplicationId>420</ApplicationId>
|
||||
<ApplicationName>{appName}</ApplicationName>
|
||||
<ApplicationId>1275182653</ApplicationId>
|
||||
<ApplicationName>Messenger</ApplicationName>
|
||||
<MiniIconSizeX>0</MiniIconSizeX>
|
||||
<MiniIconSizeY>0</MiniIconSizeY>
|
||||
<ChangeType>20</ChangeType>
|
||||
<Locale>en-us</Locale>
|
||||
<ChangeType>3</ChangeType>
|
||||
<Locale>{{ locale|e }}</Locale>
|
||||
<RequestedLocales>
|
||||
<string>en-US</string>
|
||||
<string>{{ locale|e }}</string>
|
||||
</RequestedLocales>
|
||||
<TemplateRevision>1</TemplateRevision>
|
||||
<TemplateRevision>2116</TemplateRevision>
|
||||
<Templates>
|
||||
<RecentActivityTemplate>
|
||||
<Cardinality>One</Cardinality>
|
||||
<Data>CrossTalk News</Data>
|
||||
<Title>{content}</Title>
|
||||
<Data>{image:DisplayPicture style="floatleft"}</Data>
|
||||
<Title>{publisher-id:publisher} {text:StatusText="has a new display picture"}</Title>
|
||||
<LayoutDetails>
|
||||
<TemplateTypeDetails>
|
||||
<TemplateType>MessengerGrid</TemplateType>
|
||||
<LayoutProperties>
|
||||
<LayoutProperty><Name>Type</Name><Value>Photo</Value></LayoutProperty>
|
||||
<LayoutProperty><Name>PrimaryImage</Name><Value>{image:DisplayPicture}</Value></LayoutProperty>
|
||||
<LayoutProperty><Name>Publisher</Name><Value>{publisher-id:publisher}</Value></LayoutProperty>
|
||||
<LayoutProperty><Name>Action</Name><Value>{text:StatusText="has a new display picture"}</Value></LayoutProperty>
|
||||
</LayoutProperties>
|
||||
</TemplateTypeDetails>
|
||||
</LayoutDetails>
|
||||
</RecentActivityTemplate>
|
||||
</Templates>
|
||||
<ActivityType>
|
||||
<string>blog</string>
|
||||
<string>status</string>
|
||||
<string>photo</string>
|
||||
</ActivityType>
|
||||
<CanMergeItemsWithSameObjectID>false</CanMergeItemsWithSameObjectID>
|
||||
<RequiresNotification>false</RequiresNotification>
|
||||
</RecentActivityTemplateContainer>
|
||||
{%- endif %}
|
||||
{%- if 2 in types %}
|
||||
<RecentActivityTemplateContainer>
|
||||
<ApplicationId>1275182653</ApplicationId>
|
||||
<ApplicationName>Messenger</ApplicationName>
|
||||
<MiniIconSizeX>0</MiniIconSizeX>
|
||||
<MiniIconSizeY>0</MiniIconSizeY>
|
||||
<ChangeType>2</ChangeType>
|
||||
<Locale>{{ locale|e }}</Locale>
|
||||
<RequestedLocales>
|
||||
<string>{{ locale|e }}</string>
|
||||
</RequestedLocales>
|
||||
<TemplateRevision>2116</TemplateRevision>
|
||||
<Templates>
|
||||
<RecentActivityTemplate>
|
||||
<Cardinality>One</Cardinality>
|
||||
<Data>{image:Photo style="floatleft"}</Data>
|
||||
<Title>{publisher-id:publisher} {text:CanonicalStatusText}</Title>
|
||||
<LayoutDetails>
|
||||
<TemplateTypeDetails>
|
||||
<TemplateType>MessengerGrid</TemplateType>
|
||||
<LayoutProperties>
|
||||
<LayoutProperty><Name>Type</Name><Value>Photo</Value></LayoutProperty>
|
||||
<LayoutProperty><Name>PrimaryImage</Name><Value>{image:Photo}</Value></LayoutProperty>
|
||||
<LayoutProperty><Name>Publisher</Name><Value>{publisher-id:publisher}</Value></LayoutProperty>
|
||||
<LayoutProperty><Name>Action</Name><Value>{text:CanonicalStatusText}</Value></LayoutProperty>
|
||||
</LayoutProperties>
|
||||
</TemplateTypeDetails>
|
||||
</LayoutDetails>
|
||||
</RecentActivityTemplate>
|
||||
</Templates>
|
||||
<ActivityType>
|
||||
<string>status</string>
|
||||
<string>photo</string>
|
||||
</ActivityType>
|
||||
<CanMergeItemsWithSameObjectID>false</CanMergeItemsWithSameObjectID>
|
||||
<RequiresNotification>false</RequiresNotification>
|
||||
</RecentActivityTemplateContainer>
|
||||
{%- endif %}
|
||||
{%- for change_type, application_id, application_name in ((1, 1275182653, 'Messenger'), (20, 420, 'Announcements')) if change_type in types %}
|
||||
<RecentActivityTemplateContainer>
|
||||
<ApplicationId>{{ application_id }}</ApplicationId>
|
||||
<ApplicationName>{{ application_name }}</ApplicationName>
|
||||
<MiniIconSizeX>0</MiniIconSizeX>
|
||||
<MiniIconSizeY>0</MiniIconSizeY>
|
||||
<ChangeType>{{ change_type }}</ChangeType>
|
||||
<Locale>{{ locale|e }}</Locale>
|
||||
<RequestedLocales>
|
||||
<string>{{ locale|e }}</string>
|
||||
</RequestedLocales>
|
||||
<TemplateRevision>2116</TemplateRevision>
|
||||
<Templates>
|
||||
<RecentActivityTemplate>
|
||||
<Cardinality>One</Cardinality>
|
||||
<Data></Data>
|
||||
<Title>{publisher-id:publisher} {text:CanonicalStatusText}</Title>
|
||||
<LayoutDetails>
|
||||
<TemplateTypeDetails>
|
||||
<TemplateType>MessengerGrid</TemplateType>
|
||||
<LayoutProperties>
|
||||
<LayoutProperty><Name>Type</Name><Value>Status</Value></LayoutProperty>
|
||||
<LayoutProperty><Name>Publisher</Name><Value>{publisher-id:publisher}</Value></LayoutProperty>
|
||||
<LayoutProperty><Name>Action</Name><Value>{text:CanonicalStatusText}</Value></LayoutProperty>
|
||||
{%- if change_type == 20 %}
|
||||
<LayoutProperty><Name>Footer</Name><Value>via {hlink:AppName}</Value></LayoutProperty>
|
||||
{%- endif %}
|
||||
</LayoutProperties>
|
||||
</TemplateTypeDetails>
|
||||
</LayoutDetails>
|
||||
</RecentActivityTemplate>
|
||||
</Templates>
|
||||
<ActivityType>
|
||||
<string>status</string>
|
||||
</ActivityType>
|
||||
<CanMergeItemsWithSameObjectID>false</CanMergeItemsWithSameObjectID>
|
||||
<RequiresNotification>false</RequiresNotification>
|
||||
</RecentActivityTemplateContainer>
|
||||
{%- endfor %}
|
||||
</Templates>
|
||||
<FeedUrl>http://{{ settings.WEBSITE_HOST }}</FeedUrl>
|
||||
</GetContactsRecentActivityResult>
|
||||
</GetContactsRecentActivityResponse>
|
||||
<FeedUrl>https://{{ settings.SOCIAL_HOST }}</FeedUrl>
|
||||
</{{ action }}Result>
|
||||
</{{ action }}Response>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
+84
-1
@@ -20,7 +20,7 @@ async def preprocess_soap(req: web.Request) -> Tuple[Any, Any, Optional[BackendS
|
||||
mspauth = False
|
||||
|
||||
body = await req.read()
|
||||
root = parse_xml(body)
|
||||
root = parse_xml(body[:body.rfind(b'>') + 1])
|
||||
|
||||
token = find_element(root, 'TicketToken')
|
||||
if token is None:
|
||||
@@ -48,6 +48,66 @@ async def preprocess_soap(req: web.Request) -> Tuple[Any, Any, Optional[BackendS
|
||||
|
||||
return header, action, backend_sess, token
|
||||
|
||||
# What the Address Book and Contact Sharing services say for each of their error codes (`<errorcode>` in a fault's `<detail>`)
|
||||
ABCH_FAULT_STRINGS = {
|
||||
'ABAlreadyExists': 'Address Book Already Exists ',
|
||||
'ABDoesNotExist': 'Address Book Does Not Exist ',
|
||||
'BadArgumentLength': 'Argument Exceeded Allowed Length',
|
||||
'BadEmailArgument': 'Malformed email Argument',
|
||||
'ContactAlreadyExists': 'Contact Already Exists ',
|
||||
'ContactDoesNotExist': 'Contact Does Not Exist ',
|
||||
'DynamicItemDoesNotExist': 'Dynamic Item Does Not Exist ',
|
||||
'EmailDomainIsFederated': 'Email Domain Is Federated ',
|
||||
'FullSyncRequired': 'Full sync required. Details: Delta syncs disabled.',
|
||||
'GroupAlreadyExists': 'Group Already Exists ',
|
||||
'GroupDoesNotExist': 'Group Does Not Exist ',
|
||||
'InvalidPassportUser': 'The Passport user specified is invalid',
|
||||
'InvalidSyncTimeStamp': 'Invalid Sync Time Stamp ',
|
||||
'MemberAlreadyExists': 'Member already exists ',
|
||||
'MemberDoesNotExist': 'Member does not exist ',
|
||||
'PassportAuthFail': 'Passport Authentication Failed ',
|
||||
'RequestLimitReached': 'Request Limit Reached ',
|
||||
'SecureConnectionRequired': 'Secure Connection Required ',
|
||||
'UserDoesNotExist': 'User does not exist ',
|
||||
}
|
||||
|
||||
# The same for the Schematized Storage service
|
||||
STORAGE_FAULT_STRINGS = {
|
||||
'AccessDenied': 'Access Denied ',
|
||||
'GeneralException': 'General Exception ',
|
||||
'ItemAlreadyExists': 'Item Already Exists ',
|
||||
'ItemDoesNotExist': 'Item Does Not Exist ',
|
||||
'InvalidObjectHandle': 'Invalid Object Handle ',
|
||||
'InvalidDocumentStream': 'Invalid Document Stream ',
|
||||
}
|
||||
|
||||
def abch_fault(
|
||||
req: web.Request, action_str: str, errorcode: str, *, errorstring: Optional[str] = None, faultcode: str = 'soap:Client',
|
||||
parameter_fault: Optional[str] = None, conflict_object_id: Optional[str] = None,
|
||||
) -> web.Response:
|
||||
# An Address Book or Contact Sharing service fault (`errorcode` is one of `ABCH_FAULT_STRINGS`)
|
||||
return render(req, 'msn:abservice/Fault.abch.xml', {
|
||||
'action_str': action_str, 'faultcode': faultcode, 'errorcode': errorcode,
|
||||
'errorstring': (errorstring or ABCH_FAULT_STRINGS.get(errorcode) or errorcode), 'parameter_fault': parameter_fault,
|
||||
'conflict_object_id': conflict_object_id,
|
||||
}, status = 500)
|
||||
|
||||
def storage_fault(req: web.Request, storage_ns: str, action_str: str, errorcode: str, *, errorstring: Optional[str] = None) -> web.Response:
|
||||
# A Schematized Storage service fault (`errorcode` is one of `STORAGE_FAULT_STRINGS`)
|
||||
return render(req, 'msn:storageservice/Fault.storage.xml', {
|
||||
'storage_ns': storage_ns, 'action_str': action_str, 'errorcode': errorcode,
|
||||
'errorstring': (errorstring or STORAGE_FAULT_STRINGS.get(errorcode) or errorcode),
|
||||
}, status = 500)
|
||||
|
||||
def schema_fault(req: web.Request, actor: str, faultstring: Optional[str] = None) -> web.Response:
|
||||
# A request that's missing something, or has something that isn't allowed where it is (or `faultstring`, for a request
|
||||
# that's fine but can't be done)
|
||||
return render(req, 'msn:Fault.schema.xml', { 'actor': actor, 'faultstring': faultstring }, status = 500)
|
||||
|
||||
def server_fault(req: web.Request, actor: Optional[str] = None) -> web.Response:
|
||||
# Something went wrong handling the request; what it was stays in the server's log
|
||||
return render(req, 'msn:Fault.server.xml', { 'actor': actor }, status = 500)
|
||||
|
||||
def get_tag_localname(elm: Any) -> str:
|
||||
return lxml.etree.QName(elm.tag).localname
|
||||
|
||||
@@ -90,3 +150,26 @@ def parse_cookies(cookie_string: Optional[str]) -> Dict[str, Any]:
|
||||
cookie_dict[cookie_kv[0]] = cookie_data
|
||||
|
||||
return cookie_dict
|
||||
|
||||
async def dispatch_abch(req: web.Request, module: Any, prefix: str) -> web.Response:
|
||||
header, action, bs, _ = await preprocess_soap(req)
|
||||
if bs is None:
|
||||
raise web.HTTPForbidden()
|
||||
action_str = get_tag_localname(action)
|
||||
if find_element(action, 'deltasOnly') or find_element(action, 'DeltasOnly'):
|
||||
return render(req, 'msn:abservice/Fault.fullsync.xml', { 'faultactor': action_str })
|
||||
|
||||
if settings.DEBUG_FULL:
|
||||
print(xml_to_string(action))
|
||||
|
||||
method = getattr(module, prefix + '_' + action_str, None)
|
||||
if not method:
|
||||
return unknown_soap(req, header, action)
|
||||
|
||||
try:
|
||||
return method(req, header, action, bs)
|
||||
except:
|
||||
import traceback
|
||||
# The traceback goes to the log, not to the client
|
||||
traceback.print_exc()
|
||||
return server_fault(req, 'http://www.msn.com/webservices/AddressBook/{}'.format(action_str))
|
||||
+140
-82
@@ -13,10 +13,12 @@ from core import error
|
||||
from core.backend import Backend, BackendSession
|
||||
from core.models import User, OIM, Substatus, NetworkID, CircleState, Circle
|
||||
|
||||
|
||||
def build_presence_notif(
|
||||
trid: Optional[str], old_substatus: Optional[Substatus], ctc_head: User, user_me: User,
|
||||
dialect: int, backend: Backend, iln_sent: bool, update_info: bool, *,
|
||||
self_presence: bool = False, update_status: bool = True, circle: Optional['Circle'] = None, circle_owner: bool = False,
|
||||
announced_epids: dict[str, set[str]] | None = None,
|
||||
) -> Iterable[Tuple[Any, ...]]:
|
||||
detail = user_me.detail
|
||||
assert detail is not None
|
||||
@@ -47,10 +49,9 @@ def build_presence_notif(
|
||||
head_display_email = backend.util_get_display_email(head)
|
||||
user_me_display_email = backend.util_get_display_email(user_me)
|
||||
|
||||
# TODO: This is insanely ugly.
|
||||
if dialect >= 19:
|
||||
if circle is not None and circle_owner: return
|
||||
cm = None # type: Optional[str]
|
||||
pop_id_ctc = None # type: Optional[str]
|
||||
|
||||
substatus = status.substatus
|
||||
|
||||
@@ -64,70 +65,20 @@ def build_presence_notif(
|
||||
cm = NFY_PUT_PRESENCE_USER_S_CM.format(cm = encode_xml_he(status.media or '', dialect))
|
||||
nfy_rst += NFY_PUT_PRESENCE_USER_S_PE.format(
|
||||
msnobj = encode_xml_he(ctc_sess.front_data.get('msn_msnobj') or '', dialect),
|
||||
name = status.name or head_display_email, message = status.message,
|
||||
name = encode_xml_he(status.name or head_display_email, dialect), message = encode_xml_he(status.message or '', dialect),
|
||||
ddp = encode_xml_he(ctc_sess.front_data.get('msn_msnobj_ddp') or '', dialect),
|
||||
colorscheme = encode_xml_he(ctc_sess.front_data.get('msn_colorscheme') or '', dialect),
|
||||
scene = encode_xml_he(ctc_sess.front_data.get('msn_msnobj_scene') or '', dialect),
|
||||
sigsound = encode_xml_he(ctc_sess.front_data.get('msn_sigsound') or '', dialect),
|
||||
)
|
||||
if ctc_sess.front_data.get('msn_pop_id') is not None:
|
||||
pop_id_ctc = '{' + ctc_sess.front_data['msn_pop_id'] + '}'
|
||||
nfy_rst += NFY_PUT_PRESENCE_USER_SEP_IM.format(
|
||||
epid_attrib = (NFY_PUT_PRESENCE_USER_SEP_EPID.format(mguid = pop_id_ctc or '') if pop_id_ctc is not None else ''),
|
||||
capabilities = encode_capabilities_capabilitiesex(
|
||||
(ctc_sess.front_data.get('msn_capabilities') if ctc_sess.front_data.get('msn') is True else MAX_CAPABILITIES_BASIC),
|
||||
ctc_sess.front_data.get('msn_capabilitiesex') or 0,
|
||||
extra = ''.join(
|
||||
'<{0}>{1}</{0}>'.format(name, encode_xml_he(value or '', dialect))
|
||||
for name, value in (ctc_sess.front_data.get('msn_pe_extra') or {}).items()
|
||||
),
|
||||
)
|
||||
if ctc_sess.front_data.get('msn_PE'):
|
||||
pe_data = ''
|
||||
pe_data += NFY_PUT_PRESENCE_USER_SEP_PE_VER.format(ver = ctc_sess.front_data.get('msn_PE_VER') or '')
|
||||
pe_data += NFY_PUT_PRESENCE_USER_SEP_PE_TYP.format(typ = ctc_sess.front_data.get('msn_PE_TYP') or '')
|
||||
pe_data += NFY_PUT_PRESENCE_USER_SEP_PE_CAP.format(
|
||||
pe_capabilities = encode_capabilities_capabilitiesex(
|
||||
ctc_sess.front_data.get('msn_PE_capabilities') or 0, ctc_sess.front_data.get('msn_PE_capabilitiesex') or 0,
|
||||
)
|
||||
)
|
||||
nfy_rst += NFY_PUT_PRESENCE_USER_SEP_PE.format(
|
||||
epid_attrib = (NFY_PUT_PRESENCE_USER_SEP_EPID.format(mguid = pop_id_ctc or '') if pop_id_ctc is not None else ''),
|
||||
pe_data = pe_data,
|
||||
)
|
||||
if pop_id_ctc is not None:
|
||||
nfy_rst += NFY_PUT_PRESENCE_USER_SEP_PD.format(
|
||||
mguid = pop_id_ctc, ped_data = _list_private_endpoint_data(ctc_sess),
|
||||
)
|
||||
|
||||
nfy_rst += _build_nfy_sep(ctc_sess, dialect)
|
||||
for ctc_sess_other in backend.util_get_sessions_by_user(ctc_sess.user):
|
||||
if ctc_sess_other is ctc_sess: continue
|
||||
if ctc_sess_other.front_data.get('msn_pop_id') is None: continue
|
||||
|
||||
nfy_rst += NFY_PUT_PRESENCE_USER_SEP_IM.format(
|
||||
epid_attrib = NFY_PUT_PRESENCE_USER_SEP_EPID.format(mguid = '{' + ctc_sess_other.front_data['msn_pop_id'] + '}'),
|
||||
capabilities = encode_capabilities_capabilitiesex(
|
||||
(
|
||||
(ctc_sess_other.front_data.get('msn_capabilities') or 0)
|
||||
if ctc_sess_other.front_data.get('msn') is True else MAX_CAPABILITIES_BASIC
|
||||
),
|
||||
ctc_sess_other.front_data.get('msn_capabilitiesex') or 0,
|
||||
),
|
||||
)
|
||||
if ctc_sess_other.front_data.get('msn_PE'):
|
||||
pe_data = ''
|
||||
pe_data += NFY_PUT_PRESENCE_USER_SEP_PE_VER.format(ver = ctc_sess_other.front_data.get('msn_PE_VER') or '')
|
||||
pe_data += NFY_PUT_PRESENCE_USER_SEP_PE_TYP.format(typ = ctc_sess_other.front_data.get('msn_PE_TYP') or '')
|
||||
pe_data += NFY_PUT_PRESENCE_USER_SEP_PE_CAP.format(
|
||||
pe_capabilities = encode_capabilities_capabilitiesex(
|
||||
ctc_sess_other.front_data.get('msn_PE_capabilities') or 0,
|
||||
ctc_sess_other.front_data.get('msn_PE_capabilitiesex') or 0,
|
||||
),
|
||||
)
|
||||
nfy_rst += NFY_PUT_PRESENCE_USER_SEP_PE.format(
|
||||
epid_attrib = NFY_PUT_PRESENCE_USER_SEP_EPID.format(mguid = '{' + ctc_sess_other.front_data['msn_pop_id'] + '}'),
|
||||
pe_data = pe_data,
|
||||
)
|
||||
nfy_rst += NFY_PUT_PRESENCE_USER_SEP_PD.format(
|
||||
mguid = '{' + ctc_sess_other.front_data['msn_pop_id'] + '}', ped_data = _list_private_endpoint_data(ctc_sess_other)
|
||||
)
|
||||
if ctc_sess_other is ctc_sess or ctc_sess_other.front_data.get('msn_pop_id') is None: continue
|
||||
nfy_rst += _build_nfy_sep(ctc_sess_other, dialect)
|
||||
|
||||
msn_status = MSNStatus.FromSubstatus(substatus)
|
||||
|
||||
@@ -136,7 +87,9 @@ def build_presence_notif(
|
||||
)
|
||||
|
||||
nfy_payload = encode_payload(NFY_PUT_PRESENCE,
|
||||
to = user_me_display_email, from_email = head_display_email, cl = len(nfy_presence_body), payload = nfy_presence_body,
|
||||
to = user_me_display_email,
|
||||
from_email = (encode_email_networkid(head_display_email, None, circle = circle).split(':', 1)[1] if circle is not None else head_display_email),
|
||||
cl = len(nfy_presence_body.encode('utf-8')), payload = nfy_presence_body,
|
||||
)
|
||||
|
||||
yield ('NFY', 'PUT', nfy_payload)
|
||||
@@ -159,28 +112,25 @@ def build_presence_notif(
|
||||
if ctc_sess is None: return
|
||||
|
||||
if status.substatus is not old_substatus or update_status:
|
||||
msn_status = MSNStatus.FromSubstatus(status.substatus)
|
||||
|
||||
msn_status = MSNStatus.FromSubstatus(status.substatus if status.substatus is not None else Substatus.Offline)
|
||||
|
||||
if trid and dialect < 18: frst = ('ILN', trid) # type: Tuple[Any, ...]
|
||||
else: frst = ('NLN',)
|
||||
rst = []
|
||||
|
||||
if 8 <= dialect <= 15:
|
||||
rst.append(((ctc_sess.front_data.get('msn_capabilities') or 0) if ctc_sess.front_data.get('msn') is True else MAX_CAPABILITIES_BASIC))
|
||||
rst.append(get_session_capabilities(ctc_sess, dialect)[0])
|
||||
elif dialect >= 16:
|
||||
rst.append((
|
||||
'0:0' if circle is not None and circle_owner else encode_capabilities_capabilitiesex(
|
||||
((ctc_sess.front_data.get('msn_capabilities') or 0) if ctc_sess.front_data.get('msn') is True else MAX_CAPABILITIES_BASIC),
|
||||
ctc_sess.front_data.get('msn_capabilitiesex') or 0,
|
||||
)
|
||||
'0:0' if circle is not None and circle_owner else encode_capabilities_capabilitiesex(*get_session_capabilities(ctc_sess, dialect))
|
||||
))
|
||||
if dialect >= 9:
|
||||
rst.append(MSNObj(ctc_sess.front_data.get('msn_msnobj') or '<msnobj/>'))
|
||||
|
||||
if dialect >= 18:
|
||||
yield (*frst, msn_status.name, encode_email_networkid(head_display_email, None, circle = circle), status.name, *rst)
|
||||
yield (*frst, msn_status.name, encode_email_networkid(head_display_email, None, circle = circle), (status.name or head_display_email), *rst)
|
||||
else:
|
||||
yield (*frst, msn_status.name, head_display_email, (int(NetworkID.WINDOWS_LIVE) if 14 <= dialect <= 17 else None), status.name, *rst)
|
||||
yield (*frst, msn_status.name, head_display_email, (int(NetworkID.WINDOWS_LIVE) if 14 <= dialect <= 17 else None), (status.name or head_display_email), *rst)
|
||||
|
||||
# MSNP16/18 requires `UBX`s when a user changes any sort of state (this makes MPoP and Circles work effectively)
|
||||
if dialect < 11 or (not update_info and dialect < 16):
|
||||
@@ -236,7 +186,7 @@ def cid_format(uuid: str, *, decimal: bool = False) -> str:
|
||||
return cid
|
||||
|
||||
# convert to decimal string
|
||||
return str(struct.unpack('<q', binascii.unhexlify(cid))[0])
|
||||
return str(struct.unpack('>q', binascii.unhexlify(cid))[0])
|
||||
|
||||
def uuid_to_high_low(uuid_str: str) -> Tuple[int, int]:
|
||||
import uuid
|
||||
@@ -288,20 +238,13 @@ def extend_ubx_payload(dialect: int, backend: Backend, user: User, ctc_sess: 'Ba
|
||||
)
|
||||
if pop_id_ctc:
|
||||
response += EPDATA_PAYLOAD.format(
|
||||
mguid = '{' + pop_id_ctc + '}', capabilities = encode_capabilities_capabilitiesex(
|
||||
((ctc_sess.front_data.get('msn_capabilities') or 0) if ctc_sess.front_data.get('msn') is True else MAX_CAPABILITIES_BASIC),
|
||||
ctc_sess.front_data.get('msn_capabilitiesex') or 0,
|
||||
),
|
||||
mguid = '{' + pop_id_ctc + '}', capabilities = encode_capabilities_capabilitiesex(*get_session_capabilities(ctc_sess, dialect)),
|
||||
)
|
||||
for ctc_sess_other in backend.util_get_sessions_by_user(ctc_sess.user):
|
||||
pop_id = ctc_sess_other.front_data.get('msn_pop_id') or ''
|
||||
if pop_id.lower() == pop_id_ctc.lower(): continue
|
||||
response += EPDATA_PAYLOAD.format(
|
||||
mguid = '{' + pop_id + '}',
|
||||
capabilities = encode_capabilities_capabilitiesex(
|
||||
((ctc_sess.front_data.get('msn_capabilities') or 0) if ctc_sess.front_data.get('msn') is True else MAX_CAPABILITIES_BASIC),
|
||||
ctc_sess_other.front_data.get('msn_capabilitiesex') or 0,
|
||||
)
|
||||
mguid = '{' + pop_id + '}', capabilities = encode_capabilities_capabilitiesex(*get_session_capabilities(ctc_sess_other, dialect)),
|
||||
)
|
||||
if ctc_sess.user is user:
|
||||
for ctc_sess_other in backend.util_get_sessions_by_user(ctc_sess.user):
|
||||
@@ -327,6 +270,35 @@ def _list_private_endpoint_data(ctc_sess: 'BackendSession') -> str:
|
||||
|
||||
return ped_data
|
||||
|
||||
def _build_nfy_sep(sess: 'BackendSession', dialect: int) -> str:
|
||||
pop_id = sess.front_data.get('msn_pop_id')
|
||||
epid_attrib = NFY_PUT_PRESENCE_USER_SEP_EPID.format(mguid = '{' + (pop_id or '00000000-0000-0000-0000-000000000000') + '}')
|
||||
front_data = sess.front_data
|
||||
pe_epid_attrib = (epid_attrib if front_data.get('msn_PE') else NFY_PUT_PRESENCE_USER_SEP_EPID.format(
|
||||
mguid = '{' + (session_p2p_epid(sess) or NULL_EPID) + '}',
|
||||
))
|
||||
capabilities_known = (front_data.get('msn') is not True or 'msn_capabilities' in front_data)
|
||||
|
||||
pe_data = ''
|
||||
if front_data.get('msn_PE'):
|
||||
pe_data += NFY_PUT_PRESENCE_USER_SEP_PE_VER.format(ver = front_data.get('msn_PE_VER') or '')
|
||||
pe_data += NFY_PUT_PRESENCE_USER_SEP_PE_TYP.format(typ = front_data.get('msn_PE_TYP') or '')
|
||||
if ('msn_PE_capabilities' in front_data if front_data.get('msn_PE') else capabilities_known):
|
||||
pe_data += NFY_PUT_PRESENCE_USER_SEP_PE_CAP.format(
|
||||
pe_capabilities = encode_capabilities_capabilitiesex(*get_session_capabilities(sess, dialect, pe = True)),
|
||||
)
|
||||
|
||||
if capabilities_known:
|
||||
result = NFY_PUT_PRESENCE_USER_SEP_IM.format(
|
||||
epid_attrib = epid_attrib, capabilities = encode_capabilities_capabilitiesex(*get_session_capabilities(sess, dialect)),
|
||||
)
|
||||
else:
|
||||
result = NFY_PUT_PRESENCE_USER_SEP_IM_EMPTY.format(epid_attrib = epid_attrib)
|
||||
result += NFY_PUT_PRESENCE_USER_SEP_PE.format(epid_attrib = pe_epid_attrib, pe_data = pe_data)
|
||||
if pop_id is not None:
|
||||
result += NFY_PUT_PRESENCE_USER_SEP_PD.format(mguid = '{' + pop_id + '}', ped_data = _list_private_endpoint_data(sess))
|
||||
return result
|
||||
|
||||
def gen_signedticket_xml(bs: BackendSession, backend: Backend) -> str:
|
||||
from cryptography.hazmat.primitives import hashes
|
||||
from cryptography.hazmat.primitives.asymmetric import padding
|
||||
@@ -364,7 +336,7 @@ def gen_chal_response(chal: str, id: str, id_key: str, *, msnp11: bool = False)
|
||||
]
|
||||
|
||||
pub_bytes = (chal + id).encode('ascii')
|
||||
pub_bytes += b'0' * (8 - (len(pub_bytes) % 8))
|
||||
pub_bytes += b'0' * (-len(pub_bytes) % 8)
|
||||
public_seed = [
|
||||
struct.unpack('<I', pub_bytes[i:i+4])[0] & 0x7FFFFFFF
|
||||
for i in range(0, len(pub_bytes), 4)
|
||||
@@ -585,7 +557,7 @@ Reliability: 1.0
|
||||
Notification: 1.0
|
||||
NotifNum: 0
|
||||
Uri: /user
|
||||
NotifType: Partial
|
||||
NotifType: Full
|
||||
Content-Type: application/user+xml
|
||||
Content-Length: {cl}
|
||||
|
||||
@@ -597,10 +569,12 @@ NFY_PUT_PRESENCE_USER_S_CM = '<CurrentMedia>{cm}</CurrentMedia>'
|
||||
|
||||
NFY_PUT_PRESENCE_USER_S_PE = '<s n="PE"><UserTileLocation>{msnobj}</UserTileLocation><FriendlyName>{name}</FriendlyName>\
|
||||
<PSM>{message}</PSM><DDP>{ddp}</DDP><ColorScheme>{colorscheme}</ColorScheme>\
|
||||
<Scene>{scene}</Scene><SignatureSound>{sigsound}</SignatureSound></s>'
|
||||
<Scene>{scene}</Scene>{extra}<SignatureSound>{sigsound}</SignatureSound></s>'
|
||||
|
||||
NFY_PUT_PRESENCE_USER_SEP_IM = '<sep n="IM"{epid_attrib}><Capabilities>{capabilities}</Capabilities></sep>'
|
||||
|
||||
NFY_PUT_PRESENCE_USER_SEP_IM_EMPTY = '<sep n="IM"{epid_attrib}></sep>'
|
||||
|
||||
NFY_PUT_PRESENCE_USER_SEP_PE = '<sep n="PE"{epid_attrib}>{pe_data}</sep>'
|
||||
|
||||
NFY_PUT_PRESENCE_USER_SEP_PE_VER = '<VER>{ver}</VER>'
|
||||
@@ -613,8 +587,88 @@ NFY_PUT_PRESENCE_USER_SEP_PD = '<sep n="PD" epid="{mguid}">{ped_data}</sep>'
|
||||
|
||||
NFY_PUT_PRESENCE_USER_SEP_EPID = ' epid="{mguid}"'
|
||||
|
||||
NFY_DEL_PRESENCE_USER = '<user>{rst}</user>'
|
||||
|
||||
NFY_DEL_PRESENCE_USER_SEP = '<sep n="{n}" epid="{mguid}"/>'
|
||||
|
||||
MAX_CAPABILITIES_BASIC = 1073741824
|
||||
|
||||
CAPABILITIES_SIP_INVITE = 0x00100000
|
||||
CAPABILITIES_P2P_TURN = 0x02000000
|
||||
CAPABILITIES_P2P_BOOTSTRAP_VIA_UUN = 0x04000000
|
||||
CAPABILITIESEX_P2PV2 = 0x00000020
|
||||
CAPABILITIESEX_OFFLINE_IM = 0x00000100
|
||||
CAPABILITIESEX_NUDGES = 0x00000400
|
||||
CAPABILITIESEX_SIP_TUNNEL_V2 = 0x00800000
|
||||
CAPABILITIESEX_CUSTOM_EMOTICONS = 0x08000000
|
||||
CAPABILITIESEX_UTF8_PSM = 0x10000000
|
||||
|
||||
CAPABILITIES_DIRECT_IM = 0x00004000
|
||||
CAPABILITIES_DIRECT_MASK = CAPABILITIES_DIRECT_IM | CAPABILITIES_P2P_TURN | CAPABILITIES_P2P_BOOTSTRAP_VIA_UUN
|
||||
CAPABILITIESEX_FTURN = 0x20000000
|
||||
CAPABILITIESEX_DIRECT_MASK = CAPABILITIESEX_FTURN
|
||||
|
||||
CAPABILITIESEX_MULTIPARTY = 0x80000000
|
||||
CAPABILITIESEX_P2P_ENVELOPING = 0x00080000
|
||||
|
||||
CAPABILITIES_VERSION_SHIFT = 28
|
||||
|
||||
NULL_EPID = '00000000-0000-0000-0000-000000000000'
|
||||
|
||||
DATACAST_MSNOBJ = { '2': 'Wink', '3': 'Voice' }
|
||||
|
||||
DATACAST_ACTION = '4'
|
||||
|
||||
PE_EXTRA_ELEMENTS = ('ASN', 'BDG', 'RUM', 'RUL', 'RLT', 'RID', 'SUL')
|
||||
|
||||
UNSUPPORTED_MESSAGE_TEXT = "CrossTalk System Message: This message cannot be viewed on the client you're currently using."
|
||||
|
||||
def get_session_capabilities(sess: 'BackendSession', dialect: int, *, pe: bool = False) -> Tuple[int, int]:
|
||||
if sess.front_data.get('msn') is True:
|
||||
capabilities = int(sess.front_data.get('msn_capabilities') or 0)
|
||||
capabilitiesex = int(sess.front_data.get('msn_capabilitiesex') or 0)
|
||||
else:
|
||||
capabilities = MAX_CAPABILITIES_BASIC
|
||||
capabilitiesex = 0
|
||||
|
||||
if sess.front_data.get('msn_PE'):
|
||||
pe_capabilities = int(sess.front_data.get('msn_PE_capabilities') or 0)
|
||||
if pe:
|
||||
return _mask_direct(pe_capabilities, int(sess.front_data.get('msn_PE_capabilitiesex') or 0))
|
||||
if dialect < 19:
|
||||
capabilities |= pe_capabilities
|
||||
capabilitiesex |= CAPABILITIESEX_P2PV2
|
||||
if capabilitiesex & CAPABILITIESEX_SIP_TUNNEL_V2:
|
||||
capabilities |= CAPABILITIES_SIP_INVITE
|
||||
return _mask_direct(capabilities, capabilitiesex)
|
||||
|
||||
version = capabilities >> CAPABILITIES_VERSION_SHIFT
|
||||
if pe:
|
||||
if version < 1 or sess.front_data.get('msn') is not True:
|
||||
return 0, 0
|
||||
return 0, (capabilitiesex & CAPABILITIESEX_P2PV2) | CAPABILITIESEX_P2P_ENVELOPING
|
||||
if dialect >= 19:
|
||||
if version >= 1: capabilitiesex |= CAPABILITIESEX_CUSTOM_EMOTICONS
|
||||
if version >= 4: capabilitiesex |= CAPABILITIESEX_NUDGES | CAPABILITIESEX_UTF8_PSM
|
||||
if version >= 7: capabilitiesex |= CAPABILITIESEX_OFFLINE_IM
|
||||
if sess.front_data.get('msn') is True: capabilitiesex |= CAPABILITIESEX_MULTIPARTY
|
||||
return _mask_direct(capabilities, capabilitiesex)
|
||||
|
||||
def _mask_direct(capabilities: int, capabilitiesex: int) -> Tuple[int, int]:
|
||||
return capabilities & ~CAPABILITIES_DIRECT_MASK, capabilitiesex & ~CAPABILITIESEX_DIRECT_MASK
|
||||
|
||||
def session_p2pv2(sess: 'BackendSession') -> bool:
|
||||
front_data = sess.front_data
|
||||
if front_data.get('msn_PE'): return True
|
||||
if front_data.get('msn_pop_id') is None: return False
|
||||
return bool(int(front_data.get('msn_capabilitiesex') or 0) & CAPABILITIESEX_P2PV2)
|
||||
|
||||
def session_p2p_epid(sess: 'BackendSession') -> Optional[str]:
|
||||
if not session_p2pv2(sess): return None
|
||||
return sess.front_data.get('msn_pop_id')
|
||||
|
||||
def is_null_epid(epid: Optional[str]) -> bool:
|
||||
return epid is None or normalize_pop_id(epid).strip().lower() in ('', NULL_EPID)
|
||||
class MSNObj:
|
||||
__slots__ = ('data',)
|
||||
|
||||
@@ -682,11 +736,13 @@ class Err:
|
||||
PrincipalNotOnline = 217
|
||||
AlreadyInMode = 218
|
||||
MutuallyExclusiveList = 219
|
||||
NotAcceptingPages = 220
|
||||
GroupInvalid = 224
|
||||
PrincipalNotInGroup = 225
|
||||
GroupAlreadyExists = 228
|
||||
GroupNameTooLong = 229
|
||||
GroupZeroUnremovable = 230
|
||||
InvalidMSISDN = 232
|
||||
XXLEmptyDomain = 240
|
||||
XXLInvalidPayload = 241
|
||||
ContactListUnavailable = 402
|
||||
@@ -698,6 +754,8 @@ class Err:
|
||||
ChallengeResponseFailed = 540
|
||||
Overload = 712
|
||||
NotExpected = 715
|
||||
InvalidCVQ = 731
|
||||
RateLimitExceeded = 800
|
||||
AuthFail = 911
|
||||
NotAllowedWhileHDN = 913
|
||||
InvalidDomain = 917
|
||||
|
||||
+3
-2
@@ -137,7 +137,8 @@ class MSNPReader:
|
||||
self._data = self._data[e:]
|
||||
self._i = 0
|
||||
_log(self.logger, '[Client]', m)
|
||||
m = [unquote(x) for x in m]
|
||||
if m[0] != 'QRY':
|
||||
m = [unquote(x) for x in m]
|
||||
if body:
|
||||
m.append(body)
|
||||
if settings.DEBUG_FULL:
|
||||
@@ -173,7 +174,7 @@ def _encode_msnobj(msnobj: Optional[str]) -> Optional[str]:
|
||||
return quote(msnobj, safe = '')
|
||||
|
||||
_PAYLOAD_COMMANDS = {
|
||||
'UUX', 'MSG', 'QRY', 'NOT', 'ADL', 'FQY', 'RML', 'UUN', 'UUM', 'PUT', 'DEL', 'SDG', 'VAS', 'SDC',
|
||||
'UUX', 'MSG', 'QRY', 'NOT', 'ADL', 'FQY', 'RML', 'UUN', 'UUM', 'PUT', 'DEL', 'SDG', 'VAS', 'SDC', 'PAG', 'PGD',
|
||||
}
|
||||
|
||||
def _log(logger: Logger, pre: str, m: Sequence[Any]) -> None:
|
||||
|
||||
@@ -64,6 +64,14 @@ class MSNPCtrlDP(MSNPCtrl):
|
||||
v = args[5]
|
||||
self.send_reply('CVR', trid, v, v, '1.0.0000', 'https://crosstalk.im/downloads', 'https://crosstalk.im/compat')
|
||||
|
||||
def _m_cvq(self, trid: str, *args: str) -> None:
|
||||
if len(args) < 6:
|
||||
self.send_reply(Err.InvalidCVQ, trid)
|
||||
self.close()
|
||||
return
|
||||
v = args[5]
|
||||
self.send_reply('CVQ', trid, v, v, '1.0.0000', 'https://crosstalk.im/downloads', 'https://crosstalk.im/compat')
|
||||
|
||||
def _m_inf(self, trid: str) -> None:
|
||||
if self.dialect < 9:
|
||||
self.send_reply('INF', trid, 'MD5')
|
||||
@@ -72,7 +80,7 @@ class MSNPCtrlDP(MSNPCtrl):
|
||||
return
|
||||
|
||||
def __getattr__(self, name):
|
||||
if name.startswith('_m_') and name not in ('_m_ver', '_m_cvr', '_m_inf'):
|
||||
if name.startswith('_m_') and name not in ('_m_ver', '_m_cvr', '_m_cvq', '_m_inf'):
|
||||
def handler(trid: str, *args: str):
|
||||
if self.dialect == 2:
|
||||
self.send_reply('XFR', trid, 'NS', f'{settings.TARGET_IP}:1864')
|
||||
|
||||
+1207
-338
File diff suppressed because it is too large.
Load diff
+226
-93
@@ -1,16 +1,21 @@
|
||||
from typing import Tuple, Any, Optional, List, Set
|
||||
from typing import Tuple, Any, Optional, List, Set, Dict, cast
|
||||
import time, asyncio
|
||||
from email.parser import Parser
|
||||
|
||||
from util.misc import Logger, VoidTaskType
|
||||
from util.misc import Logger, VoidTaskType, gen_uuid
|
||||
from core.models import User, MessageData, MessageType, Substatus
|
||||
from core.backend import Backend, BackendSession, ChatSession, Chat
|
||||
from core import event, error
|
||||
from .misc import Err, encode_capabilities_capabilitiesex, decode_email_pop, encode_email_pop, normalize_pop_id, MAX_CAPABILITIES_BASIC
|
||||
from .msnp import MSNPCtrl
|
||||
|
||||
from .misc import (
|
||||
Err, encode_capabilities_capabilitiesex, decode_email_pop, encode_email_pop, normalize_pop_id, get_session_capabilities,
|
||||
CAPABILITIESEX_P2PV2, DATACAST_MSNOBJ, DATACAST_ACTION, UNSUPPORTED_MESSAGE_TEXT, is_null_epid,
|
||||
)
|
||||
from .p2p_bridge import (
|
||||
get_p2p_state, chunk_p2p, translate_p2pv2_ack, build_sb_p2p_headers, sb_p2p_is_v2, neutralize_direct_p2p, sb_p2p_messages,
|
||||
)
|
||||
class MSNPCtrlSB(MSNPCtrl):
|
||||
__slots__ = ('backend', 'dialect', 'loop', 'counter_task', 'auth_sent', 'bs', 'cs')
|
||||
__slots__ = ('backend', 'dialect', 'loop', 'counter_task', 'auth_sent', 'bs', 'cs', 'chunks')
|
||||
|
||||
backend: Backend
|
||||
dialect: int
|
||||
@@ -19,6 +24,7 @@ class MSNPCtrlSB(MSNPCtrl):
|
||||
auth_sent: bool
|
||||
bs: Optional[BackendSession]
|
||||
cs: Optional[ChatSession]
|
||||
chunks: Dict[str, Dict[str, Any]]
|
||||
|
||||
def __init__(self, logger: Logger, via: str, backend: Backend) -> None:
|
||||
super().__init__(logger)
|
||||
@@ -29,6 +35,7 @@ class MSNPCtrlSB(MSNPCtrl):
|
||||
self.auth_sent = False
|
||||
self.bs = None
|
||||
self.cs = None
|
||||
self.chunks = {}
|
||||
|
||||
def on_connect(self) -> None:
|
||||
self.counter_task = self.loop.create_task(self._conn_auth_limit_counter())
|
||||
@@ -171,17 +178,14 @@ class MSNPCtrlSB(MSNPCtrl):
|
||||
for other_cs in tmp:
|
||||
other_user = other_cs.user
|
||||
other_user_display_email = self.backend.util_get_display_email(other_user)
|
||||
capabilities = encode_capabilities_capabilitiesex(
|
||||
((other_cs.bs.front_data.get('msn_capabilities') or 0) if other_cs.bs.front_data.get('msn') is True else MAX_CAPABILITIES_BASIC),
|
||||
other_cs.bs.front_data.get('msn_capabilitiesex') or 0,
|
||||
)
|
||||
capabilities = encode_capabilities_capabilitiesex(*get_session_capabilities(other_cs.bs, dialect))
|
||||
self.send_reply(
|
||||
'IRO', trid, i, l, encode_email_pop(other_user_display_email, other_cs.bs.front_data.get('msn_pop_id')),
|
||||
other_user.status.name, capabilities,
|
||||
_friendly_name(self.backend, other_user), capabilities,
|
||||
)
|
||||
if other_cs.primary_pop and other_cs.bs.front_data.get('msn_pop_id') is not None:
|
||||
i += 1
|
||||
self.send_reply('IRO', trid, i, l, other_user_display_email, other_user.status.name, capabilities)
|
||||
self.send_reply('IRO', trid, i, l, other_user_display_email, _friendly_name(self.backend, other_user), capabilities)
|
||||
i += 1
|
||||
else:
|
||||
roster_one_per_user = [] # type: List[ChatSession]
|
||||
@@ -197,15 +201,9 @@ class MSNPCtrlSB(MSNPCtrl):
|
||||
if dialect >= 12:
|
||||
# Capability flags in IRO were technically introduced by MSNP13, but there are MSNP12 logs that show that they
|
||||
# had been introduced in that protocol version by then
|
||||
extra = (
|
||||
(
|
||||
(other_cs.bs.front_data.get('msn_capabilities') or 0)
|
||||
if other_cs.bs.front_data.get('msn') is True
|
||||
else MAX_CAPABILITIES_BASIC
|
||||
),
|
||||
)
|
||||
self.send_reply('IRO', trid, i + 1, l, self.backend.util_get_display_email(other_user), other_user.status.name, *extra)
|
||||
|
||||
extra = (get_session_capabilities(other_cs.bs, dialect)[0],)
|
||||
self.send_reply('IRO', trid, i + 1, l, self.backend.util_get_display_email(other_user), _friendly_name(self.backend, other_user), *extra)
|
||||
|
||||
self.send_reply('ANS', trid, 'OK')
|
||||
|
||||
chat.send_participant_joined(cs)
|
||||
@@ -276,21 +274,72 @@ class MSNPCtrlSB(MSNPCtrl):
|
||||
self.close()
|
||||
return
|
||||
|
||||
chunks = self._collect_chunk(data)
|
||||
if chunks is None:
|
||||
if ack in ('A', 'D'):
|
||||
self.send_reply('ACK', trid)
|
||||
return
|
||||
|
||||
try:
|
||||
cs.send_message_to_everyone(messagedata_from_msnp(cs.user, bs.front_data.get('msn_pop_id'), ack, data))
|
||||
message = messagedata_from_msnp(cs.user, bs.front_data.get('msn_pop_id'), ack, b''.join(_chunk_body(chunk, i) for i, chunk in enumerate(chunks)) if len(chunks) > 1 else data)
|
||||
except error.SpecialMessageNotSentWithDType:
|
||||
self.close()
|
||||
return
|
||||
if len(chunks) > 1:
|
||||
message.front_cache['msnp_chunks'] = chunks
|
||||
|
||||
if message.type is MessageType.MSNP2P:
|
||||
p2pv2 = sb_p2p_is_v2(message.front_cache.get('msn_p2p_dest'))
|
||||
message.front_cache['msn_p2pv2'] = p2pv2
|
||||
packet = neutralize_direct_p2p(cast(bytes, message.text), p2pv2)
|
||||
if packet != message.text:
|
||||
i = data.index(b'\r\n\r\n') + 4
|
||||
message.text = cast(Any, packet)
|
||||
message.front_cache['msnp'] = data[:i] + packet
|
||||
|
||||
(p2p_dest, p2p_dest_pop_id) = decode_email_pop(message.front_cache.get('msn_p2p_dest') or '')
|
||||
if p2p_dest_pop_id is not None:
|
||||
p2p_dest_uuid = self.backend.util_get_uuid_from_email(p2p_dest)
|
||||
if p2p_dest_uuid is not None:
|
||||
message.text = translate_p2pv2_ack(message.text, get_p2p_state(cs.chat.front_data, p2p_dest_uuid, bs.user.uuid))
|
||||
delivered = cs.send_message_to_everyone(message)
|
||||
|
||||
# TODO: Implement ACK/NAK
|
||||
if ack == 'U':
|
||||
return
|
||||
any_failed = False
|
||||
any_failed = not delivered
|
||||
if any_failed: # ADN
|
||||
self.send_reply('NAK', trid)
|
||||
elif ack != 'N': # AD
|
||||
self.send_reply('ACK', trid)
|
||||
|
||||
def _collect_chunk(self, data: bytes) -> Optional[List[bytes]]:
|
||||
try:
|
||||
i = data.index(b'\r\n\r\n') + 4
|
||||
headers = Parser().parsestr(data[:i].decode('utf-8'))
|
||||
except (ValueError, UnicodeDecodeError):
|
||||
return [data]
|
||||
message_id = headers.get('Message-ID')
|
||||
if message_id is None or (headers.get('Chunks') is None and headers.get('Chunk') is None):
|
||||
return [data]
|
||||
pending = self.chunks.setdefault(str(message_id), { 'total': 0, 'parts': {} })
|
||||
try:
|
||||
if headers.get('Chunks') is not None:
|
||||
pending['total'] = int(str(headers.get('Chunks')))
|
||||
pending['parts'][0] = data
|
||||
else:
|
||||
pending['parts'][int(str(headers.get('Chunk')))] = data
|
||||
except ValueError:
|
||||
del self.chunks[str(message_id)]
|
||||
return [data]
|
||||
total = pending['total']
|
||||
if not total or len(pending['parts']) < total or total > MAX_CHUNKS:
|
||||
if total > MAX_CHUNKS or len(self.chunks) > MAX_CHUNKED_MESSAGES:
|
||||
del self.chunks[str(message_id)]
|
||||
return None
|
||||
del self.chunks[str(message_id)]
|
||||
return [pending['parts'][n] for n in range(total) if n in pending['parts']]
|
||||
|
||||
async def _conn_auth_limit_counter(self) -> None:
|
||||
counter = 0
|
||||
|
||||
@@ -336,29 +385,14 @@ class ChatEventHandler(event.ChatEventHandler):
|
||||
# Capability flags in JOI were technically introduced by MSNP13, but there are MSNP12 logs that show that they
|
||||
# had been introduced in that protocol version by then
|
||||
if 12 <= ctrl.dialect <= 15:
|
||||
extra = (
|
||||
(
|
||||
(cs_other.bs.front_data.get('msn_capabilities') or 0)
|
||||
if cs_other.bs.front_data.get('msn') is True
|
||||
else MAX_CAPABILITIES_BASIC
|
||||
),
|
||||
) # type: Tuple[Any, ...]
|
||||
extra = (get_session_capabilities(cs_other.bs, ctrl.dialect)[0],) # type: Tuple[Any, ...]
|
||||
elif ctrl.dialect >= 16:
|
||||
extra = (
|
||||
encode_capabilities_capabilitiesex(
|
||||
(
|
||||
(cs_other.bs.front_data.get('msn_capabilities') or 0)
|
||||
if cs_other.bs.front_data.get('msn') is True
|
||||
else MAX_CAPABILITIES_BASIC
|
||||
),
|
||||
cs_other.bs.front_data.get('msn_capabilitiesex') or 0,
|
||||
),
|
||||
)
|
||||
extra = (encode_capabilities_capabilitiesex(*get_session_capabilities(cs_other.bs, ctrl.dialect)),)
|
||||
else:
|
||||
extra = ()
|
||||
ctrl.send_reply('JOI', email, user.status.name, *extra)
|
||||
ctrl.send_reply('JOI', email, _friendly_name(ctrl.backend, user), *extra)
|
||||
if cs_other.user is not cs.user and pop_id_other is not None and first_pop and ctrl.dialect >= 16:
|
||||
ctrl.send_reply('JOI', user_display_email, user.status.name, *extra)
|
||||
ctrl.send_reply('JOI', user_display_email, _friendly_name(ctrl.backend, user), *extra)
|
||||
|
||||
def on_participant_left(self, cs_other: ChatSession, last_pop: bool) -> None:
|
||||
ctrl = self.ctrl
|
||||
@@ -388,8 +422,53 @@ class ChatEventHandler(event.ChatEventHandler):
|
||||
pass
|
||||
|
||||
def on_message(self, data: MessageData) -> None:
|
||||
if data.type is not MessageType.TypingDone:
|
||||
self.ctrl.send_reply('MSG', self.ctrl.backend.util_get_display_email(data.sender), data.sender.status.name, messagedata_to_msnp(data))
|
||||
if data.type in (MessageType.TypingDone, MessageType.Ignored): return
|
||||
if data.type is MessageType.MSNP2P and 'msn_p2p' in data.front_cache:
|
||||
self._send_p2p(data)
|
||||
return
|
||||
ctrl = self.ctrl
|
||||
sender_email = ctrl.backend.util_get_display_email(data.sender)
|
||||
if 'msnp_chunks' in data.front_cache:
|
||||
for chunk in data.front_cache['msnp_chunks']:
|
||||
ctrl.send_reply('MSG', sender_email, data.sender.status.name, chunk)
|
||||
return
|
||||
payload = messagedata_to_msnp(data, sender_email = sender_email)
|
||||
if payload is None: return
|
||||
for chunk in chunk_msnp(payload):
|
||||
ctrl.send_reply('MSG', sender_email, data.sender.status.name, chunk)
|
||||
|
||||
def _send_p2p(self, data: MessageData) -> None:
|
||||
ctrl = self.ctrl
|
||||
bs = ctrl.bs
|
||||
assert bs is not None
|
||||
|
||||
pop_id = bs.front_data.get('msn_pop_id')
|
||||
dest_pop_id = data.front_cache.get('msn_p2p_dest_pop_id')
|
||||
if is_null_epid(dest_pop_id): dest_pop_id = None
|
||||
if dest_pop_id is not None and pop_id is not None and normalize_pop_id(dest_pop_id).lower() != pop_id.lower(): return
|
||||
|
||||
sender_email = ctrl.backend.util_get_display_email(data.sender)
|
||||
user_email = ctrl.backend.util_get_display_email(bs.user)
|
||||
dest_email = data.front_cache.get('msn_p2p_dest_email')
|
||||
if dest_email is not None and dest_email.lower() not in (user_email.lower(), bs.user.email.lower()): return
|
||||
p2pv2 = data.front_cache.get('msn_p2pv2')
|
||||
if p2pv2 is None:
|
||||
p2pv2 = (ctrl.dialect >= 16 and bool(get_session_capabilities(bs, ctrl.dialect)[1] & CAPABILITIESEX_P2PV2))
|
||||
if p2pv2 and (ctrl.dialect < 16 or pop_id is None): return
|
||||
if p2pv2:
|
||||
dest = encode_email_pop(user_email, dest_pop_id or pop_id)
|
||||
src = encode_email_pop(sender_email, data.sender_pop_id) # type: Optional[str]
|
||||
else:
|
||||
dest = user_email
|
||||
src = None
|
||||
|
||||
state = get_p2p_state(self.cs.chat.front_data, data.sender.uuid, bs.user.uuid)
|
||||
if data.front_cache.get('msn_sdg_pipe'):
|
||||
state['pipe'] = data.front_cache['msn_sdg_pipe']
|
||||
state['pop_id'] = data.sender_pop_id
|
||||
for packet in data.front_cache['msn_p2p']:
|
||||
for payload in sb_p2p_messages(packet, dest, src, p2pv2, state):
|
||||
ctrl.send_reply('MSG', sender_email, data.sender.status.name, payload)
|
||||
|
||||
def on_close(self) -> None:
|
||||
self.ctrl.close()
|
||||
@@ -433,73 +512,127 @@ def messagedata_from_msnp(sender: User, sender_pop_id: Optional[str], ack: str,
|
||||
i = data.index(b'\r\n\r\n') + 4
|
||||
headers = Parser().parsestr(data[:i].decode('utf-8'))
|
||||
body_raw = data[i:]
|
||||
except:
|
||||
type = MessageType.Chat
|
||||
text = "CrossTalk System Message: This message cannot be viewed on the client you're currently using."
|
||||
except Exception:
|
||||
message = MessageData(sender = sender, sender_pop_id = sender_pop_id, type = MessageType.Chat, text = UNSUPPORTED_MESSAGE_TEXT)
|
||||
message.front_cache['msnp'] = data
|
||||
return message
|
||||
|
||||
front_cache: dict[str, Any] = {}
|
||||
text: Any = body_raw
|
||||
content_type = headers.get_content_type()
|
||||
if content_type is not None:
|
||||
if content_type == 'text/x-msmsgscontrol':
|
||||
type = MessageType.Typing
|
||||
if content_type == 'text/x-msmsgscontrol':
|
||||
type = MessageType.Typing
|
||||
text = ''
|
||||
elif content_type == 'text/x-msnmsgr-datacast':
|
||||
body = body_raw.decode('utf-8', 'replace')
|
||||
fields = _parse_body_fields(body)
|
||||
id = (fields.get('ID') or '').strip()
|
||||
if id == '1':
|
||||
type = MessageType.Nudge
|
||||
text = ''
|
||||
elif content_type == 'text/x-msnmsgr-datacast':
|
||||
body = body_raw.decode('utf-8')
|
||||
id_start = body.index('ID:') + 3
|
||||
id_end = body.index('\r\n', id_start)
|
||||
id = body[id_start:id_end].strip()
|
||||
if id == '1':
|
||||
type = MessageType.Nudge
|
||||
text = ''
|
||||
else:
|
||||
type = MessageType.Chat
|
||||
text = "CrossTalk System Message: This message cannot be viewed on the client you're currently using."
|
||||
elif content_type == 'application/x-msnmsgrp2p':
|
||||
if ack != 'D':
|
||||
raise error.SpecialMessageNotSentWithDType()
|
||||
type = MessageType.MSNP2P
|
||||
text = body_raw
|
||||
elif content_type == "text/x-mms-emoticon":
|
||||
type = MessageType.Emoticon
|
||||
text = body_raw
|
||||
elif content_type == "text/x-mms-animemoticon":
|
||||
type = MessageType.Emoticon
|
||||
text = body_raw
|
||||
elif content_type == 'text/x-msmsgsinvite':
|
||||
type = MessageType.MSNP2PInvite
|
||||
text = body_raw
|
||||
elif content_type == 'text/x-clientcaps':
|
||||
elif id in DATACAST_MSNOBJ:
|
||||
type = MessageType.Other
|
||||
text = body_raw
|
||||
elif content_type == 'text/x-msnmsgr-roster-change':
|
||||
type = MessageType.Other
|
||||
text = body_raw
|
||||
elif content_type == 'application/x-ms-ink':
|
||||
type = MessageType.Ink
|
||||
text = body_raw
|
||||
elif content_type == 'text/plain':
|
||||
text = (fields.get('Data') or '').strip()
|
||||
elif id == DATACAST_ACTION:
|
||||
type = MessageType.Chat
|
||||
text = body_raw.decode('utf-8')
|
||||
front_cache['msn_action'] = (fields.get('Data') or '').strip()
|
||||
text = '* {} {}'.format(sender.status.name or sender.email, front_cache['msn_action'])
|
||||
else:
|
||||
pass
|
||||
else:
|
||||
type = MessageType.Chat
|
||||
text = UNSUPPORTED_MESSAGE_TEXT
|
||||
elif content_type == 'application/x-msnmsgrp2p':
|
||||
if ack != 'D':
|
||||
raise error.SpecialMessageNotSentWithDType()
|
||||
type = MessageType.MSNP2P
|
||||
elif content_type == 'text/x-msmsgsinvite':
|
||||
type = MessageType.MSNP2PInvite
|
||||
elif content_type in ('application/x-ms-ink', 'image/gif'):
|
||||
type = MessageType.Ink
|
||||
elif content_type in ('text/x-mms-emoticon', 'text/x-mms-animemoticon'):
|
||||
type = MessageType.Emoticon
|
||||
elif content_type == 'text/plain':
|
||||
type = MessageType.Chat
|
||||
text = "CrossTalk System Message: This message cannot be viewed on the client you're currently using."
|
||||
text = body_raw.decode('utf-8', 'replace')
|
||||
im_format = headers.get('X-MMS-IM-Format')
|
||||
if im_format is not None:
|
||||
front_cache['msn_im_format'] = str(im_format)
|
||||
else:
|
||||
type = MessageType.Other
|
||||
|
||||
message = MessageData(sender = sender, sender_pop_id = sender_pop_id, type = type, text = text)
|
||||
message.front_cache['msnp'] = data
|
||||
message.front_cache.update(front_cache)
|
||||
if type is MessageType.MSNP2P:
|
||||
message.front_cache['msn_p2p_dest'] = str(headers.get('P2P-Dest') or '')
|
||||
elif type is MessageType.Emoticon:
|
||||
message.front_cache['msn_emoticon'] = content_type
|
||||
elif type is MessageType.Other and content_type == 'text/x-msnmsgr-datacast':
|
||||
message.front_cache['msn_datacast'] = id
|
||||
elif type is MessageType.Chat and 'msn_action' in front_cache:
|
||||
message.front_cache['msn_datacast'] = DATACAST_ACTION
|
||||
return message
|
||||
|
||||
def messagedata_to_msnp(data: MessageData) -> bytes:
|
||||
def messagedata_to_msnp(data: MessageData, *, sender_email: Optional[str] = None) -> Optional[bytes]:
|
||||
if 'msnp' not in data.front_cache:
|
||||
if data.type is MessageType.Typing:
|
||||
s = F'MIME-Version: 1.0\r\nContent-Type: text/x-msmsgscontrol\r\nTypingUser: {data.sender.email}\r\n\r\n\r\n'
|
||||
s = F'MIME-Version: 1.0\r\nContent-Type: text/x-msmsgscontrol\r\nTypingUser: {sender_email or data.sender.email}\r\n\r\n\r\n'
|
||||
elif data.type is MessageType.Nudge:
|
||||
s = 'MIME-Version: 1.0\r\nContent-Type: text/x-msnmsgr-datacast\r\n\r\nID: 1\r\n\r\n'
|
||||
elif data.type is MessageType.MSNP2P:
|
||||
s = F'MIME-Version: 1.0\r\nContent-Type: application/x-msnmsgrp2p\r\nP2P-Dest: {other_user.email}\r\n\r\n{data.text}'
|
||||
elif data.type is MessageType.Other and 'msn_datacast' in data.front_cache:
|
||||
s = 'MIME-Version: 1.0\r\nContent-Type: text/x-msnmsgr-datacast\r\n\r\nID: {}\r\nData: {}\r\n\r\n'.format(data.front_cache['msn_datacast'], data.text)
|
||||
elif data.type is MessageType.Emoticon:
|
||||
emoticons = (data.text.decode('utf-8', 'replace') if isinstance(data.text, bytes) else (data.text or ''))
|
||||
s = 'MIME-Version: 1.0\r\nContent-Type: {}\r\n\r\n'.format(data.front_cache.get('msn_emoticon') or 'text/x-mms-emoticon') + emoticons
|
||||
elif data.type is MessageType.Chat and 'msn_action' in data.front_cache:
|
||||
s = 'MIME-Version: 1.0\r\nContent-Type: text/x-msnmsgr-datacast\r\n\r\nID: {}\r\nData: {}\r\n\r\n'.format(DATACAST_ACTION, data.front_cache['msn_action'])
|
||||
elif data.type is MessageType.Chat:
|
||||
s = 'MIME-Version: 1.0\r\nContent-Type: text/plain; charset=UTF-8\r\n\r\n' + (data.text or '')
|
||||
im_format = data.front_cache.get('msn_im_format')
|
||||
s = 'MIME-Version: 1.0\r\nContent-Type: text/plain; charset=UTF-8\r\n{}\r\n'.format(
|
||||
'X-MMS-IM-Format: {}\r\n'.format(im_format) if im_format else '',
|
||||
) + (data.text or '')
|
||||
else:
|
||||
raise ValueError("unknown message type", data.type)
|
||||
return None
|
||||
data.front_cache['msnp'] = s.encode('utf-8')
|
||||
return data.front_cache['msnp']
|
||||
|
||||
def chunk_msnp(payload: bytes) -> List[bytes]:
|
||||
if len(payload) <= SB_MSG_LIMIT:
|
||||
return [payload]
|
||||
i = payload.index(b'\r\n\r\n') + 4
|
||||
headers = payload[:i - 2]
|
||||
body = payload[i:]
|
||||
message_id = '{' + gen_uuid().upper() + '}'
|
||||
room = SB_MSG_LIMIT - len(headers) - 80
|
||||
parts = [body[n:n + room] for n in range(0, len(body), room)]
|
||||
chunks = [headers + 'Message-ID: {}\r\nChunks: {}\r\n\r\n'.format(message_id, len(parts)).encode('ascii') + parts[0]]
|
||||
content_type = (b'Content-Type: ' + headers.split(b'Content-Type: ', 1)[1].split(b'\r\n', 1)[0] + b'\r\n') if b'Content-Type: ' in headers else b''
|
||||
for n, part in enumerate(parts[1:], 1):
|
||||
chunks.append(b'MIME-Version: 1.0\r\n' + content_type + 'Message-ID: {}\r\nChunk: {}\r\n\r\n'.format(message_id, n).encode('ascii') + part)
|
||||
return chunks
|
||||
|
||||
def _chunk_body(chunk: bytes, n: int) -> bytes:
|
||||
if n == 0: return chunk
|
||||
try:
|
||||
return chunk[chunk.index(b'\r\n\r\n') + 4:]
|
||||
except ValueError:
|
||||
return b''
|
||||
|
||||
def _parse_body_fields(body: str) -> Dict[str, str]:
|
||||
fields = {} # type: Dict[str, str]
|
||||
for line in body.split('\r\n'):
|
||||
if ':' not in line: continue
|
||||
key, value = line.split(':', 1)
|
||||
fields.setdefault(key.strip(), value.strip())
|
||||
return fields
|
||||
|
||||
SB_MSG_LIMIT = 1664
|
||||
MAX_CHUNKS = 64
|
||||
MAX_CHUNKED_MESSAGES = 16
|
||||
|
||||
def _encode_participant_capabilities(cs_other: ChatSession, dialect: int) -> int | str:
|
||||
if dialect < 16:
|
||||
return get_session_capabilities(cs_other.bs, dialect)[0]
|
||||
return encode_capabilities_capabilitiesex(*get_session_capabilities(cs_other.bs, dialect))
|
||||
|
||||
def _friendly_name(backend: Backend, user: User) -> str:
|
||||
return user.status.name or backend.util_get_display_email(user)
|
||||
@@ -0,0 +1,359 @@
|
||||
from typing import Any, Dict, List, Optional
|
||||
import struct
|
||||
|
||||
from .misc import encode_payload
|
||||
|
||||
# Largest P2P payload official clients put in one switchboard `MSG` (which is capped at 1664 bytes)
|
||||
SB_P2P_DATA_SIZE = 1202
|
||||
|
||||
# The most a switchboard `MSG` payload (MIME headers and P2P packet) may be; clients enforce it on what they send, so what
|
||||
# the server sends them stays under it too
|
||||
SB_MSG_MAX = 1664
|
||||
|
||||
SDG_DATA = '''Routing: 1.0
|
||||
To: 1:{to_email}
|
||||
From: 1:{from_email}
|
||||
Options: 0
|
||||
Service-Channel: PE
|
||||
|
||||
Reliability: 1.0
|
||||
|
||||
Messaging: 2.0
|
||||
Message-Type: Data
|
||||
Content-Type: application/x-msnmsgrp2p
|
||||
Content-Transfer-Encoding: binary
|
||||
Content-Length: {cl}
|
||||
Pipe: {pipe}
|
||||
Bridging-Offsets: {offsets}
|
||||
|
||||
'''
|
||||
|
||||
|
||||
SLP_DIRECT_CONTENT_TYPES = frozenset({
|
||||
'application/x-msnmsgr-transreqbody', 'application/x-msnmsgr-transrespbody',
|
||||
'application/x-msnmsgr-transdestaddrupdate', 'application/x-msnmsgr-transudpswitch',
|
||||
})
|
||||
SLP_TRANSREQ = 'application/x-msnmsgr-transreqbody'
|
||||
SLP_TRANSRESP = 'application/x-msnmsgr-transrespbody'
|
||||
|
||||
|
||||
SLP_BRIDGES = 'TCPv1 SBBridge'
|
||||
SLP_NULL_NONCE = '{00000000-0000-0000-0000-000000000000}'
|
||||
|
||||
_SLP_SESSION_HEADERS = ('SessionID', 'SChannelState', 'Capabilities-Flags')
|
||||
|
||||
_SLP_PAD_HEADER = 'X-Padding'
|
||||
|
||||
def split_sdg_p2p(body: bytes, offsets: str) -> List[bytes]:
|
||||
starts = [int(offset) for offset in offsets.split(',') if offset.strip()] or [0]
|
||||
ends = starts[1:] + [len(body)]
|
||||
return [body[start:end] for start, end in zip(starts, ends) if end > start]
|
||||
|
||||
def detect_p2p_version(packet: bytes) -> Optional[bool]:
|
||||
v1 = len(packet) >= 52 and len(packet) == 48 + struct.unpack('<I', packet[24:28])[0] + 4
|
||||
v2 = False
|
||||
if len(packet) >= 8:
|
||||
(hl, _, payload_size) = struct.unpack('>BBH', packet[:4])
|
||||
v2 = hl >= 8 and hl % 4 == 0 and len(packet) in (hl + payload_size + 4, hl + payload_size)
|
||||
if v1 == v2: return None
|
||||
return v2
|
||||
|
||||
def get_p2p_state(front_data: Dict[str, Any], sender_uuid: str, receiver_uuid: str) -> Dict[str, Any]:
|
||||
return front_data.setdefault('msn_p2p', {}).setdefault((sender_uuid, receiver_uuid), { 'shift': 0, 'acks': {}, 'pipe': 1 })
|
||||
|
||||
def build_sdg_data(to_email: str, from_email: str, packets: List[bytes], pipe: int) -> bytes:
|
||||
offsets = [] # type: List[str]
|
||||
body = b''
|
||||
for packet in packets:
|
||||
offsets.append(str(len(body)))
|
||||
body += packet
|
||||
return encode_payload(SDG_DATA,
|
||||
to_email = to_email, from_email = from_email, cl = len(body), pipe = pipe, offsets = ','.join(offsets),
|
||||
) + body
|
||||
|
||||
def build_sb_p2p_headers(dest: str, src: Optional[str]) -> bytes:
|
||||
headers = 'MIME-Version: 1.0\r\nContent-Type: application/x-msnmsgrp2p\r\nP2P-Dest: {}\r\n'.format(dest)
|
||||
if src is not None:
|
||||
headers += 'P2P-Src: {}\r\n'.format(src)
|
||||
return (headers + '\r\n').encode('utf-8')
|
||||
|
||||
def sb_p2p_data_size(headers: bytes, p2pv2: bool) -> int:
|
||||
if p2pv2:
|
||||
overhead = 24 + 20 + 4
|
||||
else:
|
||||
overhead = 48 + 4
|
||||
return max(256, SB_MSG_MAX - len(headers) - overhead)
|
||||
|
||||
def chunk_p2p(packet: bytes, p2pv2: bool, state: Dict[str, Any], max_data: int = SB_P2P_DATA_SIZE) -> List[bytes]:
|
||||
if p2pv2:
|
||||
return _chunk_p2pv2(packet, state, max_data)
|
||||
return _chunk_p2pv1(packet, min(max_data, SB_P2P_DATA_SIZE))
|
||||
|
||||
def translate_p2pv2_ack(packet: bytes, state: Dict[str, Any]) -> bytes:
|
||||
if len(packet) < 8: return packet
|
||||
hl = packet[0]
|
||||
tlvs = bytearray(packet[8:hl])
|
||||
i = 0
|
||||
while i + 2 <= len(tlvs) and tlvs[i]:
|
||||
t, l = tlvs[i], tlvs[i + 1]
|
||||
if t in (0x02, 0x03) and l == 4:
|
||||
value = struct.unpack('>I', tlvs[i + 2:i + 6])[0]
|
||||
tlvs[i + 2:i + 6] = struct.pack('>I', state['acks'].get(value, value))
|
||||
i += 2 + l
|
||||
return packet[:8] + bytes(tlvs) + packet[hl:]
|
||||
|
||||
def _chunk_p2pv1(packet: bytes, max_data: int = SB_P2P_DATA_SIZE) -> List[bytes]:
|
||||
data = packet[48:-4]
|
||||
if len(data) <= max_data:
|
||||
return [packet]
|
||||
(session_id, identifier, offset, total_size, _, flags, ack_session_id, ack_unique_id, ack_data_size) = struct.unpack('<IIQQIIIIQ', packet[:48])
|
||||
return [
|
||||
struct.pack(
|
||||
'<IIQQIIIIQ', session_id, identifier, offset + i, total_size, len(data[i:i + max_data]),
|
||||
flags, ack_session_id, ack_unique_id, ack_data_size,
|
||||
) + data[i:i + max_data] + packet[-4:]
|
||||
for i in range(0, len(data), max_data)
|
||||
]
|
||||
|
||||
def _chunk_p2pv2(packet: bytes, state: Dict[str, Any], max_data: int = SB_P2P_DATA_SIZE) -> List[bytes]:
|
||||
(hl, op, payload_size, identifier) = struct.unpack('>BBHI', packet[:8])
|
||||
payload = packet[hl:hl + payload_size]
|
||||
footer = packet[hl + payload_size:]
|
||||
next_identifier = (identifier + payload_size) & 0xFFFFFFFF
|
||||
shift = state['shift']
|
||||
|
||||
if payload_size == 0 or payload_size - payload[0] <= max_data:
|
||||
if shift:
|
||||
state['acks'][(next_identifier + shift) & 0xFFFFFFFF] = next_identifier
|
||||
packet = packet[:4] + struct.pack('>I', (identifier + shift) & 0xFFFFFFFF) + packet[8:]
|
||||
return [packet]
|
||||
|
||||
(dhl, tf, package_number, session_id) = struct.unpack('>BBHI', payload[:8])
|
||||
data = payload[dhl:]
|
||||
data_remaining = _get_data_remaining(payload[8:dhl])
|
||||
chunks = []
|
||||
chunk_identifier = identifier + shift
|
||||
for i in range(0, len(data), max_data):
|
||||
chunk_data = data[i:i + max_data]
|
||||
first = (i == 0)
|
||||
last = (i + len(chunk_data) >= len(data))
|
||||
left = data_remaining + len(data) - i - len(chunk_data)
|
||||
data_tlvs = (struct.pack('>BBQ', 0x01, 8, left) + b'\x00\x00' if left else b'')
|
||||
chunk_payload = struct.pack('>BBHI', 8 + len(data_tlvs), (tf if first else tf & ~0x01), package_number, session_id) + data_tlvs + chunk_data
|
||||
tlvs = (packet[8:hl] if first else b'')
|
||||
chunk_op = (op & 0x01 if first else 0) | (op & 0x02 if last else 0)
|
||||
chunks.append(struct.pack('>BBHI', 8 + len(tlvs), chunk_op, len(chunk_payload), chunk_identifier & 0xFFFFFFFF) + tlvs + chunk_payload + footer)
|
||||
chunk_identifier += len(chunk_payload)
|
||||
state['shift'] = chunk_identifier - (identifier + payload_size)
|
||||
state['acks'][chunk_identifier & 0xFFFFFFFF] = next_identifier
|
||||
return chunks
|
||||
|
||||
def _get_data_remaining(tlvs: bytes) -> int:
|
||||
i = 0
|
||||
while i + 2 <= len(tlvs) and tlvs[i]:
|
||||
t, l = tlvs[i], tlvs[i + 1]
|
||||
if t == 0x01 and l == 8:
|
||||
return struct.unpack('>Q', tlvs[i + 2:i + 10])[0]
|
||||
i += 2 + l
|
||||
return 0
|
||||
|
||||
class SLPMessage:
|
||||
__slots__ = ('start_line', 'headers', 'body')
|
||||
|
||||
start_line: str
|
||||
headers: list[tuple[str, str]]
|
||||
body: bytes
|
||||
|
||||
def __init__(self, start_line: str, headers: list[tuple[str, str]], body: bytes) -> None:
|
||||
self.start_line = start_line
|
||||
self.headers = headers
|
||||
self.body = body
|
||||
|
||||
def get(self, name: str) -> str | None:
|
||||
for key, value in self.headers:
|
||||
if key.lower() == name.lower(): return value
|
||||
return None
|
||||
|
||||
@property
|
||||
def content_type(self) -> str:
|
||||
return (self.get('Content-Type') or '').split(';', 1)[0].strip().lower()
|
||||
|
||||
@property
|
||||
def is_request(self) -> bool:
|
||||
return not self.start_line.startswith('MSNSLP/')
|
||||
|
||||
@property
|
||||
def method(self) -> str:
|
||||
return self.start_line.split(' ', 1)[0]
|
||||
|
||||
def body_values(self) -> list[tuple[str, str]]:
|
||||
return _parse_slp_lines(self.body.rstrip(b'\x00').decode('utf-8', 'replace'))
|
||||
|
||||
def parse_slp(data: bytes) -> SLPMessage | None:
|
||||
if not (data.startswith(b'MSNSLP/') or data[:12].split(b' ', 1)[0] in _SLP_METHODS):
|
||||
return None
|
||||
try:
|
||||
end = data.index(b'\r\n\r\n')
|
||||
head = data[:end].decode('utf-8')
|
||||
except (ValueError, UnicodeDecodeError):
|
||||
return None
|
||||
lines = head.split('\r\n')
|
||||
headers = []
|
||||
for line in lines[1:]:
|
||||
if ':' not in line: continue
|
||||
key, value = line.split(':', 1)
|
||||
headers.append((key.strip(), value.strip()))
|
||||
slp = SLPMessage(lines[0], headers, b'')
|
||||
try:
|
||||
length = int(slp.get('Content-Length') or '0')
|
||||
except ValueError:
|
||||
return None
|
||||
slp.body = data[end + 4:end + 4 + length]
|
||||
return slp
|
||||
|
||||
def is_direct_connection_slp(data: bytes) -> bool:
|
||||
slp = parse_slp(data)
|
||||
return slp is not None and slp.content_type in SLP_DIRECT_CONTENT_TYPES
|
||||
|
||||
def rewrite_direct_slp(data: bytes, *, preserve_length: bool) -> bytes | None:
|
||||
slp = parse_slp(data)
|
||||
if slp is None or slp.content_type not in SLP_DIRECT_CONTENT_TYPES:
|
||||
return None
|
||||
values = slp.body_values()
|
||||
content_type = slp.content_type
|
||||
if content_type == SLP_TRANSREQ:
|
||||
nonce = _nonce_line(values, keep = True)
|
||||
required = [('Bridges', SLP_BRIDGES), ('NetID', '0'), ('Conn-Type', 'Firewall'), ('TCP-Conn-Type', 'Firewall'), ('UPnPNat', 'false'), ('ICF', 'true')] + nonce
|
||||
optional = [(key, value) for key, value in values if key in _SLP_SESSION_HEADERS or key == 'Nat-Trav-Msg-Type']
|
||||
elif content_type == SLP_TRANSRESP:
|
||||
required = [('Bridge', 'SBBridge'), ('Listening', 'false')] + _nonce_line(values, keep = False)
|
||||
optional = [(key, value) for key, value in values if key in _SLP_SESSION_HEADERS]
|
||||
else:
|
||||
required = []
|
||||
optional = [(key, value) for key, value in values if key == 'Nat-Trav-Msg-Type']
|
||||
|
||||
body_old = slp.body
|
||||
terminator = (b'\x00' if body_old.endswith(b'\x00') else b'')
|
||||
body = _build_slp_body(required, optional, (len(body_old) - len(terminator)) if preserve_length else None)
|
||||
if body is None:
|
||||
return None
|
||||
body += terminator
|
||||
|
||||
head_old = data[:data.index(b'\r\n\r\n') + 4]
|
||||
if preserve_length:
|
||||
head = head_old
|
||||
else:
|
||||
head = _replace_content_length(head_old, len(body) + (0 if terminator else 1))
|
||||
return head + body + data[len(head_old) + len(body_old):]
|
||||
|
||||
def refuse_direct_invite(data: bytes) -> bytes | None:
|
||||
slp = parse_slp(data)
|
||||
if slp is None or not slp.is_request or slp.method != 'INVITE' or slp.content_type != SLP_TRANSREQ:
|
||||
return None
|
||||
values = slp.body_values()
|
||||
body_values = [('Bridge', 'SBBridge'), ('Listening', 'false')] + _nonce_line(values, keep = False) + [
|
||||
(key, value) for key, value in values if key in _SLP_SESSION_HEADERS
|
||||
]
|
||||
body = ''.join('{}: {}\r\n'.format(key, value) for key, value in body_values) + '\r\n'
|
||||
headers = [
|
||||
('To', slp.get('From') or ''), ('From', slp.get('To') or ''), ('Via', slp.get('Via') or ''),
|
||||
('CSeq', '{} '.format(_next_cseq(slp.get('CSeq')))), ('Call-ID', slp.get('Call-ID') or ''), ('Max-Forwards', '0'),
|
||||
('Content-Type', SLP_TRANSRESP), ('Content-Length', str(len(body.encode('utf-8')) + 1)),
|
||||
]
|
||||
return ('MSNSLP/1.0 200 OK\r\n' + ''.join('{}: {}\r\n'.format(key, value) for key, value in headers) + '\r\n' + body).encode('utf-8')
|
||||
|
||||
def slp_direct_negotiation_kind(data: bytes) -> str | None:
|
||||
slp = parse_slp(data)
|
||||
if slp is None or slp.content_type not in SLP_DIRECT_CONTENT_TYPES: return None
|
||||
return slp.content_type
|
||||
|
||||
def neutralize_direct_p2p(packet: bytes, p2pv2: bool) -> bytes:
|
||||
try:
|
||||
if p2pv2:
|
||||
if len(packet) < 8: return packet
|
||||
(hl, _, payload_size, _) = struct.unpack('>BBHI', packet[:8])
|
||||
if payload_size == 0 or len(packet) < hl + payload_size: return packet
|
||||
payload = packet[hl:hl + payload_size]
|
||||
(dhl, tf, _, session_id) = struct.unpack('>BBHI', payload[:8])
|
||||
if session_id != 0 or not tf & 0x01 or _get_data_remaining(payload[8:dhl]): return packet
|
||||
start = hl + dhl
|
||||
end = hl + payload_size
|
||||
else:
|
||||
if len(packet) < 52: return packet
|
||||
(session_id, _, offset, total_size, size, flags) = struct.unpack('<IIQQII', packet[:32])
|
||||
if session_id != 0 or offset != 0 or size != total_size or flags not in (0x00, 0x01000000): return packet
|
||||
start = 48
|
||||
end = 48 + size
|
||||
if end > len(packet) - 4: return packet
|
||||
rewritten = rewrite_direct_slp(packet[start:end], preserve_length = True)
|
||||
except (struct.error, IndexError):
|
||||
return packet
|
||||
if rewritten is None or len(rewritten) != end - start:
|
||||
return packet
|
||||
return packet[:start] + rewritten + packet[end:]
|
||||
|
||||
def _nonce_line(values: list[tuple[str, str]], *, keep: bool) -> list[tuple[str, str]]:
|
||||
for key, value in values:
|
||||
if key in ('Hashed-Nonce', 'Nonce'):
|
||||
return [(key, value if keep else SLP_NULL_NONCE)]
|
||||
return ([] if keep else [('Nonce', SLP_NULL_NONCE)])
|
||||
|
||||
def _build_slp_body(required: list[tuple[str, str]], optional: list[tuple[str, str]], length: int | None) -> bytes | None:
|
||||
def encode(lines: list[tuple[str, str]], pad: int = 0) -> bytes:
|
||||
text = ''.join('{}: {}\r\n'.format(key, value) for key, value in lines)
|
||||
if pad:
|
||||
text += '{}: {}\r\n'.format(_SLP_PAD_HEADER, '0' * (pad - len(_SLP_PAD_HEADER) - 4))
|
||||
return (text + '\r\n').encode('utf-8')
|
||||
|
||||
if length is None:
|
||||
return encode(required + optional)
|
||||
min_pad = len(_SLP_PAD_HEADER) + 4
|
||||
for count in range(len(optional), -1, -1):
|
||||
body = encode(required + optional[:count])
|
||||
rest = length - len(body)
|
||||
if rest == 0:
|
||||
return body
|
||||
if rest >= min_pad:
|
||||
return encode(required + optional[:count], rest)
|
||||
return None
|
||||
|
||||
def _replace_content_length(head: bytes, length: int) -> bytes:
|
||||
lines = head.split(b'\r\n')
|
||||
for i, line in enumerate(lines):
|
||||
if line.lower().startswith(b'content-length:'):
|
||||
lines[i] = b'Content-Length: ' + str(length).encode('ascii')
|
||||
return b'\r\n'.join(lines)
|
||||
|
||||
def _next_cseq(cseq: str | None) -> int:
|
||||
try:
|
||||
return int((cseq or '0').strip()) + 1
|
||||
except ValueError:
|
||||
return 1
|
||||
|
||||
def _parse_slp_lines(text: str) -> list[tuple[str, str]]:
|
||||
values = []
|
||||
for line in text.split('\r\n'):
|
||||
if ':' not in line: continue
|
||||
key, value = line.split(':', 1)
|
||||
values.append((key.strip(), value.strip()))
|
||||
return values
|
||||
|
||||
_SLP_METHODS = frozenset({ b'INVITE', b'ACK', b'BYE', b'CANCEL' })
|
||||
|
||||
def sb_p2p_is_v2(dest: Optional[str]) -> bool:
|
||||
return dest is not None and ';' in dest
|
||||
|
||||
def neutralize_sdg_data(body: bytes, offsets: str, p2pv2: bool) -> bytes:
|
||||
starts = [int(offset) for offset in offsets.split(',') if offset.strip()] or [0]
|
||||
ends = starts[1:] + [len(body)]
|
||||
out = body[:starts[0]]
|
||||
for start, end in zip(starts, ends):
|
||||
out += neutralize_direct_p2p(body[start:end], p2pv2)
|
||||
return out
|
||||
|
||||
def slp_reply_signal(data: bytes) -> bytes | None:
|
||||
return refuse_direct_invite(data)
|
||||
|
||||
def sb_p2p_messages(packet: bytes, dest: str, src: Optional[str], p2pv2: bool, state: Dict[str, Any]) -> List[bytes]:
|
||||
headers = build_sb_p2p_headers(dest, src)
|
||||
return [headers + chunk for chunk in chunk_p2p(packet, p2pv2, state, sb_p2p_data_size(headers, p2pv2))]
|
||||
Reference in new issue
Block a user