mbddns 0.1.2
Password field carries an identifier valuePassword field name in structured data
SHA-256babf11c3f1d219fee47794e6d2324f6bdd575ac02bfd3f2f4fbd198703b77879
MaleculeH₂(Cm₆Db₃)Md₃(InPaPt₃)
Evidence
1Metadata-Version: 2.1
2Name: mbddns
3Version: 0.1.2
4Summary: Mythic Beasts Dynamic DNS updater
5Home-page: https://github.com/thinkl33t/mb-ddns
6Author: Bob Clough
7Author-email: [email protected]
8License: MIT
9Platform: UNKNOWN
10Requires-Dist: aiohttp
11
12UNKNOWN
13
14
1import asyncio
2import aiohttp
3import logging
4
5_LOGGER = logging.getLogger(__name__)
6
7async def update(domain, password, host, ttl=60, session=None):
8 data = {
9 'domain': domain,
10 'password': password,
11 'command': "REPLACE {} {} A DYNAMIC_IP".format(host, ttl)
12 }
13
14 async with session or aiohttp.ClientSession() as session:
15 try:
16 resp = await asyncio.gather(session.post('https://dnsapi4.mythic-beasts.com/',data=data))
17 body = await resp[0].text()
18
⋯10 lines
29 body.partition(';')[2])
30
31 except Exception as e:
32 _LOGGER.error("Updating Mythic Beasts failed: %s", e)
33
34 return False
1MIT License
2
3Copyright (c) 2018 Bob Clough
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
No evidence locations were recorded for this file. Raw result