MCPcopy Create free account
hub / github.com/Cryptogenic/PS5-IPV6-Kernel-Exploit / __init__

Method __init__

fakedns.py:296–302  ·  view source on GitHub ↗
(self, query, txt_record)

Source from the content-addressed store, hash-verified

294
295class MX(DNSResponse):
296 def __init__(self, query, txt_record):
297 super(MX, self).__init__(query)
298 self.type = b"\x00\x0f"
299 self.data = b"\x00\x01" + self.get_domain(txt_record) + b"\x00"
300 self.length = chr(len(txt_record) + 4)
301 if self.length < '\xff':
302 self.length = "\x00" + self.length
303
304 @staticmethod
305 def get_domain(dns_record):

Callers

nothing calls this directly

Calls 2

get_domainMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected