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

Method __init__

fakedns.py:248–260  ·  view source on GitHub ↗
(self, query, domain)

Source from the content-addressed store, hash-verified

246# Implemented
247class CNAME(DNSResponse):
248 def __init__(self, query, domain):
249 super(CNAME, self).__init__(query)
250 self.type = b"\x00\x05"
251
252 self.data = b""
253 for label in domain.split('.'):
254 self.data += chr(len(label)).encode() + label.encode()
255 self.data += b"\x00"
256
257 self.length = chr(len(self.data)).encode()
258 # Must be two bytes.
259 if len(self.length) < 2:
260 self.length = b"\x00" + self.length
261
262# Implemented
263class PTR(DNSResponse):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected