Skip to content

Instantly share code, notes, and snippets.

@pengelana
Last active February 2, 2022 07:43
Show Gist options
  • Save pengelana/9263e331124591623440750752ef1da1 to your computer and use it in GitHub Desktop.
Save pengelana/9263e331124591623440750752ef1da1 to your computer and use it in GitHub Desktop.
b = 'yv4BAAABAAAAAAABAAACAAEAACkQAAAAAAAAFAAMABB9QMeJo7kUaHV_uiVmzgYb'
DNSRecord.parse(binascii.unhexlify(base64.urlsafe_b64decode('{}{}'.format(b, '=' * (len(b)%4))).encode('hex')))
from dns import message
from base64 import urlsafe_b64decode
print(message.from_wire(urlsafe_b64decode(b.encode())))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment